Skip to content
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

Convention register are not handled correctly #9

Open
AndoniZubimendi opened this issue Nov 24, 2020 · 0 comments
Open

Convention register are not handled correctly #9

AndoniZubimendi opened this issue Nov 24, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AndoniZubimendi
Copy link
Owner

If the name of the register starts with $ it is assumed to be valid always if it is only one letter and a number, and returns the $0 register.

It also does not check for uppercase names too.

daddi $j0 $0, 150
daddi $S0, $0, 100
halt

The string $S0 and $j5 are resolved as register $0, not giving any error

Pass 1 completed with 0 errors
00000000          .code
00000000 6000000a daddi $j0, $0, 10
00000004 6000000a daddi $S0, $0, 10
00000008 04000000 halt

Pass 2 completed with 0 errors
Code Symbol Table
Data Symbol Table
@AndoniZubimendi AndoniZubimendi changed the title Convention register are not handled correctyl always Convention register are not handled correctly Nov 24, 2020
@AndoniZubimendi AndoniZubimendi self-assigned this Nov 24, 2020
@AndoniZubimendi AndoniZubimendi added the bug Something isn't working label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant