aboutsummaryrefslogtreecommitdiff
path: root/tests/unused_macro_arg.s
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unused_macro_arg.s')
-rw-r--r--tests/unused_macro_arg.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/unused_macro_arg.s b/tests/unused_macro_arg.s
new file mode 100644
index 0000000..fe4d7f0
--- /dev/null
+++ b/tests/unused_macro_arg.s
@@ -0,0 +1,27 @@
+.segment "HEADER"
+ .byte 'N', 'E', 'S', $1A
+ .byte $02, $01
+ .byte $00
+ .byte $00
+
+.segment "CODE"
+
+;;; asan:stack full
+
+.macro BCD_ADD ADDR
+ adc ADDR
+ bcc :+
+ nop
+:
+.endmacro
+
+.proc add_to_player_y
+ BCD_ADD additions
+
+ rts
+
+additions:
+ .byte $FF
+.endproc
+
+jsr add_to_player_y