Prefix wram labels with w, part 2.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
GetPredefPointer:: ; 854b
|
||||
; Return the bank and address of PredefID in a and PredefAddress.
|
||||
; Return the bank and address of wPredefID in a and wPredefAddress.
|
||||
|
||||
; Save hl for later (back in Predef)
|
||||
ld a, h
|
||||
ld [PredefTemp], a
|
||||
ld [wPredefTemp], a
|
||||
ld a, l
|
||||
ld [PredefTemp + 1], a
|
||||
ld [wPredefTemp + 1], a
|
||||
|
||||
push de
|
||||
ld a, [PredefID]
|
||||
ld a, [wPredefID]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, PredefPointers
|
||||
@@ -18,9 +18,9 @@ GetPredefPointer:: ; 854b
|
||||
pop de
|
||||
|
||||
ld a, [hli]
|
||||
ld [PredefAddress + 1], a
|
||||
ld [wPredefAddress + 1], a
|
||||
ld a, [hli]
|
||||
ld [PredefAddress], a
|
||||
ld [wPredefAddress], a
|
||||
ld a, [hl]
|
||||
|
||||
ret
|
||||
|
Reference in New Issue
Block a user