Preliminary CPU stepping code
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 30 Jun 2016 16:16:54 +0000 (09:16 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 30 Jun 2016 16:16:54 +0000 (09:16 -0700)
src/PPU/PPU.tosh

index 5c12cc5..419e849 100644 (file)
@@ -50,8 +50,12 @@ repeat 224
        evaluate sprites scanline:  (Y)
        set x to -128
        set X to 1
-       repeat 80
-               emulate 3 PPU cycles
+       repeat until X > 240
+                step CPU
+                repeat cycles
+                    emulate 3 PPU cycles
+                end
+                set cycles to 0
        end
        set PPU vblank? to 1
        if PPU generate NMI = 1 then
This page took 0.026458 seconds and 4 git commands to generate.