diff options
-rw-r--r-- | GFX/Sprites.aseprite | bin | 0 -> 405 bytes | |||
-rw-r--r-- | GFX/Sprites.png | bin | 0 -> 168 bytes | |||
-rw-r--r-- | GFX/Tiles-16Col.aseprite | bin | 0 -> 450 bytes | |||
-rw-r--r-- | GFX/Tiles-16Col.png | bin | 0 -> 162 bytes | |||
-rw-r--r-- | GFX/Tiles-4Col.aseprite | bin | 0 -> 3048 bytes | |||
-rw-r--r-- | GFX/Tiles-4Col.png | bin | 0 -> 501 bytes | |||
-rw-r--r-- | macros.inc | 24 | ||||
-rw-r--r-- | main.asm | 1 |
8 files changed, 25 insertions, 0 deletions
diff --git a/GFX/Sprites.aseprite b/GFX/Sprites.aseprite Binary files differnew file mode 100644 index 0000000..180f920 --- /dev/null +++ b/GFX/Sprites.aseprite diff --git a/GFX/Sprites.png b/GFX/Sprites.png Binary files differnew file mode 100644 index 0000000..4365a00 --- /dev/null +++ b/GFX/Sprites.png diff --git a/GFX/Tiles-16Col.aseprite b/GFX/Tiles-16Col.aseprite Binary files differnew file mode 100644 index 0000000..086bbe6 --- /dev/null +++ b/GFX/Tiles-16Col.aseprite diff --git a/GFX/Tiles-16Col.png b/GFX/Tiles-16Col.png Binary files differnew file mode 100644 index 0000000..866e306 --- /dev/null +++ b/GFX/Tiles-16Col.png diff --git a/GFX/Tiles-4Col.aseprite b/GFX/Tiles-4Col.aseprite Binary files differnew file mode 100644 index 0000000..3b655d0 --- /dev/null +++ b/GFX/Tiles-4Col.aseprite diff --git a/GFX/Tiles-4Col.png b/GFX/Tiles-4Col.png Binary files differnew file mode 100644 index 0000000..9ac6d63 --- /dev/null +++ b/GFX/Tiles-4Col.png diff --git a/macros.inc b/macros.inc new file mode 100644 index 0000000..78bbfad --- /dev/null +++ b/macros.inc @@ -0,0 +1,24 @@ +DMA: macro mode,source,dest,len
+
+ pha
+
+ lda #@mode
+ sta DMAP0
+ lda #@dest
+ sta BBAD0
+ lda #@source & $ff
+ sta A1T0L
+ lda #{@source >> 8} & $ff
+ sta A1T0H
+ lda #{@source >> 16} & $ff
+ sta A1B0
+ lda #@len & $ff
+ sta DAS0L
+ lda #{@len >> 8} & $ff
+ sta DAS0H
+ lda #1
+ sta MDMAEN
+
+ pla
+
+ endm
@@ -9,6 +9,7 @@ ; Initialise SNES ; include "snes.inc" + include "macros.inc" sei clc |