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
|
|
|
;
|
|
|
|
|
2018-07-03 19:47:42 +00:00
|
|
|
.include "cbm.inc"
|
2018-07-04 14:40:28 +00:00
|
|
|
|
2001-03-13 22:48:19 +00:00
|
|
|
.export _cbm_k_save
|
2018-05-20 13:30:18 +00:00
|
|
|
.import popptr1
|
2001-03-13 22:48:19 +00:00
|
|
|
.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
|
2018-05-20 13:30:18 +00:00
|
|
|
jsr popptr1 ; pop start address
|
2001-03-13 22:48:19 +00:00
|
|
|
lda #ptr1
|
|
|
|
ldx tmp1
|
|
|
|
ldy tmp1+1
|
|
|
|
jsr SAVE
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx #0 ; Clear high byte
|
|
|
|
bcs @NotOk
|
2009-08-23 21:38:11 +00:00
|
|
|
txa
|
2013-05-09 11:56:54 +00:00
|
|
|
@NotOk: rts
|