[Reverse-engineering] [th03] In-game score font

More related to the TH05 Music Room piano label font than to the small
popup numbers --Nmlgc
This commit is contained in:
wintiger0222 2020-01-05 17:55:13 +09:00 committed by nmlgc
parent 2bfd7be787
commit a93175828c
3 changed files with 101 additions and 81 deletions

95
th03/sprites/score.asm Normal file
View File

@ -0,0 +1,95 @@
SCORE_FONT_W = 8
SCORE_FONT_H = 8
public _SCORE_FONT
_SCORE_FONT label byte
; 0
db 111110b
db 1100001b
db 1010001b
db 1001001b
db 1000101b
db 1000011b
db 111110b
db 0b
; 1
db 111110b
db 1000b
db 1000b
db 1000b
db 101000b
db 101000b
db 11000b
db 0b
; 2
db 1111111b
db 1000000b
db 100000b
db 11100b
db 11b
db 1000001b
db 111110b
db 0b
; 3
db 111110b
db 1000001b
db 01
db 11110b
db 01
db 1000001b
db 111110b
db 0b
; 4
db 10b
db 10b
db 1111111b
db 100010b
db 10010b
db 1010b
db 110b
db 0b
; 5
db 11110b
db 1100001b
db 01
db 1100001b
db 1011110b
db 1000000b
db 1111110b
db 0b
; 6
db 111110b
db 1000001b
db 1000001b
db 1111110b
db 1000000b
db 1000001b
db 111110b
db 0b
; 7
db 1000b
db 1000b
db 1000b
db 1000b
db 110b
db 1000001b
db 1111111b
db 0b
; 8
db 111110b
db 1000001b
db 1000001b
db 111110b
db 1000001b
db 1000001b
db 111110b
db 0b
; 9
db 111110b
db 1000001b
db 01
db 111111b
db 1000001b
db 1000001b
db 111110b
db 0b

4
th03/sprites/sprites.h Normal file
View File

@ -0,0 +1,4 @@
// In-game score font. Stored upside down.
#define SCORE_FONT_W 8
#define SCORE_FONT_H 8
extern const planar8_t SCORE_FONT[10][8 / sizeof(planar8_t)];

View File

@ -6610,7 +6610,7 @@ sub_D50E proc near
push si
push di
mov ah, 0
mov si, 858h
mov si, offset _SCORE_FONT
shl ax, 3
add si, ax
mov ax, cx
@ -35989,86 +35989,7 @@ word_1DDAC dw 2AB6h
db 32h ; 2
db 0
db 0
db 3Eh ; >
db 61h ; a
db 51h ; Q
db 49h ; I
db 45h ; E
db 43h ; C
db 3Eh ; >
db 0
db 3Eh ; >
db 8
db 8
db 8
db 28h ; (
db 28h ; (
db 18h
db 0
db 7Fh
db 40h
db 20h
db 1Ch
db 3
db 41h ; A
db 3Eh ; >
db 0
db 3Eh ; >
db 41h ; A
db 1
db 1Eh
db 1
db 41h ; A
db 3Eh ; >
db 0
db 2
db 2
db 7Fh
db 22h ; "
db 12h
db 0Ah
db 6
db 0
db 1Eh
db 61h ; a
db 1
db 61h ; a
db 5Eh ; ^
db 40h
db 7Eh ; ~
db 0
db 3Eh ; >
db 41h ; A
db 41h ; A
db 7Eh ; ~
db 40h
db 41h ; A
db 3Eh ; >
db 0
db 8
db 8
db 8
db 8
db 6
db 41h ; A
db 7Fh
db 0
db 3Eh ; >
db 41h ; A
db 41h ; A
db 3Eh ; >
db 41h ; A
db 41h ; A
db 3Eh ; >
db 0
db 3Eh ; >
db 41h ; A
db 1
db 3Fh ; ?
db 41h ; A
db 41h ; A
db 3Eh ; >
db 0
include th03/sprites/score.asm
db 10h
db 27h ; '
db 0E8h