Date: Wed, 23 Jan 2008 12:39:58 -0700
From: bfranchuk at jetnet.ab.ca
To:
Subject: Re: div by 10 on Z80
Brent Hilpert wrote:
Of course, from a clarity-is-all-important modern software design perspective,
we should all be shot.
If I were an economist, I would predict that at this rate, in another few weeks
the routine will be down to 1 byte.
It could real soon ... We have yet to study
the *secret Z80* instructions.
BTW was this for disk sector calculations again? What OS?
Hi
It is for System88 that was used by Polymorphic. It is 10 hard sectored
dsdd disk. I've just figured out the headers. Something that is only practical
with a scope that has delayed sweep ( which I had to fix for this project ).
The code for the disk controller runs on the controller board and uses
a Z80 processor ( the main processor is a 8080 running on the S100 ).
There are two windows in the Z80 memory that are double accessed
by both the S100 side and the Z80 side. One window at 1000H for
buffering while the other is only 16 bytes used for command, parameters
and status.
The code that I have is for 256 byte sectors on 32 hard sectored
8 inch disk.
I'm trying to modify the code to read the 512 byte sectors of the
5.25 disk. I've already modified the PLL, crystal and a oneshot for timing.
There is a slight difference in the headers, being that the 8 inch
does track, track\, sector, sector\ and the 5.25 does sector, sector\
track, track\.
Since the controller runs on its own EPROM, I need to add code to the
EPROM to deal with things like dividing by 10. I have some space
to add this but I also have to make some other changes to deal
with things like the larger sector size. That is why I'm interested in
size. I have about 40 bytes left.
What is funny is that I beleive that one of the disk I'm trying to
read has the source and binary for the complete ROM code for the 5.25.
A chicken and egg problem now.
The disk are from the Polymorphic archive and have a lot of valuable
source, manuals and binaries. As I stated earlier, there is even source
for their version of BASIC ( not MS ).
Dwight
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail?-get your
"fix".
http://www.msnmobilefix.com/Default.aspx