; unsigned char __fastcall__ cbm_k_basin (void);
;
- .export _cbm_k_basin
- .import BASIN
+ .export _cbm_k_basin
+ .import BASIN
-_cbm_k_basin = BASIN
+
+_cbm_k_basin:
+ jsr BASIN
+ ldx #0 ; Clear high byte
+ rts
_cbm_k_open:
jsr OPEN
+ ldx #0 ; Clear high byte
bcs @NotOk
- lda #0
-@NotOk: ldx #0 ; Clear high byte
- rts
+ txa
+@NotOk: rts
; unsigned char __fastcall__ cbm_k_readst (void);
;
- .export _cbm_k_readst
- .import READST
+ .export _cbm_k_readst
+ .import READST
-_cbm_k_readst = READST
+_cbm_k_readst:
+ jsr READST
+ ldx #0 ; Clear high byte
+ rts