simple test related to issue #1655
This commit is contained in:
5
test/asm/val/bug1655.inc
Normal file
5
test/asm/val/bug1655.inc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
inx ; x = 2
|
||||||
|
cpx #$02
|
||||||
|
jne exiterror
|
||||||
|
|
||||||
23
test/asm/val/bug1655.s
Normal file
23
test/asm/val/bug1655.s
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
.macpack longbranch
|
||||||
|
|
||||||
|
.import _exit
|
||||||
|
.export _main
|
||||||
|
|
||||||
|
.macpack cpu
|
||||||
|
.macro pfinc what
|
||||||
|
.out .sprintf("Including bug%s.inc", what)
|
||||||
|
.include .sprintf("bug%s.inc", what)
|
||||||
|
.endmacro
|
||||||
|
|
||||||
|
_main:
|
||||||
|
ldx #1 ; test counter
|
||||||
|
|
||||||
|
pfinc "1655"
|
||||||
|
|
||||||
|
;---------------------------------------------------------------------
|
||||||
|
; exit OK
|
||||||
|
ldx #0
|
||||||
|
exiterror:
|
||||||
|
txa
|
||||||
|
ldx #0
|
||||||
|
jmp _exit
|
||||||
Reference in New Issue
Block a user