tests verifying jmp (indirect) page crossing error on 6502, and the lack of error for other CPU types

This commit is contained in:
bbbradsmith 2023-08-19 14:36:30 -04:00
parent d09e0a7f20
commit 07f08fc547
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
; test that jmp (indirect) on a page boundary will give an error for 6502 CPU
.p02
jmp ($10FF)

View File

@ -0,0 +1,18 @@
; test that jmp (indirect) on a page boundary will not give an error for non-6502 CPUs
.pc02
jmp ($10FF)
.psc02
jmp ($10FF)
.p816
jmp ($10FF)
; main always returns success (the tested issue is only whether the assembly errors)
.import _exit
.export _main
_main:
lda #0
tax
jmp _exit