From: Lukas Krickl Date: Mon, 15 Sep 2025 03:36:18 +0000 (+0200) Subject: util: Added strz macro X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=refs%2Fremotes%2Forigin%2Fmaster;p=gbrg%2F.git util: Added strz macro --- diff --git a/src/debug.s b/src/debug.s index 2648664..177e6c2 100644 --- a/src/debug.s +++ b/src/debug.s @@ -1,8 +1,6 @@ ; this is a helper file for a debug menu -str_dbg_new_game: -.str "RELOAD" -.db 0 +strz str_dbg_new_game, "RELOAD" str_dbg_clear_actors: .str "CLEAR ACTORS" diff --git a/src/macros.inc b/src/macros.inc index 7870306..96ae48e 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -299,4 +299,14 @@ .db $3 .db $4 #endmacro + + ; defines a 0-terminated stirng + ; inpputs: + ; $1: label name + ; $2: string value +#macro strz +$1: +.str $2 +.db 0 +#endmacro