mirror of
https://github.com/pret/pokecrystal.git
synced 2026-04-28 17:37:07 -05:00
Add some comments to document inputs/outputs of functions in home bank
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
This commit is contained in:
parent
10b4490743
commit
ae7ee67d21
|
|
@ -92,6 +92,7 @@ GetFarWord::
|
||||||
ret
|
ret
|
||||||
|
|
||||||
FarCopyWRAM::
|
FarCopyWRAM::
|
||||||
|
; copy bc bytes from hl to a:de
|
||||||
ldh [hTempBank], a
|
ldh [hTempBank], a
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
|
|
@ -105,6 +106,7 @@ FarCopyWRAM::
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GetFarWRAMByte::
|
GetFarWRAMByte::
|
||||||
|
; retrieve a single byte from a:hl, and return it in a.
|
||||||
ldh [hTempBank], a
|
ldh [hTempBank], a
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
|
|
@ -118,6 +120,7 @@ GetFarWRAMByte::
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GetFarWRAMWord:: ; unreferenced
|
GetFarWRAMWord:: ; unreferenced
|
||||||
|
; retrieve a word from a:hl, and return it in hl.
|
||||||
ldh [hTempBank], a
|
ldh [hTempBank], a
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,7 @@ LoadFontsExtra2: ; unreferenced
|
||||||
ret
|
ret
|
||||||
|
|
||||||
DecompressRequest2bpp::
|
DecompressRequest2bpp::
|
||||||
|
; Load compressed 2bpp at b:hl to occupy c tiles of de.
|
||||||
push de
|
push de
|
||||||
ld a, BANK(sScratch)
|
ld a, BANK(sScratch)
|
||||||
call OpenSRAM
|
call OpenSRAM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user