2017-03-13 15:05:21 +00:00
|
|
|
*** Auto generated by docgen.cmd ***
|
2017-03-30 09:03:23 +00:00
|
|
|
|
2019-04-14 15:45:02 +00:00
|
|
|
## Copyright
|
2020-01-15 09:51:24 +00:00
|
|
|
Copyright 2015 - 2020, Remy Gibert and the A2osX contributors.
|
2019-04-14 15:45:02 +00:00
|
|
|
|
2022-09-04 20:12:49 +00:00
|
|
|
# D2TrkFmt16s
|
|
|
|
Write a track (16 sectors)
|
|
|
|
PUSHB DSSS0000
|
|
|
|
PUSHB VolNum
|
|
|
|
PUSHB HeadNum (0,1)
|
|
|
|
PUSHB TrackNum
|
|
|
|
|
|
|
|
## RETURN VALUE
|
|
|
|
CC : success
|
|
|
|
CS : A = Error
|
|
|
|
|
2020-07-20 15:19:32 +00:00
|
|
|
# D2TrkRead16s
|
|
|
|
Write a track (16 sectors)
|
2022-09-04 20:12:49 +00:00
|
|
|
PUSHB DSSS0000
|
|
|
|
PUSHB TrackNum
|
|
|
|
PUSHW Ptr to 16*256 buffer
|
2020-07-20 15:19:32 +00:00
|
|
|
|
|
|
|
## RETURN VALUE
|
|
|
|
CC : success, A = VolNum
|
|
|
|
CS : A = Error
|
|
|
|
|
2020-06-07 08:06:51 +00:00
|
|
|
# D2TrkWrite16s
|
|
|
|
Write a track (16 sectors)
|
2022-09-04 20:12:49 +00:00
|
|
|
PUSHB DSSS0000
|
|
|
|
PUSHB VolNum
|
|
|
|
PUSHB TrackNum
|
2020-06-07 08:06:51 +00:00
|
|
|
PUSHW = Ptr to 16*256 buffer
|
|
|
|
|
|
|
|
## RETURN VALUE
|
|
|
|
CC : success
|
|
|
|
CS : A = Error
|
|
|
|
|
|
|
|
# D2TrkWriteNIB
|
|
|
|
Write a track (NIBBLE)
|
|
|
|
**In:**
|
|
|
|
PUSHB = DSSS0000
|
|
|
|
PUSHW = Ptr to NIBBLE buffer (0 ended)
|
|
|
|
|
|
|
|
## RETURN VALUE
|
|
|
|
CC : success
|
|
|
|
CS : A = Error
|
|
|
|
A=0, currently starting/seeking...
|
|
|
|
|
2018-06-18 08:44:02 +00:00
|
|
|
# GetProDOSCatSize
|
|
|
|
Compute space needed for ProDOS Catalog
|
2018-07-24 06:24:23 +00:00
|
|
|
|
|
|
|
## C
|
2021-05-04 17:31:21 +00:00
|
|
|
int getprodoscatsize (short int options, short int catsize, int devsize );
|
2018-07-24 06:24:23 +00:00
|
|
|
|
|
|
|
## ASM
|
2018-06-18 08:44:02 +00:00
|
|
|
**In:**
|
|
|
|
PUSHW = DevSize (in 512b blocks)
|
|
|
|
PUSHB = Catalog Size (in blocks)
|
|
|
|
PUSHB = Options
|
2018-10-11 15:23:06 +00:00
|
|
|
|
2021-05-04 17:31:21 +00:00
|
|
|
## RETURN VALUE
|
2018-06-18 08:44:02 +00:00
|
|
|
X=BlockCount (max 22)
|
|
|
|
Y,A=BufSize (max $4400)
|
2018-06-18 06:22:50 +00:00
|
|
|
|
2018-06-18 08:44:02 +00:00
|
|
|
# BuildProDOSCat
|
|
|
|
**In:**
|
|
|
|
PUSHW = DevSize (in 512b blocks)
|
|
|
|
PUSHB = Catalog Size (in blocks)
|
|
|
|
PUSHB = Options
|
|
|
|
PUSHW = VolName (PSTR)
|
|
|
|
PUSHW = DstBuf (Zero filled)
|
|
|
|
Blk0 : ProDOS.BootBlk
|
|
|
|
Blk1 : SOS.BootBlk
|
|
|
|
Blk2...n : Volume Directory
|
|
|
|
Blkn+1.. : Volume Bitmap (4096/Blk)
|
|
|
|
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...
|
2018-06-18 06:22:50 +00:00
|
|
|
|
2019-04-14 15:45:02 +00:00
|
|
|
## License
|
2019-12-16 21:36:35 +00:00
|
|
|
A2osX is licensed under the GNU General Public License.
|
2019-04-14 15:45:02 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
The full A2osX license can be found **[Here](../LICENSE)**.
|
|
|
|
|
|
|
|
*** End of Auto generated file ***
|