mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Fix wVirtualOAM labels, part 1.
This commit is contained in:
parent
3203ad7d50
commit
3c7ba37de7
@ -1611,7 +1611,7 @@ Functioncd913: ; cd913 (33:5913)
|
||||
ld hl, BATTLEANIMSTRUCT_10
|
||||
add hl, bc
|
||||
ld e, [hl]
|
||||
ld hl, hPushOAM ; $ff80
|
||||
ld hl, hTransferVirtualOAM ; $ff80
|
||||
add hl, de
|
||||
ld e, l
|
||||
ld d, h
|
||||
@ -2104,7 +2104,7 @@ asm_cdbfa: ; cdbfa (33:5bfa)
|
||||
ld hl, BATTLEANIMSTRUCT_0F
|
||||
add hl, bc
|
||||
ld e, [hl]
|
||||
ld hl, hPushOAM ; $ff80
|
||||
ld hl, hTransferVirtualOAM ; $ff80
|
||||
add hl, de
|
||||
ld e, l
|
||||
ld d, h
|
||||
@ -3332,7 +3332,7 @@ Functionce306: ; ce306 (33:6306)
|
||||
ld hl, BATTLEANIMSTRUCT_0F
|
||||
add hl, bc
|
||||
ld e, [hl]
|
||||
ld hl, hPushOAM ; $ff80
|
||||
ld hl, hTransferVirtualOAM ; $ff80
|
||||
add hl, de
|
||||
ld e, l
|
||||
ld d, h
|
||||
|
@ -1,5 +1,5 @@
|
||||
LoadPushOAM:: ; 4031
|
||||
ld c, hPushOAM - $ff00
|
||||
WriteOAMDMACodeToHRAM:: ; 4031
|
||||
ld c, hTransferVirtualOAM - $ff00
|
||||
ld b, .PushOAMEnd - .PushOAM
|
||||
ld hl, .PushOAM
|
||||
.loop
|
||||
|
@ -103,10 +103,10 @@ Init:: ; 17d
|
||||
call ClearsScratch
|
||||
|
||||
|
||||
ld a, BANK(LoadPushOAM)
|
||||
ld a, BANK(WriteOAMDMACodeToHRAM)
|
||||
rst Bankswitch
|
||||
|
||||
call LoadPushOAM
|
||||
call WriteOAMDMACodeToHRAM
|
||||
|
||||
xor a
|
||||
ld [hMapAnims], a
|
||||
|
@ -113,7 +113,7 @@ VBlank0:: ; 2b1
|
||||
ld a, [hOAMUpdate]
|
||||
and a
|
||||
jr nz, .done_oam
|
||||
call hPushOAM
|
||||
call hTransferVirtualOAM
|
||||
.done_oam
|
||||
|
||||
|
||||
@ -192,7 +192,7 @@ VBlank1:: ; 337
|
||||
call UpdateBGMap
|
||||
call Serve2bppRequest_VBlank
|
||||
|
||||
call hPushOAM
|
||||
call hTransferVirtualOAM
|
||||
.done
|
||||
|
||||
xor a
|
||||
@ -282,7 +282,7 @@ VBlank3:: ; 396
|
||||
call UpdateBGMap
|
||||
call Serve2bppRequest_VBlank
|
||||
|
||||
call hPushOAM
|
||||
call hTransferVirtualOAM
|
||||
.done
|
||||
|
||||
xor a
|
||||
@ -338,7 +338,7 @@ VBlank4:: ; 3df
|
||||
call UpdateBGMap
|
||||
call Serve2bppRequest
|
||||
|
||||
call hPushOAM
|
||||
call hTransferVirtualOAM
|
||||
|
||||
call Joypad
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user