Help needed

From: Ruud Baltissen (Ruud.Baltissen_at_abp.nl)
Date: 2001-09-03 09:36:55

Hallo allemaal,

I'm busy in developing a new Kernal for the 1541/IDE combination. And as I
already thought, that's no peanuts. So now and then I could use some help.
I am more a techie and the kind of help I need now is more mathematical
orientated ie. number crunching.

1) What I need is a conversion from "Track/Head/Sector" to a lineair number.
And vica versa of course.

Information you need:
HDTRACKL = Low byte number of tracks on harddisk
HDTRACKH = High byte number of tracks on harddisk
HDHEADS  = number of heads
HDSECT   = number of sectors on a track.

Counting starts with track 0, head 0, sector 1. The next track to be read is
track 0, head 1.

2) This lineair number is needed to calculate the place of the bit
representing the bit in the BAM-table.

Information you need:
BAMBYTES = needed bytes to represent the # of free sectors and the state
           of each sector. The bytes form together a "unit".
BAMUNITS = number of units in a BAM-sector, only whole units are used

The structure of a UNIT is conform the one of a 1541.


If you want to do the job, please inform the others.

Thanks for any help.
   ___
  / __|__
 / /  |_/     Groetjes, Ruud
 \ \__|_\
  \___|       http://Ruud.C64.org









       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.1.