Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
F
FileSys
RAMFS
RAMFS
Commits
375a634f
Commit
375a634f
authored
Aug 31, 2015
by
Robert Sprowson
Browse files
Use FileCore terminology for clarity
parent
bfddc33b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
s/Defns
s/Defns
+1
-2
s/RamFS15
s/RamFS15
+3
-3
s/RamFS50
s/RamFS50
+3
-3
No files found.
s/Defns
View file @
375a634f
...
...
@@ -115,8 +115,7 @@ Zone0Bits * Zone0DiscRecSz * 8
MyMaxSupportedDiscOp
*
DiscOp_ReadTrk
MyMaxSupportedDrive
*
0
MyMinSupportedDriveSize
*
8
*
1024
MyMySecSizel2b
*
10
; 9 = 512, 10 = 1024
MyLog2SectorSize
*
10
; 9 = 512, 10 = 1024
; n.b. 512 byte sector has max disc size approx 256MB. 1024 max is 512MB
ChangeDyn_RamFS
*
5
; Our DA number
...
...
s/RamFS15
View file @
375a634f
...
...
@@ -51,7 +51,7 @@ LowLevelEntry ROUT
ASSERT
MyMaxSupportedDrive
=
0
; No need to BIC out the drive bits in R2
[
BigDisc2
MOV
R2
,
R2
,
LSL
#
My
MySec
Size
l2b
MOV
R2
,
R2
,
LSL
#
My
Log2Sector
Size
]
ADDS
R6
,
R2
,
R4
; end disc add
SUBNE
R6
,
R6
,
#
1
...
...
@@ -137,7 +137,7 @@ Read
CLRV
95
[
BigDisc2
MOV
R2
,
R2
,
LSR
#
My
MySec
Size
l2b
MOV
R2
,
R2
,
LSR
#
My
Log2Sector
Size
]
STRVS
R0
,
[
SP
]
[
Debug3
...
...
@@ -227,7 +227,7 @@ DoMount ROUT
STR
R1
,
BufferSize
[
BigDisc2
MOV
R2
,
R2
,
LSL
#
My
MySec
Size
l2b
MOV
R2
,
R2
,
LSL
#
My
Log2Sector
Size
]
MOV
R1
,
R3
...
...
s/RamFS50
View file @
375a634f
...
...
@@ -19,7 +19,7 @@
; exceeding its max and 'blowing' part of RAMFSFiler
SkeletonDiscRec
; fields marked * need filling in
DCB
My
MySec
Size
l2b
; Log2SectorSize
DCB
My
Log2Sector
Size
; Log2SectorSize
DCB
128
; SecPerTrk (this is a RAM disc)
DCB
1
; Heads
DCB
DensitySingle
; Density
...
...
@@ -123,7 +123,7 @@ InitRAMDisc ROUT
MOV
r4
,
#
0
STMIA
r2
,
{
r0
,
r3
,
r4
}
; byte address 0 on drive 0
MOV
r3
,
#
0
MOV
r4
,
#
(
1
<<
MyMySecSizel2b
)
MOV
r4
,
#
1
:SHL:
MyLog2SectorSize
LDR
r8
,
FileCorePrivate
SWI
XFileCore_DiscOp64
ADD
sp
,
sp
,
#
SzExtendedDiscAddress
...
...
@@ -200,7 +200,7 @@ InitDiscRec ROUT
; r6 = number of bits in a zone
; r7 = number of allocation bits in the map
; r8 = ids per zone
Min_IdLen
*
My
MySecSizel2b
+
3
; min allowed idlen = log2 sector
size+3
Min_IdLen
*
My
Log2SectorSize
+
3
; min allowed idlen = log2
(bits in a
sector
)
[
BigMaps
Max_IdLen
*
19
; max allowed idlen
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment