shithub: pokered

Download patch

ref: 4416e9598887a50d12904b9ee2bf65e275e80930
parent: 4771aa05039c2117b78c05e5c44b5e8254b62e25
author: IIMarckus <iimarckus@gmail.com>
date: Sat Jul 30 20:45:50 EDT 2011

Add $58 to the dictionary.

This is a very strange character and should be looked at more closely.

hg-commit-id: 11758d86cc50


--- a/pokered.asm
+++ b/pokered.asm
@@ -541,7 +541,7 @@
 	cp $57
 	jp z,$1AAD
 	cp $58
-	jp z,$1A95
+	jp z,Char58
 	cp $4A
 	jp z,Char4A
 	cp $5F
@@ -695,8 +695,26 @@
 	pop hl
 	ret
 
-; 1A95
-INCBIN "baserom.gbc",$1A95,$20AF - $1A95
+Char58:
+	ld a,[$D12B]
+	cp 4
+	jp z,Next1AA2
+	ld a,$EE
+	ld [$C4F2],a
+Next1AA2:
+	call $1B3A
+	call $3898
+	ld a,$7F
+	ld [$C4F2],a
+	pop hl
+	ld de,Char58Text
+	dec de
+	ret
+
+Char58Text:
+	db $50
+
+INCBIN "baserom.gbc",$1AB4,$20AF - $1AB4
 
 DelayFrame: ; 20AF
 ; delay for one frame
--