From f942c629d70cd3b8c00ea230b71c2b4dfd13cda3 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Thu, 11 Aug 2022 00:04:36 +0200 Subject: [PATCH] simple test related to issue #1655 --- test/asm/val/bug1655.inc | 5 +++++ test/asm/val/bug1655.s | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/asm/val/bug1655.inc create mode 100644 test/asm/val/bug1655.s diff --git a/test/asm/val/bug1655.inc b/test/asm/val/bug1655.inc new file mode 100644 index 000000000..a3c34fff8 --- /dev/null +++ b/test/asm/val/bug1655.inc @@ -0,0 +1,5 @@ + + inx ; x = 2 + cpx #$02 + jne exiterror + diff --git a/test/asm/val/bug1655.s b/test/asm/val/bug1655.s new file mode 100644 index 000000000..383f871e4 --- /dev/null +++ b/test/asm/val/bug1655.s @@ -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