Effects of branch space [Commit 1] (#28)

This commit is contained in:
xCrystal
2023-10-24 20:36:23 +02:00
parent 884e4bdc63
commit a52e7f4df5
13 changed files with 133 additions and 14 deletions

View File

@@ -2318,3 +2318,14 @@ LoadSpaceData::
pop de
ld a, [wMapScriptsBank]
jp FarCopyBytes
; load the branch data of the space at wCurSpaceStruct to wTempSpaceBranchStruct
LoadTempSpaceBranchData::
ld hl, wCurSpaceBranchStructPtr
ld a, [hli]
ld h, [hl]
ld l, a
ld de, wTempSpaceBranchStruct
ld bc, wTempSpaceBranchStructEnd - wTempSpaceBranchStruct
ld a, [wMapScriptsBank]
jp FarCopyBytes