mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Unicode
This commit is contained in:
parent
d5f94e9ee5
commit
f399315a48
@ -81,7 +81,7 @@ Special_CheckMagikarpLength: ; fbb32
|
|||||||
; 0xfbbae
|
; 0xfbbae
|
||||||
|
|
||||||
Magikarp_LoadFeetInchesChars: ; fbbae
|
Magikarp_LoadFeetInchesChars: ; fbbae
|
||||||
ld hl, VTiles2 + "<FOOT>" * $10
|
ld hl, VTiles2 + "′" * $10
|
||||||
ld de, .feetinchchars
|
ld de, .feetinchchars
|
||||||
lb bc, BANK(.feetinchchars), 2
|
lb bc, BANK(.feetinchchars), 2
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
@ -98,12 +98,12 @@ PrintMagikarpLength: ; fbbdb
|
|||||||
ld de, Buffer1
|
ld de, Buffer1
|
||||||
lb bc, PRINTNUM_RIGHTALIGN | 1, 2
|
lb bc, PRINTNUM_RIGHTALIGN | 1, 2
|
||||||
call PrintNum
|
call PrintNum
|
||||||
ld [hl], "<FOOT>"
|
ld [hl], "′"
|
||||||
inc hl
|
inc hl
|
||||||
ld de, Buffer2
|
ld de, Buffer2
|
||||||
lb bc, PRINTNUM_RIGHTALIGN | 1, 2
|
lb bc, PRINTNUM_RIGHTALIGN | 1, 2
|
||||||
call PrintNum
|
call PrintNum
|
||||||
ld [hl], "<INCH>"
|
ld [hl], "″"
|
||||||
inc hl
|
inc hl
|
||||||
ld [hl], "@"
|
ld [hl], "@"
|
||||||
ret
|
ret
|
||||||
@ -128,8 +128,8 @@ CalcMagikarpLength: ; fbbfc
|
|||||||
; bc = rrc(dv[0]) ++ rrc(dv[1]) ^ rrc(id)
|
; bc = rrc(dv[0]) ++ rrc(dv[1]) ^ rrc(id)
|
||||||
|
|
||||||
; if bc < 10: [MagikarpLength] = c + 190
|
; if bc < 10: [MagikarpLength] = c + 190
|
||||||
; if bc >= $ff00: [MagikarpLength] = c + 1370
|
; if bc ≥ $ff00: [MagikarpLength] = c + 1370
|
||||||
; else: [MagikarpLength] = z * 100 + (bc - x) / y
|
; else: [MagikarpLength] = z × 100 + (bc − x) / y
|
||||||
|
|
||||||
; X, Y, and Z depend on the value of b as follows:
|
; X, Y, and Z depend on the value of b as follows:
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ CalcMagikarpLength: ; fbbfc
|
|||||||
ld a, [hQuotient + 2]
|
ld a, [hQuotient + 2]
|
||||||
ld c, a
|
ld c, a
|
||||||
|
|
||||||
; de = c + 100 * (2 + i)
|
; de = c + 100 × (2 + i)
|
||||||
xor a
|
xor a
|
||||||
ld [hMultiplicand + 0], a
|
ld [hMultiplicand + 0], a
|
||||||
ld [hMultiplicand + 1], a
|
ld [hMultiplicand + 1], a
|
||||||
@ -249,7 +249,7 @@ CalcMagikarpLength: ; fbbfc
|
|||||||
ld e, l
|
ld e, l
|
||||||
|
|
||||||
.done
|
.done
|
||||||
; hl = de * 10
|
; hl = de × 10
|
||||||
ld h, d
|
ld h, d
|
||||||
ld l, e
|
ld l, e
|
||||||
rept 2
|
rept 2
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
charmap "└", $7d
|
charmap "└", $7d
|
||||||
charmap "┘", $7e
|
charmap "┘", $7e
|
||||||
charmap " ", $7f
|
charmap " ", $7f
|
||||||
charmap "<FOOT>", $6e
|
charmap "′", $6e
|
||||||
charmap "<INCH>", $6f
|
charmap "″", $6f
|
||||||
|
|
||||||
|
|
||||||
charmap "A", $80
|
charmap "A", $80
|
||||||
|
Loading…
Reference in New Issue
Block a user