Misc bank 9 and text command $14 data.
This commit is contained in:
@@ -1158,17 +1158,24 @@ Text_0D:: ; 1562
|
|||||||
; 156a
|
; 156a
|
||||||
|
|
||||||
Text_14:: ; 156a
|
Text_14:: ; 156a
|
||||||
; TX_PREDEF
|
; Print a string from one of the following:
|
||||||
|
; 0: StringBuffer3
|
||||||
|
; 1: StringBuffer4
|
||||||
|
; 2: StringBuffer5
|
||||||
|
; 3: StringBuffer2
|
||||||
|
; 4: StringBuffer1
|
||||||
|
; 5: EnemyMonNick
|
||||||
|
; 6: BattleMonNick
|
||||||
; [$14][id]
|
; [$14][id]
|
||||||
|
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
push hl
|
push hl
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
ld hl, $4000
|
ld hl, Unknown_24000
|
||||||
add hl, de
|
add hl, de
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, $9
|
ld a, BANK(Unknown_24000)
|
||||||
call GetFarHalfword
|
call GetFarHalfword
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
|
49
main.asm
49
main.asm
@@ -28173,8 +28173,15 @@ INCLUDE "tilesets/data_3.asm"
|
|||||||
|
|
||||||
SECTION "bank9", ROMX, BANK[$9]
|
SECTION "bank9", ROMX, BANK[$9]
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$24000,$2400e - $24000
|
Unknown_24000:: ; 24000
|
||||||
|
dw StringBuffer3
|
||||||
|
dw StringBuffer4
|
||||||
|
dw StringBuffer5
|
||||||
|
dw StringBuffer2
|
||||||
|
dw StringBuffer1
|
||||||
|
dw EnemyMonNick
|
||||||
|
dw BattleMonNick
|
||||||
|
; 2400e
|
||||||
|
|
||||||
Function2400e:: ; 2400e
|
Function2400e:: ; 2400e
|
||||||
ld hl, Function1c66
|
ld hl, Function1c66
|
||||||
@@ -28440,7 +28447,7 @@ Function24193: ; 24193
|
|||||||
|
|
||||||
|
|
||||||
Function241a8:: ; 241a8
|
Function241a8:: ; 241a8
|
||||||
call asm_24329
|
call Function24329
|
||||||
Function241ab:: ; 241ab
|
Function241ab:: ; 241ab
|
||||||
ld hl, $cfa6
|
ld hl, $cfa6
|
||||||
res 7, [hl]
|
res 7, [hl]
|
||||||
@@ -28668,11 +28675,11 @@ Function2431a: ; 2431a
|
|||||||
ld l, a
|
ld l, a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $ed
|
cp $ed
|
||||||
jr nz, asm_24329
|
jr nz, Function24329
|
||||||
ld a, [$cfab]
|
ld a, [$cfab]
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
asm_24329
|
Function24329: ; 24329
|
||||||
ld a, [$cfa1]
|
ld a, [$cfa1]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [$cfa2]
|
ld a, [$cfa2]
|
||||||
@@ -28854,10 +28861,9 @@ Function243e8:: ; 243e8
|
|||||||
ret
|
ret
|
||||||
; 24423
|
; 24423
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$24423,$24426 - $24423
|
|
||||||
|
|
||||||
|
Function24423: ; 24423
|
||||||
Function24426: ; 24426
|
ld a, [VramState]
|
||||||
bit 0, a
|
bit 0, a
|
||||||
ret z
|
ret z
|
||||||
xor a
|
xor a
|
||||||
@@ -29018,7 +29024,7 @@ Function244e3:: ; 244e3
|
|||||||
; 24528
|
; 24528
|
||||||
|
|
||||||
Function24528:: ; 24528
|
Function24528:: ; 24528
|
||||||
ld hl, $4547
|
ld hl, MenuDataHeader_0x24547
|
||||||
call Function1d3c
|
call Function1d3c
|
||||||
call Function1ce1
|
call Function1ce1
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
@@ -29032,7 +29038,13 @@ Function24528:: ; 24528
|
|||||||
ret
|
ret
|
||||||
; 24547
|
; 24547
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$24547,$2454f - $24547
|
MenuDataHeader_0x24547: ; 0x24547
|
||||||
|
db $40 ; flags
|
||||||
|
db 04, 06 ; start coords
|
||||||
|
db 13, 14 ; end coords
|
||||||
|
dw NULL
|
||||||
|
db 1 ; default option
|
||||||
|
; 0x2454f
|
||||||
|
|
||||||
Function2454f: ; 2454f
|
Function2454f: ; 2454f
|
||||||
ld hl, $d81e
|
ld hl, $d81e
|
||||||
@@ -29175,9 +29187,9 @@ Function24609: ; 24609
|
|||||||
and $f
|
and $f
|
||||||
or b
|
or b
|
||||||
bit 0, a
|
bit 0, a
|
||||||
jp nz, .asm_24644
|
jp nz, Function24644
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jp nz, .asm_2466f
|
jp nz, Function2466f
|
||||||
bit 2, a
|
bit 2, a
|
||||||
jp nz, Function24673
|
jp nz, Function24673
|
||||||
bit 3, a
|
bit 3, a
|
||||||
@@ -29193,10 +29205,14 @@ Function24609: ; 24609
|
|||||||
jr .asm_24609
|
jr .asm_24609
|
||||||
; 24640
|
; 24640
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$24640,$24644 - $24640
|
Function24640: ; 24640
|
||||||
|
ld a, $ff
|
||||||
|
and a
|
||||||
|
ret
|
||||||
|
; 24644
|
||||||
|
|
||||||
|
|
||||||
.asm_24644: ; 24644
|
Function24644: ; 24644
|
||||||
call Function1bee
|
call Function1bee
|
||||||
ld a, [$cfa9]
|
ld a, [$cfa9]
|
||||||
dec a
|
dec a
|
||||||
@@ -29211,12 +29227,13 @@ INCBIN "baserom.gbc",$24640,$24644 - $24640
|
|||||||
ld [$d107], a
|
ld [$d107], a
|
||||||
ld a, [MenuSelection]
|
ld a, [MenuSelection]
|
||||||
cp $ff
|
cp $ff
|
||||||
jr z, .asm_2466f
|
jr z, Function2466f
|
||||||
ld a, $1
|
ld a, $1
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
|
; 2466f
|
||||||
|
|
||||||
.asm_2466f
|
Function2466f: ; 2466f
|
||||||
ld a, $2
|
ld a, $2
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
|
Reference in New Issue
Block a user