fox32rom: Use '%' instead of '\' for format strings
I forgot how printf() worked :p
This commit is contained in:
parent
2bdf6cb583
commit
702cf11558
|
@ -112,7 +112,7 @@ draw_format_str_generic:
|
||||||
draw_format_str_generic_loop:
|
draw_format_str_generic_loop:
|
||||||
cmp.8 [r0], 0
|
cmp.8 [r0], 0
|
||||||
ifz jmp draw_format_str_generic_end
|
ifz jmp draw_format_str_generic_end
|
||||||
cmp.8 [r0], '\'
|
cmp.8 [r0], '%'
|
||||||
ifz jmp draw_format_str_generic_found_format_specifier
|
ifz jmp draw_format_str_generic_found_format_specifier
|
||||||
|
|
||||||
; if this is not a format specifier or the end of the string, print the character
|
; if this is not a format specifier or the end of the string, print the character
|
||||||
|
|
2
main.asm
2
main.asm
|
@ -245,7 +245,7 @@ const OVERLAY_29_POSITION_Y: 0x80137186 ; 2 bytes
|
||||||
const OVERLAY_29_FRAMEBUFFER_PTR: 0x8013718A ; 4 bytes
|
const OVERLAY_29_FRAMEBUFFER_PTR: 0x8013718A ; 4 bytes
|
||||||
const OVERLAY_29_FRAMEBUFFER: 0x8013718E
|
const OVERLAY_29_FRAMEBUFFER: 0x8013718E
|
||||||
|
|
||||||
startup_str: data.str "fox32 - ROM version \u.\u.\u - insert boot disk" data.8 0
|
startup_str: data.str "fox32 - ROM version %u.%u.%u - insert boot disk" data.8 0
|
||||||
|
|
||||||
menu_items_root:
|
menu_items_root:
|
||||||
data.8 1 ; number of menus
|
data.8 1 ; number of menus
|
||||||
|
|
Loading…
Reference in New Issue
Block a user