From 74b1003ab8abad2f8220de4f2f18a3b118f23f01 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 10 Dec 2025 14:41:35 +0100 Subject: Adapt the code to play well with nasm's asan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- include/globals.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/globals.s') 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 -- cgit v1.2.3