summaryrefslogtreecommitdiff
path: root/engine/routines/drawkrispackgfx.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-24 20:29:55 -0500
committerGitHub <noreply@github.com>2017-12-24 20:29:55 -0500
commitc2a7216d9b8689591ede817015bf96f263396bb8 (patch)
tree008635aac62c3fdbb446453d308c2255fb0554d9 /engine/routines/drawkrispackgfx.asm
parent0b8b6f9259bedacad55bb4667de5b2bbe6eafda7 (diff)
parentc6b12b07b302b82765181b2521e1e0f2ca5f7725 (diff)
Merge pull request #424 from roukaour/master
Rename a routine and some maps; remove all code from main.asm
Diffstat (limited to 'engine/routines/drawkrispackgfx.asm')
-rw-r--r--engine/routines/drawkrispackgfx.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/engine/routines/drawkrispackgfx.asm b/engine/routines/drawkrispackgfx.asm
new file mode 100644
index 000000000..f71e43db8
--- /dev/null
+++ b/engine/routines/drawkrispackgfx.asm
@@ -0,0 +1,20 @@
+DrawKrisPackGFX: ; 48e81
+ ld hl, PackFGFXPointers
+ add hl, de
+ add hl, de
+ ld a, [hli]
+ ld e, a
+ ld d, [hl]
+ ld hl, VTiles2 tile $50
+ lb bc, BANK(PackFGFX), 15
+ call Request2bpp
+ ret
+
+PackFGFXPointers: ; 48e93
+ dw PackFGFX + (15 tiles) * 1
+ dw PackFGFX + (15 tiles) * 3
+ dw PackFGFX + (15 tiles) * 0
+ dw PackFGFX + (15 tiles) * 2
+
+PackFGFX: ; 48e9b
+INCBIN "gfx/pack/pack_f.2bpp"