shithub: pokecrystal

Download patch

ref: 7b2377c41e480bc718b4d2e23d60175f9b5fadb9
parent: f76a093f44dcf6f5b733ba52bff481e03d0593f2
author: Colton G. Rushton <colton51919@gmail.com>
date: Mon Nov 18 13:26:07 EST 2019

Fixed a charmap warning with the new RGBDS

--- a/charmap.asm
+++ b/charmap.asm
@@ -416,3 +416,8 @@
 	charmap "7", $fd
 	charmap "8", $fe
 	charmap "9", $ff
+
+; ASCII charmap, for mobile functions
+	pushc
+	newcharmap ascii
+	popc
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -1686,11 +1686,13 @@
 
 SECTION "tetsuji", ROMX
 
-	charmap " ", $20 ; revert to ascii
+	pushc
+	setcharmap ascii ; revert to ascii
 
 Unknown_100b0a:
 	db "tetsuji", 0
 
+	popc
 
 SECTION "bank40_2", ROMX
 
@@ -3620,7 +3622,8 @@
 
 SECTION "ascii 10186f", ROMX
 
-	charmap " ", $20 ; revert to ascii
+	pushc
+	setcharmap ascii ; revert to ascii
 
 Unknown_10186f:
 	db .end - @
@@ -3637,6 +3640,7 @@
 	db $19, $67, $10, $01, "limit_crystal"
 .end	db 0
 
+popc
 
 SECTION "bank40_3", ROMX
 
--- a/mobile/mobile_45.asm
+++ b/mobile/mobile_45.asm
@@ -1,6 +1,7 @@
 SECTION "Mobile 45", ROMX
 
-	charmap " ", $20 ; revert to ascii
+	pushc
+	setcharmap ascii ; revert to ascii
 
 String_114000:
 	db "---", 0
@@ -58,6 +59,8 @@
 	db "--", 0
 String_114163:
 	db ".", 0
+
+popc
 
 Jumptable_114165:
 	dw Stubbed_Function114268
--- a/mobile/mobile_46.asm
+++ b/mobile/mobile_46.asm
@@ -1484,7 +1484,8 @@
 	and a
 	ret
 
-	charmap " ", $20 ; revert to ascii
+	pushc
+	setcharmap ascii ; revert to ascii
 
 ExchangeDownloadURL:
 	db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/exchange/index.txt", 0
@@ -1501,6 +1502,8 @@
 IndexDownloadURL:
 	db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/tamago/index.txt", 0
 
+	popc
+
 Unreferenced_Function118d35:
 	ld hl, $d200
 	ld a, [wcd38]
@@ -2918,6 +2921,9 @@
 	jr nz, .asm_119699
 	ret
 
+pushc
+setcharmap ascii
+
 Unknown_1196b8:
 	db "Mon"
 	db "Tue"
@@ -2927,6 +2933,7 @@
 	db "Sat"
 	db "Sun"
 
+popc
 
 SECTION "Mobile 46 ASCII", ROMX
 ; A hack to use ascii above.