Refactor
authorAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 6 Jul 2016 16:12:52 +0000 (09:12 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 6 Jul 2016 16:12:52 +0000 (09:12 -0700)
src/PPU/PPU.tosh
src/ROM/ROM.tosh

index 231b805..a164842 100644 (file)
@@ -40,23 +40,6 @@ end
 define-atomic get pattern tile: (tile) scanline: (scanline) table: (table)
 set mask to item (16 * tile + scanline + table + 1) of oCHR
 
-when 1 key pressed
-ask "Cual?" and wait
-if answer = "format chr" then
-       format chr
-else
-       if answer = "format prg" then
-               format prg
-       else
-               if answer = "irom" then
-                       ask "PRG?" and wait
-                       set temp to answer
-                       ask "CHR?" and wait
-                       unpack ROM with (temp) banks of PRG-ROM and (answer) banks of CHR-ROM
-               end
-       end
-end
-
 ; "optimizes CHR-ROM"
 
 define-atomic format chr
index 0460d2f..4522055 100644 (file)
@@ -1,3 +1,20 @@
+when 1 key pressed
+ask "Cual?" and wait
+if answer = "format chr" then
+       format chr
+else
+       if answer = "format prg" then
+               format prg
+       else
+               if answer = "irom" then
+                       ask "PRG?" and wait
+                       set temp to answer
+                       ask "CHR?" and wait
+                       unpack ROM with (temp) banks of PRG-ROM and (answer) banks of CHR-ROM
+               end
+       end
+end
+
 define-atomic unpack ROM with (N) banks of PRG-ROM and (P) banks of CHR-ROM
 set temp to 17
 delete all of PRG-ROM
This page took 0.028239 seconds and 4 git commands to generate.