kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

[reg+0] assembles to [reg], but still appends 0x0000 #146

Closed dekay9001 closed 12 years ago

dekay9001 commented 12 years ago

When you do something like this:

add [a+0], 1

it will be assembled to

add [a], 1 dat 0x0000

in 1.7.3 it was assembled with a literal value 0x0000, in 1.7.4, the generated opcode was changed, but the literal value still persists.

kierenj commented 12 years ago

Thanks for flagging this, it's pretty crucial! I've now got a test case of about 70 opcode/operand combinations with various literals, labels etc, and am re-checking them all.

kierenj commented 12 years ago

Sorted for the next release. Thanks for the feedback, this was a nasty one.!

dekay9001 commented 12 years ago

I'm happy i could help, and thanks for fixing!