Added kernal replacement routines
git-svn-id: svn://svn.cc65.org/cc65/trunk@1546 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
26
libsrc/pet/checkst.s
Normal file
26
libsrc/pet/checkst.s
Normal file
@@ -0,0 +1,26 @@
|
||||
;
|
||||
; 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user