2002-11-20 01:31:56 +00:00
|
|
|
;
|
|
|
|
; 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
|
2012-09-30 18:20:15 +00:00
|
|
|
.importzp ST
|
2002-11-20 01:31:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
.proc checkst
|
|
|
|
|
|
|
|
lda ST
|
|
|
|
beq @L1
|
|
|
|
lda #5 ; ### Device not present
|
|
|
|
sec
|
|
|
|
rts
|
|
|
|
|
|
|
|
@L1: clc
|
|
|
|
rts
|
|
|
|
|
|
|
|
.endproc
|