mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
tests verifying jmp (indirect) page crossing error on 6502, and the lack of error for other CPU types
This commit is contained in:
parent
d09e0a7f20
commit
07f08fc547
4
test/asm/err/jmp-indirect-6502-error.s
Normal file
4
test/asm/err/jmp-indirect-6502-error.s
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
; test that jmp (indirect) on a page boundary will give an error for 6502 CPU
|
||||||
|
|
||||||
|
.p02
|
||||||
|
jmp ($10FF)
|
18
test/asm/val/jmp-indirect-success.s
Normal file
18
test/asm/val/jmp-indirect-success.s
Normal 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
|
Loading…
Reference in New Issue
Block a user