aboutsummaryrefslogtreecommitdiff
path: root/tests/asan_reserve_constant.s
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asan_reserve_constant.s')
-rw-r--r--tests/asan_reserve_constant.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/asan_reserve_constant.s b/tests/asan_reserve_constant.s
new file mode 100644
index 0000000..8af9cad
--- /dev/null
+++ b/tests/asan_reserve_constant.s
@@ -0,0 +1,20 @@
+.segment "HEADER"
+ .byte 'N', 'E', 'S', $1A
+ .byte $02
+ .byte $01
+ .byte $00
+ .byte $00
+
+.segment "CODE"
+
+CONST = $02
+
+zp_var = $00 ; asan:reserve CONST
+zp_another = $01
+zp_yet_another = $02
+zp_and_yet = $03
+
+lda zp_var
+lda zp_another
+lda zp_yet_another
+lda zp_and_yet