mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
wcf4b -> wStringBuffer
This commit is contained in:
parent
236426138b
commit
7ee8a6509e
51 changed files with 112 additions and 114 deletions
|
|
@ -1,9 +1,9 @@
|
|||
; copies a string from [de] to [wcf4b]
|
||||
CopyStringToCF4B::
|
||||
ld hl, wcf4b
|
||||
; copies a string from de to wStringBuffer
|
||||
CopyToStringBuffer::
|
||||
ld hl, wStringBuffer
|
||||
; fall through
|
||||
|
||||
; copies a string from [de] to [hl]
|
||||
; copies a string from de to hl
|
||||
CopyString::
|
||||
ld a, [de]
|
||||
inc de
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
GiveItem::
|
||||
; Give player quantity c of item b,
|
||||
; and copy the item's name to wcf4b.
|
||||
; and copy the item's name to wStringBuffer.
|
||||
; Return carry on success.
|
||||
ld a, b
|
||||
ld [wd11e], a
|
||||
|
|
@ -11,7 +11,7 @@ GiveItem::
|
|||
call AddItemToInventory
|
||||
ret nc
|
||||
call GetItemName
|
||||
call CopyStringToCF4B
|
||||
call CopyToStringBuffer
|
||||
scf
|
||||
ret
|
||||
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ DisplayListMenuIDLoop::
|
|||
call GetPartyMonName
|
||||
.storeChosenEntry ; store the menu entry that the player chose and return
|
||||
ld de, wcd6d
|
||||
call CopyStringToCF4B ; copy name to wcf4b
|
||||
call CopyToStringBuffer
|
||||
ld a, CHOSE_MENU_ITEM
|
||||
ld [wMenuExitMethod], a
|
||||
ld a, [wCurrentMenuItem]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue