2018-06-24 07:09:41 -07:00
|
|
|
LoadTileMapToTempTileMap::
|
2018-04-04 21:35:14 -07:00
|
|
|
; Load wTileMap into wTempTileMap
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [rSVBK]
|
2018-04-04 21:35:14 -07:00
|
|
|
push af
|
|
|
|
ld a, BANK(wTempTileMap)
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2018-04-04 21:35:14 -07:00
|
|
|
hlcoord 0, 0
|
|
|
|
decoord 0, 0, wTempTileMap
|
|
|
|
ld bc, wTileMapEnd - wTileMap
|
|
|
|
call CopyBytes
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2018-04-04 21:35:14 -07:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
Call_LoadTempTileMapToTileMap::
|
2018-04-04 21:35:14 -07:00
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2018-04-04 21:35:14 -07:00
|
|
|
call LoadTempTileMapToTileMap
|
|
|
|
ld a, 1
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2018-04-04 21:35:14 -07:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
LoadTempTileMapToTileMap::
|
2018-04-04 21:35:14 -07:00
|
|
|
; Load wTempTileMap into wTileMap
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [rSVBK]
|
2018-04-04 21:35:14 -07:00
|
|
|
push af
|
|
|
|
ld a, BANK(wTempTileMap)
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2018-04-04 21:35:14 -07:00
|
|
|
hlcoord 0, 0, wTempTileMap
|
|
|
|
decoord 0, 0
|
|
|
|
ld bc, wTileMapEnd - wTileMap
|
|
|
|
call CopyBytes
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2018-04-04 21:35:14 -07:00
|
|
|
ret
|