From 702cf115585b04a37a73ab7201329c793f1fbde1 Mon Sep 17 00:00:00 2001 From: ry755 Date: Tue, 22 Feb 2022 13:52:29 -0800 Subject: [PATCH] fox32rom: Use '%' instead of '\' for format strings I forgot how printf() worked :p --- draw_text.asm | 2 +- main.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/draw_text.asm b/draw_text.asm index ca052cc..3f620a8 100644 --- a/draw_text.asm +++ b/draw_text.asm @@ -112,7 +112,7 @@ draw_format_str_generic: draw_format_str_generic_loop: cmp.8 [r0], 0 ifz jmp draw_format_str_generic_end - cmp.8 [r0], '\' + cmp.8 [r0], '%' 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 diff --git a/main.asm b/main.asm index 017db8b..ff46e58 100644 --- a/main.asm +++ b/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: 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: data.8 1 ; number of menus