Wrong register for controllers
authorAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 2 Jul 2016 17:58:57 +0000 (10:58 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 2 Jul 2016 17:58:57 +0000 (10:58 -0700)
src/CPU/common.tosh

index 276af55..85c62fd 100644 (file)
@@ -10,7 +10,7 @@ else
         if addr > 8192 and addr < 8200 then
             read PPU register (addr - 8192)
         else
-            if addr = 16405 then
+            if addr = 16406 then
                 read controller 1
             end
         end
@@ -24,7 +24,7 @@ else
        if addr > 8191 and addr < 8200 then
                write PPU register (addr - 8192) value: (value)
        else
-               if addr = 16405 then
+               if addr = 16406 then
                        controller strobe (value)
                else
                        if addr = 16404 then
This page took 0.023718 seconds and 4 git commands to generate.