mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Scrub WRAM addresses from comments & use WRAM1_Begin where appropriate.
This commit is contained in:
parent
fb825a800e
commit
51106cccd0
@ -11,8 +11,7 @@ DefaultOptions: ; 14f7c
|
|||||||
db GBPRINTER_NORMAL
|
db GBPRINTER_NORMAL
|
||||||
; Options2: menu account on
|
; Options2: menu account on
|
||||||
db 1 << MENU_ACCOUNT
|
db 1 << MENU_ACCOUNT
|
||||||
; $cfd2: ??
|
|
||||||
db $00
|
db $00
|
||||||
; $cfd3: ??
|
|
||||||
db $00
|
db $00
|
||||||
; 14f84
|
; 14f84
|
||||||
|
@ -100,7 +100,7 @@ Function_LoadRandomBattleTowerPkmn: ; 1f8081
|
|||||||
.FindARandomBattleTowerPkmn:
|
.FindARandomBattleTowerPkmn:
|
||||||
; From Which LevelGroup are the Pkmn loaded
|
; From Which LevelGroup are the Pkmn loaded
|
||||||
; a = 1..10
|
; a = 1..10
|
||||||
ld a, [wBTChoiceOfLvlGroup] ; [$d800]
|
ld a, [wBTChoiceOfLvlGroup]
|
||||||
dec a
|
dec a
|
||||||
ld hl, BattleTowerMons
|
ld hl, BattleTowerMons
|
||||||
ld bc, BattleTowerMons2 - BattleTowerMons1
|
ld bc, BattleTowerMons2 - BattleTowerMons1
|
||||||
|
@ -10,7 +10,7 @@ GBCOnlyScreen: ; 4ea82
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
|
|
||||||
ld hl, GBCOnlyGFX
|
ld hl, GBCOnlyGFX
|
||||||
ld de, $d000
|
ld de, WRAM1_Begin
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, 0
|
ld a, 0
|
||||||
@ -19,7 +19,7 @@ GBCOnlyScreen: ; 4ea82
|
|||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
|
|
||||||
ld de, $d000
|
ld de, WRAM1_Begin
|
||||||
ld hl, vTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(GBCOnlyGFX), $54
|
lb bc, BANK(GBCOnlyGFX), $54
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
@ -811,31 +811,24 @@ Link_PrepPartyData_Gen2: ; 28595
|
|||||||
inc de
|
inc de
|
||||||
dec b
|
dec b
|
||||||
jr nz, .loop1
|
jr nz, .loop1
|
||||||
; de = $c806
|
|
||||||
ld hl, PlayerName
|
ld hl, PlayerName
|
||||||
ld bc, NAME_LENGTH
|
ld bc, NAME_LENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c811
|
|
||||||
ld hl, PartyCount
|
ld hl, PartyCount
|
||||||
ld bc, 1 + PARTY_LENGTH + 1
|
ld bc, 1 + PARTY_LENGTH + 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c819
|
|
||||||
ld hl, PlayerID
|
ld hl, PlayerID
|
||||||
ld bc, 2
|
ld bc, 2
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c81b
|
|
||||||
ld hl, PartyMon1Species
|
ld hl, PartyMon1Species
|
||||||
ld bc, PARTY_LENGTH * PARTYMON_STRUCT_LENGTH
|
ld bc, PARTY_LENGTH * PARTYMON_STRUCT_LENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c93b
|
|
||||||
ld hl, PartyMonOT
|
ld hl, PartyMonOT
|
||||||
ld bc, PARTY_LENGTH * NAME_LENGTH
|
ld bc, PARTY_LENGTH * NAME_LENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c97d
|
|
||||||
ld hl, PartyMonNicknames
|
ld hl, PartyMonNicknames
|
||||||
ld bc, PARTY_LENGTH * PKMN_NAME_LENGTH
|
ld bc, PARTY_LENGTH * PKMN_NAME_LENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
; de = $c9bf
|
|
||||||
|
|
||||||
; Okay, we did all that. Now, are we in the trade center?
|
; Okay, we did all that. Now, are we in the trade center?
|
||||||
ld a, [wLinkMode]
|
ld a, [wLinkMode]
|
||||||
|
@ -55,7 +55,7 @@ Init:: ; 17d
|
|||||||
ld [rOBP1], a
|
ld [rOBP1], a
|
||||||
ld [rTMA], a
|
ld [rTMA], a
|
||||||
ld [rTAC], a
|
ld [rTAC], a
|
||||||
ld [$d000], a
|
ld [WRAM1_Begin], a
|
||||||
|
|
||||||
ld a, %100 ; Start timer at 4096Hz
|
ld a, %100 ; Start timer at 4096Hz
|
||||||
ld [rTAC], a
|
ld [rTAC], a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user