shithub: pokecrystal

Download patch

ref: 51106cccd02ba305b1aa12b644f5a0e9193fd555
parent: fb825a800e44c0795225949658b58a0522a9c998
author: Adelaide Walter <adelaidekwalter@gmail.com>
date: Tue Jan 2 19:19:54 EST 2018

Scrub WRAM addresses from comments & use WRAM1_Begin where appropriate.

--- a/data/default_options.asm
+++ b/data/default_options.asm
@@ -11,8 +11,7 @@
 	db GBPRINTER_NORMAL
 ; Options2: menu account on
 	db 1 << MENU_ACCOUNT
-; $cfd2: ??
+	
 	db $00
-; $cfd3: ??
 	db $00
 ; 14f84
--- a/engine/events/battle_tower.asm
+++ b/engine/events/battle_tower.asm
@@ -100,7 +100,7 @@
 .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
--- a/engine/gbc_only.asm
+++ b/engine/gbc_only.asm
@@ -10,7 +10,7 @@
 	call ClearTileMap
 
 	ld hl, GBCOnlyGFX
-	ld de, $d000
+	ld de, WRAM1_Begin
 	ld a, [rSVBK]
 	push af
 	ld a, 0
@@ -19,7 +19,7 @@
 	pop af
 	ld [rSVBK], a
 
-	ld de, $d000
+	ld de, WRAM1_Begin
 	ld hl, vTiles2
 	lb bc, BANK(GBCOnlyGFX), $54
 	call Get2bpp
--- a/engine/link.asm
+++ b/engine/link.asm
@@ -811,31 +811,24 @@
 	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]
--- a/home/init.asm
+++ b/home/init.asm
@@ -55,7 +55,7 @@
 	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
--