Commit 375a634f authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Use FileCore terminology for clarity

parent bfddc33b
......@@ -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
......
......@@ -51,7 +51,7 @@ LowLevelEntry ROUT
ASSERT MyMaxSupportedDrive = 0 ; No need to BIC out the drive bits in R2
[ BigDisc2
MOV R2, R2, LSL #MyMySecSizel2b
MOV R2, R2, LSL #MyLog2SectorSize
]
ADDS R6, R2, R4 ; end disc add
SUBNE R6, R6, #1
......@@ -137,7 +137,7 @@ Read
CLRV
95
[ BigDisc2
MOV R2, R2, LSR #MyMySecSizel2b
MOV R2, R2, LSR #MyLog2SectorSize
]
STRVS R0, [SP]
[ Debug3
......@@ -227,7 +227,7 @@ DoMount ROUT
STR R1, BufferSize
[ BigDisc2
MOV R2, R2, LSL #MyMySecSizel2b
MOV R2, R2, LSL #MyLog2SectorSize
]
MOV R1, R3
......
......@@ -19,7 +19,7 @@
; exceeding its max and 'blowing' part of RAMFSFiler
SkeletonDiscRec ; fields marked * need filling in
DCB MyMySecSizel2b ; Log2SectorSize
DCB MyLog2SectorSize ; 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 * MyMySecSizel2b+3 ; min allowed idlen = log2 sectorsize+3
Min_IdLen * MyLog2SectorSize + 3 ; min allowed idlen = log2(bits in a sector)
[ BigMaps
Max_IdLen * 19 ; max allowed idlen
|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment