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

Indexed addressing does not work

rlstrand opened this issue · comments

In the Indexed mode of addressing, the contents of the second
word of the instruction are added to the contents of the X Register to form
the address of the operand.

In the Indirect Indexed mode of addressing, the contents of the
second word of the instruction are used as an address pointer to the
contents of another, second, location, The contents of this second
location are added to the contents of the X Register to form the address
of the operand.

In get_address()

operand+memory[X] should be operand+X

memory[operand]+memory[X] should be memory[operand]+X

Yes you are correct, my mistake.