Merge pull request #2006 from bbbradsmith/ca65_jmp_abs_wrap_error

jmp (abs) wrap warning promoted to an error, suppressed on 65C02/etc
This commit is contained in:
Bob Andrews
2023-09-08 18:26:55 +02:00
committed by GitHub
4 changed files with 32 additions and 7 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