mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Label wram variables for in home/mobile and lib/mobile (#843)
This commit is contained in:
parent
8059d0c845
commit
588cf88257
@ -1,66 +1,66 @@
|
|||||||
Function3e32::
|
Function3e32::
|
||||||
; Mobile
|
; Mobile
|
||||||
cp $2
|
cp $2
|
||||||
ld [$c988], a
|
ld [wc988], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [$c986], a
|
ld [wc986], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [$c987], a
|
ld [wc987], a
|
||||||
jr nz, .okay
|
jr nz, .okay
|
||||||
|
|
||||||
ld [$c982], a
|
ld [wc982], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
ld hl, $c983
|
ld hl, wc983
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
.okay
|
.okay
|
||||||
ld hl, $c822
|
ld hl, wc822
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
ldh a, [hROMBank]
|
ldh a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(Function110030)
|
ld a, BANK(Function110030)
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
jp Function110030
|
jp Function110030
|
||||||
|
|
||||||
Function3e60::
|
Function3e60::
|
||||||
; Return from Function110030
|
; Return from Function110030
|
||||||
ld [$c986], a
|
ld [wc986], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [$c987], a
|
ld [wc987], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [$c988], a
|
ld [wc988], a
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
ld hl, $c822
|
ld hl, wc822
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
ld hl, $c987
|
ld hl, wc987
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, [$c986]
|
ld a, [wc986]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
MobileReceive::
|
MobileReceive::
|
||||||
ldh a, [hROMBank]
|
ldh a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(_MobileReceive)
|
ld a, BANK(_MobileReceive)
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
call _MobileReceive
|
call _MobileReceive
|
||||||
pop bc
|
pop bc
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
ret
|
ret
|
||||||
@ -83,11 +83,11 @@ MobileTimer::
|
|||||||
and 1 << VBLANK | 1 << LCD_STAT | 1 << SERIAL | 1 << JOYPAD
|
and 1 << VBLANK | 1 << LCD_STAT | 1 << SERIAL | 1 << JOYPAD
|
||||||
ldh [rIF], a
|
ldh [rIF], a
|
||||||
|
|
||||||
ld a, [$c86a]
|
ld a, [wc86a]
|
||||||
or a
|
or a
|
||||||
jr z, .pop_ret
|
jr z, .pop_ret
|
||||||
|
|
||||||
ld a, [$c822]
|
ld a, [wc822]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr nz, .skip_timer
|
jr nz, .skip_timer
|
||||||
|
|
||||||
@ -98,14 +98,14 @@ MobileTimer::
|
|||||||
ldh a, [hROMBank]
|
ldh a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(_Timer)
|
ld a, BANK(_Timer)
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
call _Timer
|
call _Timer
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [$c981], a
|
ld [wc981], a
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
.skip_timer
|
.skip_timer
|
||||||
|
2776
lib/mobile/main.asm
2776
lib/mobile/main.asm
File diff suppressed because it is too large
Load Diff
133
wram.asm
133
wram.asm
@ -1101,20 +1101,135 @@ wCreditsBlankFrame2bppEnd::
|
|||||||
SECTION UNION "Overworld Map", WRAM0
|
SECTION UNION "Overworld Map", WRAM0
|
||||||
|
|
||||||
; mobile
|
; mobile
|
||||||
ds 7
|
wc800:: db
|
||||||
wc807:: ds 1
|
wc801:: db
|
||||||
ds 10
|
wc802:: db
|
||||||
|
wc803:: db
|
||||||
|
wc804:: db
|
||||||
|
wc805:: db
|
||||||
|
wc806:: db
|
||||||
|
wc807:: db
|
||||||
|
wc808:: dw
|
||||||
|
wc80a:: db
|
||||||
|
wc80b:: db
|
||||||
|
wc80c:: dw
|
||||||
|
wc80e:: db
|
||||||
|
wc80f:: db
|
||||||
|
wc810:: db
|
||||||
|
wc811:: db
|
||||||
wMobileSDK_PacketChecksum:: dw
|
wMobileSDK_PacketChecksum:: dw
|
||||||
ds 4
|
wc814:: db
|
||||||
|
wc815:: db
|
||||||
|
wc816:: dw
|
||||||
wMobileSDK_AdapterType:: db
|
wMobileSDK_AdapterType:: db
|
||||||
ds 5
|
wc819:: db
|
||||||
|
wc81a:: db
|
||||||
|
wc81b:: db
|
||||||
|
wc81c:: db
|
||||||
|
wc81d:: db
|
||||||
wMobileSDK_SendCommandID:: db
|
wMobileSDK_SendCommandID:: db
|
||||||
ds 2
|
wc81f:: db
|
||||||
wc821:: ds 1
|
wc820:: db
|
||||||
wc822:: ds 525
|
wc821:: db
|
||||||
|
wc822:: db
|
||||||
|
wc823:: ds 4
|
||||||
|
wc827:: dw
|
||||||
|
wc829:: db
|
||||||
|
wc82a:: db
|
||||||
|
wc82b:: db
|
||||||
|
wc82c:: db
|
||||||
|
wc82d:: db
|
||||||
|
wc82e:: db
|
||||||
|
wc82f:: ds 3
|
||||||
|
wc832:: db
|
||||||
|
wc833:: db
|
||||||
|
wc834:: db
|
||||||
|
wc835:: db
|
||||||
|
wc836:: ds 8
|
||||||
|
wc83e:: ds 20
|
||||||
|
wc852:: ds 20
|
||||||
|
wc866:: ds 4
|
||||||
|
wc86a:: db
|
||||||
|
wc86b:: db
|
||||||
|
wc86c:: db
|
||||||
|
wc86d:: db
|
||||||
|
wc86e:: db
|
||||||
|
wc86f:: db
|
||||||
|
wc870:: db
|
||||||
|
wc871:: db
|
||||||
|
wc872:: db
|
||||||
|
wc873:: db
|
||||||
|
wc874:: db
|
||||||
|
wc875:: db
|
||||||
|
wc876:: db
|
||||||
|
wc877:: db
|
||||||
|
wc878:: dw
|
||||||
|
wc87a:: db
|
||||||
|
wc87b:: db
|
||||||
|
wc87c:: db
|
||||||
|
wc87d:: db
|
||||||
|
wc87e:: db
|
||||||
|
wc87f:: db
|
||||||
|
wc880:: db
|
||||||
|
wc881:: db
|
||||||
|
wc882:: db
|
||||||
|
wc883:: db
|
||||||
|
wc884:: ds 8
|
||||||
|
wc88c:: ds 32
|
||||||
|
wc8ac:: ds 26
|
||||||
|
wc8c6:: db
|
||||||
|
wc8c7:: db
|
||||||
|
wc8c8:: db
|
||||||
|
wc8c9:: db
|
||||||
|
wc8ca:: ds 44
|
||||||
|
wc8f6:: ds 8
|
||||||
|
wc8fe:: db
|
||||||
|
wc8ff:: ds 15
|
||||||
|
wc90e:: ds 8
|
||||||
|
wc916:: ds 16
|
||||||
|
wc926:: ds 8
|
||||||
|
wc92e:: ds 75
|
||||||
|
wc979:: db
|
||||||
|
wc97a:: ds 5
|
||||||
|
wc97f:: db
|
||||||
|
wc980:: db
|
||||||
|
wc981:: db
|
||||||
|
wc982:: db
|
||||||
|
wc983:: dw
|
||||||
|
wc985:: db
|
||||||
|
wc986:: db
|
||||||
|
wc987:: db
|
||||||
|
wc988:: db
|
||||||
|
wc989:: db
|
||||||
|
wc98a:: db
|
||||||
|
wc98b:: db
|
||||||
|
wc98c:: db
|
||||||
|
wc98d:: db
|
||||||
|
wc98e:: db
|
||||||
|
wc98f:: db
|
||||||
|
wc990:: db
|
||||||
|
wc991:: db
|
||||||
|
wc992:: db
|
||||||
|
wc993:: db
|
||||||
|
wc994:: db
|
||||||
|
wc995:: ds 16
|
||||||
|
wc9a5:: ds 5
|
||||||
|
wc9aa:: db
|
||||||
|
wc9ab:: db
|
||||||
|
wc9ac:: db
|
||||||
|
wc9ad:: db
|
||||||
|
wc9ae:: db
|
||||||
|
wc9af:: dw
|
||||||
|
wc9b1:: db
|
||||||
|
wc9b2:: ds 3
|
||||||
|
wc9b5:: db
|
||||||
|
wc9b6:: ds 121
|
||||||
|
|
||||||
wMobileSDK_ReceivePacketBufferAlt:: ds 11
|
wMobileSDK_ReceivePacketBufferAlt:: ds 11
|
||||||
wMobileSDK_ReceivedBytes:: dw
|
wMobileSDK_ReceivedBytes:: dw
|
||||||
wMobileSDK_ReceivePacketBuffer:: ds 267
|
wMobileSDK_ReceivePacketBuffer:: ds 250
|
||||||
|
wcb36:: db
|
||||||
|
ds 16
|
||||||
wMobileSDK_PacketBuffer:: ds 281
|
wMobileSDK_PacketBuffer:: ds 281
|
||||||
wcc60:: ds 1
|
wcc60:: ds 1
|
||||||
wcc61:: ds 1
|
wcc61:: ds 1
|
||||||
|
Loading…
Reference in New Issue
Block a user