2000-10-31 18:42:47 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 05.08.1998
|
|
|
|
;
|
|
|
|
; CC65 runtime: Increment ax by 1
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export incax1
|
2000-10-31 18:42:47 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.macpack generic
|
2003-10-10 17:52:12 +00:00
|
|
|
.macpack cpu
|
2000-10-31 18:42:47 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc incax1
|
2000-10-31 18:42:47 +00:00
|
|
|
|
2003-10-10 17:52:12 +00:00
|
|
|
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
2013-05-09 11:56:54 +00:00
|
|
|
ina ; 65C02 version
|
|
|
|
bne @L9
|
2000-11-27 22:59:03 +00:00
|
|
|
.else
|
2013-05-09 11:56:54 +00:00
|
|
|
add #1
|
|
|
|
bcc @L9
|
2000-11-27 22:59:03 +00:00
|
|
|
.endif
|
2013-05-09 11:56:54 +00:00
|
|
|
inx
|
|
|
|
@L9: rts
|
2000-10-31 18:42:47 +00:00
|
|
|
|
|
|
|
.endproc
|