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

Possible bug #3

Closed
milanvidakovic opened this issue May 19, 2018 · 2 comments
Closed

Possible bug #3

milanvidakovic opened this issue May 19, 2018 · 2 comments

Comments

@milanvidakovic
Copy link

Hi,
I am using this kind of instruction description:
add r0 -> 4'0x0 @ 4'0x1 @ 4'0x2 @ 4'0x3
add r1 -> 4'0x1 @ 4'0x1 @ 4'0x2 @ 4'0x3

Until now, it worked perfectly. However, when I added this description:
add r2 -> 4'0x0 @ 4'0x0 @ 4'0x8 @ 4'0x9
It produced: 0077, instead of 0089

When I described the instruction this way:
add r2 -> 4'0x0 @ 4'0x0 @ 8'0x89
It produced the correct code: 0089

Also, if I use this:
add r2 -> 4'0x2 @ 4'0x1 @ 4'0x8 @ 4'0x9
It produces the correct code: 2189

If I use this:
add r2 -> 4'0x0 @ 4'0x1 @ 4'0x8 @ 4'0x9
It produces the correct code: 0189

Only when I use:
add r2 -> 4'0x0 @ 4'0x0 @ 4'0x8 @ 4'0x9
it produces the wrong code: 0077

I have only three lines in the instruction description:
add r0 -> 4'0x0 @ 4'0x1 @ 4'0x2 @ 4'0x3
add r1 -> 4'0x1 @ 4'0x1 @ 4'0x2 @ 4'0x3
add r2 -> 4'0x0 @ 4'0x0 @ 4'0x8 @ 4'0x9

Am I missing something? I have created hundreds of lines the this way and I have accidentally discovered this problem just today.

Best regards,
Milan

@hlorenzi
Copy link
Owner

Yeah, that was a bug! The second bug found with the concatenation operator, oh well... I've fixed it, will upload soon! Thanks for reporting it! 😃

@milanvidakovic
Copy link
Author

Thanks for the quick response!
Best regards,
Milan

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

2 participants