Skip to content

Provide a range command #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ckrause opened this issue May 24, 2025 · 0 comments
Open

Provide a range command #390

ckrause opened this issue May 24, 2025 · 0 comments

Comments

@ckrause
Copy link
Contributor

ckrause commented May 24, 2025

Provide a new command which computes the ranges of memory cells and adds comments to the program for each operation. Example:

$ loda range test.asm
add $0,1      ; $0>=1
mov $1,$0     ; $1>=1
mul $1,-2     ; $1<=-2

Replace the existing CanBeNegative() util.
Add tests which evakluate programs and check if the ranges are valit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant