From 99b75352a336d85e3fece8f9531c3eb7c3a7c726 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 15 Sep 2025 05:36:18 +0200 Subject: [PATCH] util: Added strz macro --- src/debug.s | 4 +--- src/macros.inc | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) 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 -- 2.30.2