mirror of
https://github.com/cc65/cc65.git
synced 2024-08-29 09:29:19 +00:00
27 lines
399 B
ArmAsm
27 lines
399 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 19.11.2002
|
||
|
;
|
||
|
; The kernal open routines do not return a carry on error, so check the IEEE
|
||
|
; status, set carry flag and return
|
||
|
;
|
||
|
|
||
|
.export checkst
|
||
|
|
||
|
.include "pet.inc"
|
||
|
|
||
|
|
||
|
.proc checkst
|
||
|
|
||
|
lda ST
|
||
|
beq @L1
|
||
|
lda #5 ; ### Device not present
|
||
|
sec
|
||
|
rts
|
||
|
|
||
|
@L1: clc
|
||
|
rts
|
||
|
|
||
|
.endproc
|
||
|
|
||
|
|