2001-03-13 22:48:19 +00:00
|
|
|
;
|
|
|
|
; Marc 'BlackJack' Rintsch, 11.06.1999
|
|
|
|
;
|
2001-03-20 21:06:04 +00:00
|
|
|
; unsigned char __fastcall__ cbm_k_save(unsigned int start, unsigned int end);
|
2001-03-13 22:48:19 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
.export _cbm_k_save
|
2002-11-19 23:02:47 +00:00
|
|
|
.import SAVE
|
2001-03-13 22:48:19 +00:00
|
|
|
.import popax
|
|
|
|
.importzp ptr1, tmp1
|
2009-08-23 21:38:11 +00:00
|
|
|
|
2001-03-13 22:48:19 +00:00
|
|
|
|
|
|
|
_cbm_k_save:
|
|
|
|
sta tmp1 ; store end address
|
|
|
|
stx tmp1+1
|
|
|
|
jsr popax ; pop start address
|
|
|
|
sta ptr1
|
|
|
|
stx ptr1+1
|
|
|
|
lda #ptr1
|
|
|
|
ldx tmp1
|
|
|
|
ldy tmp1+1
|
|
|
|
jsr SAVE
|
2009-08-23 21:38:11 +00:00
|
|
|
ldx #0 ; Clear high byte
|
2001-03-20 21:06:04 +00:00
|
|
|
bcs @NotOk
|
2009-08-23 21:38:11 +00:00
|
|
|
txa
|
2001-03-20 21:06:04 +00:00
|
|
|
@NotOk: rts
|