Fix indirect,x
authorAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 6 Jul 2016 16:06:20 +0000 (09:06 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 6 Jul 2016 16:06:20 +0000 (09:06 -0700)
src/CPU/addressing/(indirect,X)

index bbc421a..bf4cbc2 100644 (file)
@@ -1,2 +1,6 @@
 mapper read PC+1
-set address to (M + X) mod 256
+set temp to M
+mapper read (temp + X) mod 256
+set tmp to M
+mapper read (temp + X + 1) mod 256
+set address to (M*256) + tmp
This page took 0.024488 seconds and 4 git commands to generate.