summaryrefslogtreecommitdiff
path: root/gfx/load_pics.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-09-25 17:21:40 -0400
committerGitHub <noreply@github.com>2017-09-25 17:21:40 -0400
commit77a98f2f44a72601b039982f8298a855cd2c5909 (patch)
tree083d6cadbb59db256f5db10e5765d85885ca6f6a /gfx/load_pics.asm
parent52cd3398bde140d123bd22bfb0464cf3cf2b39fa (diff)
parent543d67b647f7edc458d6748d9a80d1399ed95be8 (diff)
Merge pull request #390 from yenatch/remove-contents
Remove contents.asm
Diffstat (limited to 'gfx/load_pics.asm')
-rwxr-xr-xgfx/load_pics.asm54
1 files changed, 29 insertions, 25 deletions
diff --git a/gfx/load_pics.asm b/gfx/load_pics.asm
index 26e984831..b66117de9 100755
--- a/gfx/load_pics.asm
+++ b/gfx/load_pics.asm
@@ -250,9 +250,13 @@ GetBackpic: ; 5116c
FixPicBank: ; 511c5
; This is a thing for some reason.
+
+PICS_FIX EQU $36
+GLOBAL PICS_FIX
+
push hl
push bc
- sub PICS_1 - PICS_FIX
+ sub BANK(Pics_1) - PICS_FIX
ld c, a
ld b, 0
ld hl, .PicsBanks
@@ -263,30 +267,30 @@ FixPicBank: ; 511c5
ret
.PicsBanks: ; 511d4
- db PICS_1
- db PICS_2
- db PICS_3
- db PICS_4
- db PICS_5
- db PICS_6
- db PICS_7
- db PICS_8
- db PICS_9
- db PICS_10
- db PICS_11
- db PICS_12
- db PICS_13
- db PICS_14
- db PICS_15
- db PICS_16
- db PICS_17
- db PICS_18
- db PICS_19
- db PICS_19 + 1
- db PICS_19 + 2
- db PICS_19 + 3
- db PICS_19 + 4
- db PICS_19 + 5
+ db BANK(Pics_1) + 0
+ db BANK(Pics_1) + 1
+ db BANK(Pics_1) + 2
+ db BANK(Pics_1) + 3
+ db BANK(Pics_1) + 4
+ db BANK(Pics_1) + 5
+ db BANK(Pics_1) + 6
+ db BANK(Pics_1) + 7
+ db BANK(Pics_1) + 8
+ db BANK(Pics_1) + 9
+ db BANK(Pics_1) + 10
+ db BANK(Pics_1) + 11
+ db BANK(Pics_1) + 12
+ db BANK(Pics_1) + 13
+ db BANK(Pics_1) + 14
+ db BANK(Pics_1) + 15
+ db BANK(Pics_1) + 16
+ db BANK(Pics_1) + 17
+ db BANK(Pics_1) + 18
+ db BANK(Pics_1) + 19
+ db BANK(Pics_1) + 20
+ db BANK(Pics_1) + 21
+ db BANK(Pics_1) + 22
+ db BANK(Pics_1) + 23
Function511ec: ; 511ec
ld a, c