Subtract op code not working
rlstrand opened this issue · comments
load A,0
sub A,1
halt
A gets set to 10000001
It should be set to 11111111
I think the code I provided in
#1
should return the correct value
Perform the subtraction.
memory[register] = ((memory[register] - operand) + 256) & 0b11111111;
Fixed in release V1.02.
Thank you for helping me make this project better,