move records around

This commit is contained in:
Kelvin Sherlock 2015-08-11 20:04:47 -04:00
parent 4a2835ccb0
commit 5641dc5ea0
4 changed files with 207 additions and 193 deletions

View File

@ -8,48 +8,9 @@
include 'M16.Debug'
include 'records.equ'
TimeRec RECORD 0
second DS.B 1
minute DS.B 1
hour DS.B 1
year DS.B 1
day DS.B 1
month DS.B 1
extra DS.B 1
weekDay DS.B 1
ENDR
FileInfoRecGS RECORD 0
pCount DS.W 1
pathname DS.L 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
ENDR
FileRec RECORD 0
pathname DS.B 4
fAccess DS.B 2
fileType DS.B 2
auxType DS.B 4
storageType DS.B 2
createDate DS.B 2
createTime DS.B 2
modDate DS.B 2
modTime DS.B 2
blocksUsed DS.B 4
ENDR
entry path_to_inode
import id_disk

93
records.equ Normal file
View File

@ -0,0 +1,93 @@
TimeRec RECORD 0
second DS.B 1
minute DS.B 1
hour DS.B 1
year DS.B 1
day DS.B 1
month DS.B 1
extra DS.B 1
weekDay DS.B 1
ENDR
FileInfoRecGS RECORD 0
pCount DS.W 1
pathname DS.L 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
ENDR
FileRec RECORD 0
pathname DS.B 4
fAccess DS.B 2
fileType DS.B 2
auxType DS.B 4
storageType DS.B 2
createDate DS.B 2
createTime DS.B 2
modDate DS.B 2
modTime DS.B 2
blocksUsed DS.B 4
ENDR
OpenRecGS RECORD 0
pCount DS.W 1
refNum DS.W 1
pathname DS.L 1
requestAccess DS.W 1
resourceNumber DS.W 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
ENDR
OpenRec RECORD 0
openRefNum DS.B 2
openPathname DS.B 4
ioBuffer DS.B 4
ENDR
VolumeRecGS RECORD 0
pCount DS.W 1
devName DS.L 1
volName DS.L 1
totalBlocks DS.L 1
freeBlocks DS.L 1
fileSysID DS.W 1
blockSize DS.W 1
characteristics ds.w 1
deviceID ds.w 1
sizeof equ *
ENDR
VolumeRec RECORD 0
deviceName DS.B 4
volName DS.B 4
totalBlocks DS.B 4
freeBlocks DS.B 4
fileSysID DS.B 2
sizeof equ *
ENDR

View File

@ -6,57 +6,17 @@
include 'M16.Debug'
include 'records.equ'
;
; VolumeGS / Volume call.
;
; check if the disk is ours. create a VCR or mark it active.
;
; P16
; devName
; volName
; totalBlocks
; freeBlocks
; fileSysID
;
; GS/OS
; Word pCount;
; GSString32Ptr devName;
; ResultBuf255Ptr volName;
; LongWord totalBlocks;
; LongWord freeBlocks;
; Word fileSysID;
; Word blockSize;
; [handled by gs/os:]
; Word characteristics;
; Word deviceID;
;
import id_disk
VolumeRecGS RECORD 0
pCount DS.W 1
devName DS.L 1 ; GSString32Ptr
volName DS.L 1 ; ResultBuf255Ptr
totalBlocks DS.L 1
freeBlocks DS.L 1
fileSysID DS.W 1
blockSize DS.W 1
characteristics ds.w 1
deviceID ds.w 1
sizeof equ *
ENDR
VolumeRec RECORD 0 ; ProDOS
deviceName DS.B 4 ; Ptr -
volName DS.B 4 ; Ptr -
totalBlocks DS.B 4 ; Long -
freeBlocks DS.B 4 ; Long -
fileSysID DS.B 2 ; Word -
sizeof equ *
ENDR
entry do_block_size
entry do_file_sys_id