mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
* extracted and added a bunch of assembly
This commit is contained in:
parent
94d4c89e09
commit
255135d187
@ -342,7 +342,56 @@ INCBIN "baserom.gbc",$109b9a,$18 ; ditto.pal
|
|||||||
INCBIN "baserom.gbc",$109bb2,$18 ; igglybuff.pal
|
INCBIN "baserom.gbc",$109bb2,$18 ; igglybuff.pal
|
||||||
; 109bca
|
; 109bca
|
||||||
|
|
||||||
INCBIN "baserom.gbc", $109bca, $109c24 - $109bca
|
; known jump sources: 10989e (42:589e), 109964 (42:5964)
|
||||||
|
Function109bca: ; 109bca (42:5bca)
|
||||||
|
ld hl, $cf64
|
||||||
|
ld a, [hl]
|
||||||
|
cp $ff
|
||||||
|
jr z, .asm_109bed
|
||||||
|
and $3
|
||||||
|
ld e, a
|
||||||
|
inc a
|
||||||
|
and $3
|
||||||
|
ld [hl], a
|
||||||
|
ld a, [$cf65]
|
||||||
|
and $3
|
||||||
|
add a
|
||||||
|
add a
|
||||||
|
add e
|
||||||
|
add a
|
||||||
|
ld e, a
|
||||||
|
ld d, $0
|
||||||
|
ld hl, $5bf1
|
||||||
|
add hl, de
|
||||||
|
ld a, [hli]
|
||||||
|
ld h, [hl]
|
||||||
|
ld l, a
|
||||||
|
ret
|
||||||
|
.asm_109bed
|
||||||
|
ld hl, $ca00
|
||||||
|
ret
|
||||||
|
; 109bf1 (42:5bf1)
|
||||||
|
|
||||||
|
INCBIN "baserom.gbc",$109bf1,$109c11 - $109bf1
|
||||||
|
|
||||||
|
; known jump sources: 109a1b (42:5a1b)
|
||||||
|
Function109c11: ; 109c11 (42:5c11)
|
||||||
|
ld a, $40
|
||||||
|
ld hl, $c55a
|
||||||
|
call Function109c1c
|
||||||
|
ld hl, $c56e
|
||||||
|
|
||||||
|
; known jump sources: 109c16 (42:5c16)
|
||||||
|
Function109c1c: ; 109c1c (42:5c1c)
|
||||||
|
ld c, $8
|
||||||
|
.asm_109c1e
|
||||||
|
ld [hli], a
|
||||||
|
inc a
|
||||||
|
dec c
|
||||||
|
jr nz, .asm_109c1e
|
||||||
|
ret
|
||||||
|
; 109c24 (42:5c24)
|
||||||
|
|
||||||
|
|
||||||
CreditsGFX:
|
CreditsGFX:
|
||||||
INCBIN "gfx/credits/border.2bpp"
|
INCBIN "gfx/credits/border.2bpp"
|
||||||
|
@ -2,7 +2,7 @@ ClearBox: ; fb6
|
|||||||
; Fill a c*b box at hl with blank tiles.
|
; Fill a c*b box at hl with blank tiles.
|
||||||
|
|
||||||
ld a, " "
|
ld a, " "
|
||||||
.y
|
Functionfb8:
|
||||||
push bc
|
push bc
|
||||||
push hl
|
push hl
|
||||||
.x
|
.x
|
||||||
@ -14,7 +14,7 @@ ClearBox: ; fb6
|
|||||||
add hl, bc
|
add hl, bc
|
||||||
pop bc
|
pop bc
|
||||||
dec b
|
dec b
|
||||||
jr nz, .y
|
jr nz, Functionfb8
|
||||||
ret
|
ret
|
||||||
; fc8
|
; fc8
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ Function658: ; 658
|
|||||||
ld [StringBuffer2], a
|
ld [StringBuffer2], a
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [$d089], a
|
ld [$d089], a
|
||||||
jr .asm_677
|
jr Function677
|
||||||
|
|
||||||
call UpdateTime
|
call UpdateTime
|
||||||
ld a, [hHours]
|
ld a, [hHours]
|
||||||
@ -201,9 +201,9 @@ Function658: ; 658
|
|||||||
ld [$d088], a
|
ld [$d088], a
|
||||||
ld a, [hSeconds]
|
ld a, [hSeconds]
|
||||||
ld [$d089], a
|
ld [$d089], a
|
||||||
jr .asm_677
|
jr Function677
|
||||||
|
|
||||||
.asm_677
|
Function677
|
||||||
ld a, $5
|
ld a, $5
|
||||||
ld hl, $40ed
|
ld hl, $40ed
|
||||||
rst FarCall
|
rst FarCall
|
||||||
|
Loading…
Reference in New Issue
Block a user