2017-03-13 15:05:21 +00:00
|
|
|
*** Auto generated by docgen.cmd ***
|
2017-03-30 09:03:23 +00:00
|
|
|
|
|
|
|
# GetProDOSCatSize
|
|
|
|
+ Compute space needed for ProDOS Catalog
|
|
|
|
|
|
|
|
## In :
|
|
|
|
+ PUSHW = DevSize (in 512b blocks)
|
2018-04-19 12:09:49 +00:00
|
|
|
+ PUSHB = Catalog Size (in blocks)
|
|
|
|
+ PUSHB = Options
|
2017-03-30 09:03:23 +00:00
|
|
|
|
|
|
|
## Out :
|
|
|
|
+ X=BlockCount (max 22)
|
2017-03-30 16:11:31 +00:00
|
|
|
+ Y,A=BufSize (max $4400)
|
2017-03-30 09:03:23 +00:00
|
|
|
|
|
|
|
# BuildProDOSCat
|
|
|
|
|
|
|
|
## In :
|
|
|
|
+ PUSHW = DevSize (in 512b blocks)
|
2018-04-19 12:09:49 +00:00
|
|
|
+ PUSHB = Catalog Size (in blocks)
|
|
|
|
+ PUSHB = Options
|
2017-03-30 09:03:23 +00:00
|
|
|
+ PUSHW = VolName (PSTR)
|
|
|
|
+ PUSHW = DstBuf (Zero filled)
|
|
|
|
+ Blk0 : ProDOS.BootBlk
|
|
|
|
+ Blk1 : SOS.BootBlk
|
2018-04-19 12:09:49 +00:00
|
|
|
+ Blk2...n : Volume Directory
|
|
|
|
+ Blkn+1.. : Volume Bitmap (4096/Blk)
|
2017-03-30 09:03:23 +00:00
|
|
|
+ max devSize = 65535 -> max 16 Bitmap Blk
|
|
|
|
+ absolute MAX DstBuf size=
|
|
|
|
+ 7 for Disk II(280blk),3.5(1600),3.5HD(2880)
|
|
|
|
+ 22 for 32mb Hardisk...
|
|
|
|
|
|
|
|
# TrkW16s
|
|
|
|
Write a track (16 sectors)
|
|
|
|
|
|
|
|
## In:
|
|
|
|
+ PUSHW = Ptr to 16*256 buffer
|
|
|
|
+ PUSHB = TrackNum * 4 : 0->140+
|
|
|
|
+ PUSHB = DSSS0000
|
|
|
|
|
|
|
|
## Out:
|
|
|
|
+ CC : success
|
|
|
|
+ CS : A = Error
|
|
|
|
+ A=0, currently starting/seeking...
|
|
|
|
|
|
|
|
# TrkWNIB
|
|
|
|
Write a track (NIBBLE)
|
|
|
|
|
|
|
|
## In:
|
|
|
|
+ PUSHW = Ptr to NIBBLE buffer (0 ended)
|
|
|
|
+ PUSHB = TrackNum * 4 : 0->140+
|
|
|
|
+ PUSHB = DSSS0000
|
|
|
|
|
|
|
|
## Out:
|
|
|
|
+ CC : success
|
|
|
|
+ CS : A = Error
|
|
|
|
+ A=0, currently starting/seeking...
|