util: Added strz macro master origin/HEAD origin/master
authorLukas Krickl <lukas@krickl.dev>
Mon, 15 Sep 2025 03:36:18 +0000 (05:36 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 15 Sep 2025 03:36:18 +0000 (05:36 +0200)
src/debug.s
src/macros.inc

index 264866431fef07d5b287d237d556551039b31a7a..177e6c2e312a907af66b0e2bf10b75639d153394 100644 (file)
@@ -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"
index 78703064b61a0ec8ff297adc2d008edfa3daa5a5..96ae48e84d7430d1885e78d7ee0e8f3f65c5a832 100644 (file)
        .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