DMA register
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 30 Jun 2016 18:41:55 +0000 (11:41 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 30 Jun 2016 18:41:55 +0000 (11:41 -0700)
src/CPU/common.tosh
src/PPU/PPU.tosh

index 041635a..fa75659 100644 (file)
@@ -20,9 +20,13 @@ else
        if addr > 8191 and addr < 8200 then
                write PPU register (addr - 8192) value: (value)
        else
-               if addr > 32768 then
-                       say "Writing to ROM isn't very nice, you know..."
-               end
+                if addr = 16404 then
+                        OAM DMA (value)
+                else
+                       if addr > 32768 then
+                               say "Writing to ROM isn't very nice, you know..."
+                       end
+                end
        end
 end
 
index 622d23d..d558987 100644 (file)
@@ -154,6 +154,7 @@ else
 end
 
 define OAM DMA (pagebase)
+ask "OAM DMA?" and wait
 set temp to 1
 repeat 256
        mapper read (pagebase + temp)
This page took 0.02447 seconds and 4 git commands to generate.