kidmirage / KENBAK-2-5-Build-Files

For the 2:5 Scale KENBAK-1 Personal Computer Reproduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,