mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
35 lines
478 B
ArmAsm
35 lines
478 B
ArmAsm
|
|
||
|
;
|
||
|
; Maciej 'YTM/Alliance' Witkowiak
|
||
|
;
|
||
|
; 21.12.99
|
||
|
|
||
|
; void GetPtrCurDkNm (char *curName);
|
||
|
; (fills curName[17] with current disk's name)
|
||
|
|
||
|
.importzp ptr4, ptr3
|
||
|
.export _GetPtrCurDkNm
|
||
|
|
||
|
.include "../inc/jumptab.inc"
|
||
|
.include "../inc/geossym.inc"
|
||
|
|
||
|
_GetPtrCurDkNm:
|
||
|
sta ptr3
|
||
|
stx ptr3+1
|
||
|
ldx #ptr4
|
||
|
jsr GetPtrCurDkNm
|
||
|
ldy #0
|
||
|
txa
|
||
|
bne fin
|
||
|
namelp: lda (ptr4),y
|
||
|
cmp #$a0
|
||
|
beq fin
|
||
|
sta (ptr3),y
|
||
|
iny
|
||
|
cpy #16
|
||
|
bne namelp
|
||
|
fin: lda #0
|
||
|
sta (ptr3),y
|
||
|
stx errno
|
||
|
rts
|