mirror of
https://github.com/cc65/cc65.git
synced 2024-11-04 17:04:58 +00:00
24 lines
486 B
ArmAsm
24 lines
486 B
ArmAsm
.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
|