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

Incorrect Assembly of certain numbers #1

Closed
Electronics opened this issue Mar 22, 2018 · 3 comments
Closed

Incorrect Assembly of certain numbers #1

Electronics opened this issue Mar 22, 2018 · 3 comments
Assignees
Labels

Comments

@Electronics
Copy link

#align 24
JNZ {check_addr}, {branch_addr} -> 6'0x04 @ check_addr[4:0] @ 5'0 @ branch_addr[7:0]

will produce f***** whatever the input when it should be 1*****. By changing the above to

#align 24
JNZ {check_addr}, {branch_addr} -> 6'0x04 @ 18'0x00

it works correctly. Seems to be something to do with the alignment and how it concatenates bits together.

hlorenzi added a commit that referenced this issue Mar 23, 2018
@hlorenzi
Copy link
Owner

Wow, good catch! I've fixed it, it's in the dev branch.

Did you download from Releases or compile it yourself? Just please be warned that I've been changing some syntax in the dev branch; docs are still incomplete.

Let me know if you need anything! I'd love to know what you're working on.

@Electronics
Copy link
Author

That was from the releases, I'm working on an assignment at the moment to produce a FPGA-synthesisable picoMIPS processor capable of the affline transformation. I've got it all working now and this assembler has been so useful in programming the thing!

@hlorenzi hlorenzi added the bug label Mar 28, 2018
@hlorenzi hlorenzi self-assigned this Mar 28, 2018
@hlorenzi
Copy link
Owner

I've added a new release which includes this fix!

If you try it out, could you please let me know if the new way to define a CPU helps? I'm afraid it might be more cumbersome in some cases...

And that is an awesome project you're working on! If possible, keep me updated. We should chat! 😜

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

No branches or pull requests

2 participants