aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-05-11 16:18:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-05-11 16:18:10 -0700
commit837edd686efd1bb3454bd6597509f93ba0a05f30 (patch)
tree777f1a36de2493667b64fca690f6dde0aeafef2a
parent7f138920360f9444625a7b110fb033f725929c3c (diff)
downloadabc80-837edd686efd1bb3454bd6597509f93ba0a05f30.tar.gz
abc80-837edd686efd1bb3454bd6597509f93ba0a05f30.tar.xz
abc80-837edd686efd1bb3454bd6597509f93ba0a05f30.zip
CP/M: Change to 1024 directory entries
Match the following cpmtools diskdefs entry: diskdef abc80-de1 seclen 128 tracks 1904 sectrk 64 blocksize 8192 maxdir 1024 skew 1 boottrk 1 os 2.2 end Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--data/cbios.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/data/cbios.asm b/data/cbios.asm
index e001596..3d30a63 100644
--- a/data/cbios.asm
+++ b/data/cbios.asm
@@ -102,11 +102,11 @@ ndisks: equ 4 ; number of disks we defined
; We use 8K blocks, matching ABC clusters, so there are 1903 user blocks.
dpblk:
dw 64 ; SPT: number of 128 byte sectors per track
- db 5 ; BSH: block shift factor (see manual for table)
- db 31 ; BLM: block mask (see manual for table)
- db 1 ; EXM: extent mask (see manual for table, using entries marked N/A turns out to be a bad idea!)
+ db 6 ; BSH: block shift factor (see manual for table)
+ db 63 ; BLM: block mask (see manual for table)
+ db 3 ; EXM: extent mask (see manual for table, using entries marked N/A turns out to be a bad idea!)
dw 1903 ; DSM: (disk bytes / block bytes) - 1, change alv0x etc if you change this; this is the number of the last sector on the disk, excluding system tracks (ie more system tracks -> this gets smaller)
- dw 511 ; DRM: directory max entries - 1
+ dw 1023 ; DRM: directory max entries - 1
db 0xf0 ; AL0: directory sector allocation bitmask byte 0
db 0x00 ; AL1: directory sector allocation bitmask byte 1
dw 0 ; CKS: check size (change chk0x etc if you change this)
@@ -564,10 +564,10 @@ conflag: db 0
; scratch RAM used by BDOS
dirbf: ds 128 ; directory scratch area
-alv00: ds 238 ; allocation vector for disk 0, must be (DSM/8)+1 bytes
-alv01: ds 238 ; allocation vector for disk 1, must be (DSM/8)+1 bytes
-alv02: ds 238 ; allocation vector for disk 2, must be (DSM/8)+1 bytes
-alv03: ds 238 ; allocation vector for disk 3, must be (DSM/8)+1 bytes
+alv00: ds 239 ; allocation vector for disk 0, must be (DSM/8)+1 byte
+alv01: ds 239 ; allocation vector for disk 1, must be (DSM/8)+1 bytes
+alv02: ds 239 ; allocation vector for disk 2, must be (DSM/8)+1 bytes
+alv03: ds 239 ; allocation vector for disk 3, must be (DSM/8)+1 bytes
chk00: ds 0 ; check vector for disk 0 (must be CKS bytes long)
chk01: ds 0 ; check vector for disk 1 (must be CKS bytes long)
chk02: ds 0 ; check vector for disk 2 (must be CKS bytes long)