aboutsummaryrefslogtreecommitdiff
path: root/tests/runrom
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-09-07 23:19:53 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-09-07 23:19:53 +0200
commite2a20dedc354c0b8d2e5253ffd4ac22d2b2898aa (patch)
tree4bfd91230b7834feb97d8a0cbb7b73ed10e5de29 /tests/runrom
parenta17bd972a99007099057d7901b88732b22d08270 (diff)
downloadtools.nes-e2a20dedc354c0b8d2e5253ffd4ac22d2b2898aa.tar.gz
tools.nes-e2a20dedc354c0b8d2e5253ffd4ac22d2b2898aa.zip
vnf: display also the break mark on report()
When reporting the final instruction, if that was actually a brk (and hence we stopped because of it), show the breaking mark as that could be relevant when debugging. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'tests/runrom')
-rw-r--r--tests/runrom/halt.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/runrom/halt.s b/tests/runrom/halt.s
new file mode 100644
index 0000000..06d0bef
--- /dev/null
+++ b/tests/runrom/halt.s
@@ -0,0 +1,20 @@
+.segment "HEADER"
+ .byte 'N', 'E', 'S', $1A
+ .byte $02, $01
+ .byte $00
+ .byte $00
+
+.segment "CHARS"
+.byte 0
+
+.segment "VECTORS"
+ .addr reset, reset, reset
+
+.segment "CODE"
+;; asan:stack full
+
+.proc reset
+ brk
+ .byte $42
+ rts
+.endproc