2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 03.06.1999
|
|
|
|
;
|
2001-03-13 22:48:19 +00:00
|
|
|
; void __fastcall__ cbm_k_setnam (const char* Name);
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _cbm_k_setnam
|
2002-11-19 23:02:47 +00:00
|
|
|
.import SETNAM
|
2013-05-09 11:56:54 +00:00
|
|
|
.importzp ptr1
|
2002-11-19 23:02:47 +00:00
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2001-03-13 22:48:19 +00:00
|
|
|
_cbm_k_setnam:
|
2013-05-09 11:56:54 +00:00
|
|
|
sta ptr1 ; Store pointer to file name
|
|
|
|
stx ptr1+1
|
|
|
|
ldy #$FF
|
|
|
|
@Loop: iny ; Get length of name
|
|
|
|
lda (ptr1),y
|
|
|
|
bne @Loop
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
tya ; Length
|
|
|
|
ldx ptr1
|
|
|
|
ldy ptr1+1
|
|
|
|
jmp SETNAM
|
2000-05-28 13:40:48 +00:00
|
|
|
|