2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Maciej 'YTM/Alliance' Witkowiak
|
|
|
|
;
|
|
|
|
; 21.12.99
|
|
|
|
|
|
|
|
; void GetPtrCurDkNm (char *curName);
|
|
|
|
; (fills curName[17] with current disk's name)
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.importzp ptr4, ptr3
|
|
|
|
.import __oserror
|
|
|
|
.export _GetPtrCurDkNm
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "jumptab.inc"
|
|
|
|
.include "geossym.inc"
|
2022-04-17 14:06:22 +00:00
|
|
|
|
|
|
|
_GetPtrCurDkNm:
|
2013-05-09 11:56:54 +00:00
|
|
|
sta ptr3
|
|
|
|
stx ptr3+1
|
|
|
|
ldx #ptr4
|
|
|
|
jsr GetPtrCurDkNm
|
|
|
|
ldy #0
|
|
|
|
txa
|
|
|
|
bne fin
|
|
|
|
namelp: lda (ptr4),y
|
2012-02-22 22:59:38 +00:00
|
|
|
.ifdef __GEOS_CBM__
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #$a0
|
2012-02-04 21:53:20 +00:00
|
|
|
.else
|
2013-05-09 11:56:54 +00:00
|
|
|
cmp #0
|
2012-02-04 21:53:20 +00:00
|
|
|
.endif
|
2013-05-09 11:56:54 +00:00
|
|
|
beq fin
|
|
|
|
sta (ptr3),y
|
|
|
|
iny
|
|
|
|
cpy #16
|
|
|
|
bne namelp
|
|
|
|
fin: lda #0
|
|
|
|
sta (ptr3),y
|
|
|
|
stx __oserror
|
|
|
|
rts
|