summaryrefslogtreecommitdiff
path: root/tests/sprites.BytePusher
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-07-19 14:20:17 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-07-19 14:20:17 +0200
commit647ca0c2fad0d4749792698ca09adfa9c6d1b23b (patch)
treef21a5b26f52d0b37295c7d4525c08d1b0290b569 /tests/sprites.BytePusher
parent9c282b20f2c6fc3a31992d426f3f7f7d2c023716 (diff)
Fix instructions:
The program counter must be reset after each frame, and it's not supposed to be set after each instruction execution. We were setting the PC from the C value of the instructions but that's not what we need to do. The C value is only used for a jump and then, in the next frame the PC must be reloaded from its value in the memory. The only way to change the PC in the program is using it in the B argument of the instructions, which would overwrite it with an arbitrary value (stored in A).
Diffstat (limited to 'tests/sprites.BytePusher')
0 files changed, 0 insertions, 0 deletions