aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2025-10-13 22:38:15 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2025-10-13 22:38:15 +0200
commitb158b113f5b780cbe8d8f974345bf4462e318c69 (patch)
tree94cbe27214ab06e423f2d891e55444dddba3872a
parente1de44339093a3d47b0257aded13de405a3e861c (diff)
downloadaoc2023.nes-b158b113f5b780cbe8d8f974345bf4462e318c69.tar.gz
aoc2023.nes-b158b113f5b780cbe8d8f974345bf4462e318c69.zip
Apply suggestions as found by nasm
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
-rw-r--r--include/globals.s10
-rw-r--r--src/1.s2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/globals.s b/include/globals.s
index 41d3e6c..ca56ff4 100644
--- a/include/globals.s
+++ b/include/globals.s
@@ -2,11 +2,11 @@
;;;
;; Temporary values.
- m_tmp_1 = $00
- m_tmp_2 = $01
- m_tmp_3 = $02
- m_tmp_4 = $03
- m_tmp_5 = $04
+ m_tmp_1 = $90
+ m_tmp_2 = $91
+ m_tmp_3 = $92
+ m_tmp_4 = $93
+ m_tmp_5 = $94
;; Bit map to be used as flags during execution.
m_flags = $20
diff --git a/src/1.s b/src/1.s
index 28cd933..2441079 100644
--- a/src/1.s
+++ b/src/1.s
@@ -58,7 +58,7 @@
;; $08-$09 is a 16-bit number that accumulates the value being computed by
;; this program.
- m_sum = $08
+ m_sum = $08 ; asan:reserve $02
;; Zeroes out all variables and sets the base address for the data on
;; `m_address`.