aboutsummaryrefslogtreecommitdiff
path: root/include/globals.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2025-12-10 14:41:35 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2025-12-15 15:31:06 +0100
commit74b1003ab8abad2f8220de4f2f18a3b118f23f01 (patch)
treeb7f2d491d708fa900d4dd9649eb5bd7fab3e8686 /include/globals.s
parente6d9bd9f7acfd0e40025b2d579a7faff0d04ef0a (diff)
downloadjetpac.nes-74b1003ab8abad2f8220de4f2f18a3b118f23f01.tar.gz
jetpac.nes-74b1003ab8abad2f8220de4f2f18a3b118f23f01.zip
Adapt the code to play well with nasm's asan
The address sanitizer from nasm provides quite a few goodies, so let's adapt the code more to it to benefit from those. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'include/globals.s')
-rw-r--r--include/globals.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/globals.s b/include/globals.s
index 842de34..f9777e5 100644
--- a/include/globals.s
+++ b/include/globals.s
@@ -6,17 +6,17 @@
;; Argument values reserved passing arguments to functions in memory.
zp_arg0 = $00
zp_arg1 = $01
- zp_arg2 = $02
- zp_arg3 = $03
- zp_arg4 = $04
+ ;; zp_arg2 = $02
+ ;; zp_arg3 = $03
+ ;; zp_arg4 = $04
;;;
;; Random values that can be used inside of functions for temporary values
;; so `zp_argX` variables are not overwritten as often.
zp_tmp0 = $05
zp_tmp1 = $06
- zp_tmp2 = $07
- zp_tmp3 = $08
+ ;; zp_tmp2 = $07
+ ;; zp_tmp3 = $08
;;;
;; Reserve a byte of memory for preserving indices on memory. This is needed