Add some comments to document inputs/outputs of functions in home bank

This commit is contained in:
Brian Saydak
2025-06-18 19:34:55 +02:00
committed by mid-kid
parent 10b4490743
commit ae7ee67d21
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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