mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Specify the ldh instruction, don't turn ld into ldh
This commit is contained in:
parent
c480632d54
commit
772fcc7588
219 changed files with 2556 additions and 2556 deletions
|
|
@ -5,7 +5,7 @@ DisplayTextIDInit::
|
|||
ld a, [wAutoTextBoxDrawingControl]
|
||||
bit 0, a
|
||||
jr nz, .skipDrawingTextBoxBorder
|
||||
ld a, [hSpriteIndexOrTextID] ; text ID (or sprite ID)
|
||||
ldh a, [hSpriteIndexOrTextID] ; text ID (or sprite ID)
|
||||
and a
|
||||
jr nz, .notStartMenu
|
||||
; if text ID is 0 (i.e. the start menu)
|
||||
|
|
@ -71,8 +71,8 @@ DisplayTextIDInit::
|
|||
ld b, $9c ; window background address
|
||||
call CopyScreenTileBufferToVRAM ; transfer background in WRAM to VRAM
|
||||
xor a
|
||||
ld [hWY], a ; put the window on the screen
|
||||
ldh [hWY], a ; put the window on the screen
|
||||
call LoadFontTilePatterns
|
||||
ld a, $01
|
||||
ld [hAutoBGTransferEnabled], a ; enable continuous WRAM to VRAM transfer each V-blank
|
||||
ldh [hAutoBGTransferEnabled], a ; enable continuous WRAM to VRAM transfer each V-blank
|
||||
ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue