-
Notifications
You must be signed in to change notification settings - Fork 82
/
hdnewdir
51 lines (51 loc) · 1 KB
/
hdnewdir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;*************************************
;
; SET UP FOR NEW DIRECTORY LISTING
;
;*************************************
NEWDIR
JSR BLKNB ;BLANK NAME BUFR
LDA #$FF
STA TEMP
LDX DRVNUM
STX NBTEMP ;DISPLAY DRIVE #
LDA #0 ;*
STA NBTEMP+1 ;*
JSR HDISU ;SET UP IND WORD
JSR HDWBM ;WRITE OUT OLD BAM
JSR HDORV ;READ IN VOL LBL
LDY #HDDVID ;DOS VERSION #
LDA (HDBMP),Y
STA NAMBUF+24
LDA #$20 ;SPACE
STA NAMBUF+20
STA NAMBUF+23
LDY #HDUVID ;USER VOL ID
LDA (HDBMP),Y ;*
STA NAMBUF+21
INY
LDA (HDBMP),Y ;GET 2ND CHAR ID
STA NAMBUF+22
LDA #'" ;DOUBLE QUOTES
STA NAMBUF+19
STA NAMBUF+1
LDX #15 ;GET RDY TO MOVE VOL NAME
LDY #HDUNAM+15 ;RIGHT TO LEFT
NED1
LDA (HDBMP),Y ;GET FROM NAME
AND #$7F ;NO BIT 8
STA NAMBUF+2,X ;STORE
DEX
DEY
CPY #HDUNAM-1 ;DONE?
BNE NED1 ;BR IF NOT
LDA #$12 ;REVERSE VIDEO
STA NAMBUF
LDY #HDZONE ;FORCE NEW BAM READ
LDA #$7F ;*
STA (HDBMP),Y ;*
RTS
;
;
;
.END