summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GFX/Sprites.asepritebin0 -> 405 bytes
-rw-r--r--GFX/Sprites.pngbin0 -> 168 bytes
-rw-r--r--GFX/Tiles-16Col.asepritebin0 -> 450 bytes
-rw-r--r--GFX/Tiles-16Col.pngbin0 -> 162 bytes
-rw-r--r--GFX/Tiles-4Col.asepritebin0 -> 3048 bytes
-rw-r--r--GFX/Tiles-4Col.pngbin0 -> 501 bytes
-rw-r--r--macros.inc24
-rw-r--r--main.asm1
8 files changed, 25 insertions, 0 deletions
diff --git a/GFX/Sprites.aseprite b/GFX/Sprites.aseprite
new file mode 100644
index 0000000..180f920
--- /dev/null
+++ b/GFX/Sprites.aseprite
Binary files differ
diff --git a/GFX/Sprites.png b/GFX/Sprites.png
new file mode 100644
index 0000000..4365a00
--- /dev/null
+++ b/GFX/Sprites.png
Binary files differ
diff --git a/GFX/Tiles-16Col.aseprite b/GFX/Tiles-16Col.aseprite
new file mode 100644
index 0000000..086bbe6
--- /dev/null
+++ b/GFX/Tiles-16Col.aseprite
Binary files differ
diff --git a/GFX/Tiles-16Col.png b/GFX/Tiles-16Col.png
new file mode 100644
index 0000000..866e306
--- /dev/null
+++ b/GFX/Tiles-16Col.png
Binary files differ
diff --git a/GFX/Tiles-4Col.aseprite b/GFX/Tiles-4Col.aseprite
new file mode 100644
index 0000000..3b655d0
--- /dev/null
+++ b/GFX/Tiles-4Col.aseprite
Binary files differ
diff --git a/GFX/Tiles-4Col.png b/GFX/Tiles-4Col.png
new file mode 100644
index 0000000..9ac6d63
--- /dev/null
+++ b/GFX/Tiles-4Col.png
Binary files differ
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
diff --git a/main.asm b/main.asm
index c7044a7..057bd9b 100644
--- a/main.asm
+++ b/main.asm
@@ -9,6 +9,7 @@
; Initialise SNES
;
include "snes.inc"
+ include "macros.inc"
sei
clc