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