-
Notifications
You must be signed in to change notification settings - Fork 1
/
RAMDISK.TXT
118 lines (97 loc) · 1.87 KB
/
RAMDISK.TXT
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
NAM RAMDISK
ORG $D800
INIT JSR $A928
JSR PRINT
FCC /RAMDISK FOR 1.0 DISK ROM/,13
FCC /(C) 1987 BY ERIK GAVRILUK/,13
FCC /TYPE 'EXEC' TO INITIALIZE THEM/,13,13,0
LDA #$7E
STA $D66C
LDX #GO
STX $D66D
LDX #BLAH
STX 157
RTS
BLAH LDA #1
STA <$EB
LDA #3
STA <$EA
LDX #$600
STX <$EE
LDD #$FFFF
A@ STD ,X++
CMPX #$700
BLO A@
BSR BLK17
CLR <$EB
RTS
BLK17 LDD #17*256+1
STD <$EC
A@ JSR [$C004]
INC <$ED
LDA <$ED
CMPA #19
BNE A@
RTS
PRINT PULS X
A@ LDA ,X+
BEQ B@
JSR [$A002]
BRA A@
B@ TFR X,PC
GO PSHS A
LDA <$EB
CMPA #1
BEQ GO2
Z@ PULS A
FCB $34,$76,$86,$05
JMP $D670
GO2 PULS A
PSHS D,X,Y,U
ORCC #$50
LDY $FFA4
* CALCULATE BLOCK
CLRA
LDX #0
LDB <$EC
BEQ C@
A@ LEAX 18*256,X
CMPX #8192
BLO B@
LEAX -8192,X
INCA
B@ DECB
BNE A@
C@ STA $FFA4
INCA
STA $FFA5
LDA <$ED
DECA
CLRB
LEAX D,X
LEAX $8000,X
LDU <$EE
*X=POINTER TO THAT SECTOR
*U=DSKCON POINTER
LDA <$EA
CMPA #2
BEQ A@
EXG X,U
A@
LDA #32
PSHS A
A@ LDD ,X++
STD ,U++
LDD ,X++
STD ,U++
LDD ,X++
STD ,U++
LDD ,X++
STD ,U++
DEC ,S
BNE A@
LEAS 1,S
STY $FFA4
DONE ANDCC #$AF
PULS D,X,Y,U,PC
END $D800