projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c10f1b5
)
util: Added strz macro
master
origin/HEAD
origin/master
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 15 Sep 2025 03:36:18 +0000
(
05:36
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 15 Sep 2025 03:36:18 +0000
(
05:36
+0200)
src/debug.s
patch
|
blob
|
history
src/macros.inc
patch
|
blob
|
history
diff --git
a/src/debug.s
b/src/debug.s
index 264866431fef07d5b287d237d556551039b31a7a..177e6c2e312a907af66b0e2bf10b75639d153394 100644
(file)
--- 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 78703064b61a0ec8ff297adc2d008edfa3daa5a5..96ae48e84d7430d1885e78d7ee0e8f3f65c5a832 100644
(file)
--- 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