fox32rom: Add support for %c in format strings
This commit is contained in:
parent
4fc5324f2a
commit
7e239d18e2
|
@ -131,6 +131,10 @@ draw_format_str_generic_found_format_specifier:
|
||||||
cmp.8 [r0], '%'
|
cmp.8 [r0], '%'
|
||||||
ifz call draw_format_str_generic_percent_sign
|
ifz call draw_format_str_generic_percent_sign
|
||||||
|
|
||||||
|
; character
|
||||||
|
cmp.8 [r0], 'c'
|
||||||
|
ifz call draw_format_str_generic_character
|
||||||
|
|
||||||
; unsigned decimal
|
; unsigned decimal
|
||||||
cmp.8 [r0], 'u'
|
cmp.8 [r0], 'u'
|
||||||
ifz call draw_format_str_generic_unsigned_decimal
|
ifz call draw_format_str_generic_unsigned_decimal
|
||||||
|
@ -145,6 +149,15 @@ draw_format_str_generic_percent_sign:
|
||||||
pop r0
|
pop r0
|
||||||
inc r16
|
inc r16
|
||||||
ret
|
ret
|
||||||
|
draw_format_str_generic_character:
|
||||||
|
call draw_format_str_generic_get_parameter
|
||||||
|
push r0
|
||||||
|
mov r0, r17
|
||||||
|
call draw_font_tile_generic
|
||||||
|
add r1, r6
|
||||||
|
pop r0
|
||||||
|
inc r16
|
||||||
|
ret
|
||||||
draw_format_str_generic_unsigned_decimal:
|
draw_format_str_generic_unsigned_decimal:
|
||||||
call draw_format_str_generic_get_parameter
|
call draw_format_str_generic_get_parameter
|
||||||
push r0
|
push r0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user