2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 03.06.1999
|
|
|
|
;
|
2001-03-20 21:06:04 +00:00
|
|
|
; unsigned char __fastcall__ cbm_k_load (unsigned char flag, unsigned addr);
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
.include "cbm.inc"
|
|
|
|
|
2001-03-13 22:48:19 +00:00
|
|
|
.export _cbm_k_load
|
2000-05-28 13:40:48 +00:00
|
|
|
.import popa
|
|
|
|
.importzp ptr1
|
|
|
|
|
2001-03-13 22:48:19 +00:00
|
|
|
_cbm_k_load:
|
2000-05-28 13:40:48 +00:00
|
|
|
sta ptr1
|
2001-03-13 22:48:19 +00:00
|
|
|
stx ptr1+1
|
2000-05-28 13:40:48 +00:00
|
|
|
jsr popa ; get flag
|
|
|
|
ldx ptr1
|
|
|
|
ldy ptr1+1
|
|
|
|
jsr LOAD
|
2001-03-20 21:06:04 +00:00
|
|
|
bcs @NotOk
|
|
|
|
lda #0
|
|
|
|
@NotOk: rts
|
|
|
|
|