From f399315a489c7eff28ec1941c41d12264fb38039 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Tue, 13 Oct 2015 17:50:58 -0600 Subject: [PATCH] Unicode --- event/magikarp.asm | 16 ++++++++-------- macros/charmap.asm | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/event/magikarp.asm b/event/magikarp.asm index 4f759d655..46939ee97 100644 --- a/event/magikarp.asm +++ b/event/magikarp.asm @@ -81,7 +81,7 @@ Special_CheckMagikarpLength: ; fbb32 ; 0xfbbae Magikarp_LoadFeetInchesChars: ; fbbae - ld hl, VTiles2 + "" * $10 + ld hl, VTiles2 + "′" * $10 ld de, .feetinchchars lb bc, BANK(.feetinchchars), 2 call Request2bpp @@ -98,12 +98,12 @@ PrintMagikarpLength: ; fbbdb ld de, Buffer1 lb bc, PRINTNUM_RIGHTALIGN | 1, 2 call PrintNum - ld [hl], "" + ld [hl], "′" inc hl ld de, Buffer2 lb bc, PRINTNUM_RIGHTALIGN | 1, 2 call PrintNum - ld [hl], "" + ld [hl], "″" inc hl ld [hl], "@" ret @@ -127,9 +127,9 @@ CalcMagikarpLength: ; fbbfc ; bc = rrc(dv[0]) ++ rrc(dv[1]) ^ rrc(id) -; if bc < 10: [MagikarpLength] = c + 190 -; if bc >= $ff00: [MagikarpLength] = c + 1370 -; else: [MagikarpLength] = z * 100 + (bc - x) / y +; if bc < 10: [MagikarpLength] = c + 190 +; if bc ≥ $ff00: [MagikarpLength] = c + 1370 +; else: [MagikarpLength] = z × 100 + (bc − x) / y ; X, Y, and Z depend on the value of b as follows: @@ -216,7 +216,7 @@ CalcMagikarpLength: ; fbbfc ld a, [hQuotient + 2] ld c, a - ; de = c + 100 * (2 + i) + ; de = c + 100 × (2 + i) xor a ld [hMultiplicand + 0], a ld [hMultiplicand + 1], a @@ -249,7 +249,7 @@ CalcMagikarpLength: ; fbbfc ld e, l .done - ; hl = de * 10 + ; hl = de × 10 ld h, d ld l, e rept 2 diff --git a/macros/charmap.asm b/macros/charmap.asm index 83ae5ab79..de6519602 100644 --- a/macros/charmap.asm +++ b/macros/charmap.asm @@ -10,8 +10,8 @@ charmap "└", $7d charmap "┘", $7e charmap " ", $7f - charmap "", $6e - charmap "", $6f + charmap "′", $6e + charmap "″", $6f charmap "A", $80