Unpack ROM
authorAlyssa Rosenzweig <alyssa@backtick.town>
Tue, 5 Jul 2016 22:07:04 +0000 (15:07 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Tue, 5 Jul 2016 22:07:04 +0000 (15:07 -0700)
src/ROM/ROM.tosh [new file with mode: 0644]

diff --git a/src/ROM/ROM.tosh b/src/ROM/ROM.tosh
new file mode 100644 (file)
index 0000000..0460d2f
--- /dev/null
@@ -0,0 +1,13 @@
+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
+delete all of CHR-ROM
+repeat (N*16384)
+    add item temp of iNES ROM to PRG-ROM
+    change temp by 1
+end
+repeat (P*8192)
+    add item temp of iNES ROM to CHR-ROM
+end
+format prg
+format chr
This page took 0.022807 seconds and 4 git commands to generate.