mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-07 06:53:13 -06:00
Compare commits
10 Commits
v3.6.0-dev
...
v3.6.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95e7c5ce3b | ||
|
|
e92091c922 | ||
|
|
edf3cf93bb | ||
|
|
a110b24d76 | ||
|
|
1813100142 | ||
|
|
e29fb43754 | ||
|
|
d32fe11a19 | ||
|
|
db577eddd9 | ||
|
|
603d29f4ba | ||
|
|
ba5af175ba |
@@ -68,3 +68,11 @@ ZSDOS is the DOS portion of Z-System. This is the manual for ZSDOS
|
||||
1.x as included in RomWBW. The installation instructions can be
|
||||
ignored since that work has already been completed as part of the
|
||||
RomWBW distribution.
|
||||
|
||||
ZPM3 ("ZPM3.txt")
|
||||
-----------------
|
||||
|
||||
A Z80 coded CP/M 3.0 compatible BDOS replacement with ZCPR support.
|
||||
This minimal documentation is all that is provided with ZPM3.
|
||||
|
||||
-- WBW 8:38 AM 6/6/2025
|
||||
|
||||
483
Doc/CPM/ZPM3.txt
Normal file
483
Doc/CPM/ZPM3.txt
Normal file
@@ -0,0 +1,483 @@
|
||||
|
||||
Z P M 3 by Simeon Cran
|
||||
========================
|
||||
|
||||
A Z80 coded CP/M 3.0 compatible BDOS replacement.
|
||||
|
||||
The first public release: 27/3/92
|
||||
This document dated: 16/6/92
|
||||
|
||||
Distributed at: Z-Node 62 (Perth, Western Australia)
|
||||
V21,V22,V22bis 09 450 0200
|
||||
|
||||
|
||||
WELCOME TO ZPM3
|
||||
~~~~~~~~~~~~~~~
|
||||
Welcome to the best CP/M compatible operating system for Z80
|
||||
based computers with banked memory. The best? Yes, we believe so.
|
||||
CP/M 3.0 has had bad press, but the fact is that it is faster
|
||||
than CP/M 2.2 ever was, and it offered more integrated
|
||||
facilities. Perhaps it was all the Z80 replacement BDOSes for
|
||||
CP/M 2.2 which stole the limelight from CP/M 3.0, or was it just
|
||||
that few computers had the required banked memory?
|
||||
|
||||
Whatever the reason for CP/M 3.0's lack of success in the
|
||||
marketplace, there are still plenty of users who will stand by
|
||||
its wonderful facilities and speed. For those users ZPM3 provides
|
||||
the long awaited Z80 coded update.
|
||||
|
||||
ZPM3 offers all the good things that CP/M 3.0 does, and then it
|
||||
offers more. Because ZPM3 is written in Z80 code rather than the
|
||||
8080 code of CP/M 3.0, it can do everything that CP/M 3.0 does,
|
||||
but in much less space. With the extra space recovered, ZPM3
|
||||
packs in a number of new facilities. Yet the whole package fits
|
||||
in exactly the same space as CP/M 3.0 so you can directly replace
|
||||
your old CP/M 3.0 BDOS with ZPM3 without a worry.
|
||||
|
||||
ZPM3 is also fast. Faster, in fact, than CP/M 3.0. This is
|
||||
possible because the rich Z80 instruction set allows many
|
||||
algorithms to be implemented more efficiently. In addition, the
|
||||
extra space available in ZPM3 has been put to use to further
|
||||
optimise the code. Lots of small optimisations smooth the
|
||||
execution flow, so ZPM3 becomes the fastest operating system on
|
||||
most banked CP/M computers.
|
||||
|
||||
|
||||
THE FEATURES
|
||||
~~~~~~~~~~~~
|
||||
ZPM3, in addition to complete CP/M 3.0 compatibility, offers the
|
||||
following features:
|
||||
|
||||
|
||||
Random Read Bug fixed.
|
||||
++++++++++++++++++++++
|
||||
Maybe you didn't know, but CP/M 3.0 has a bug. It affects random
|
||||
reads under very specific circumstances, and can result in a
|
||||
program thinking that you don't have some pieces of data in a
|
||||
file when in fact you do. The bug would occur very, very rarely,
|
||||
but it is real. ZPM3 finally squashes it.
|
||||
|
||||
|
||||
Protected SCB User code
|
||||
+++++++++++++++++++++++
|
||||
The System Control Block of CP/M 3.0 was a revolution at the
|
||||
time. ZCPR has a system environment and most other operating
|
||||
systems have other similar structures, but the SCB of CP/M 3.0
|
||||
was one of the very first.
|
||||
|
||||
Unfortunately, Digital Research never properly documented it, and
|
||||
some programmers found things out about it that weren't quite
|
||||
true and started programming accordingly. As well, because it is
|
||||
available in the TPA bank, runaway programs can overwrite it
|
||||
causing problems.
|
||||
|
||||
Mostly though, the SCB will survive, or at least any problems
|
||||
will be so obvious that the user will realise that a crash has
|
||||
occurred and will reboot. A real problem exists with the CP/M 3.0
|
||||
code however when the user value is written over with a value
|
||||
above 15. Many programs now directly write to this byte, and if
|
||||
they put a value in that is above 15, all sorts of havoc can
|
||||
happen with the disk system. Actually, CP/M 3.0 will handle user
|
||||
areas above 15 with this method, and all seems ok until the
|
||||
operating system mistakes one of these directory entries as an
|
||||
XFCB. Simply put, user areas above 15 must not be used with CP/M
|
||||
3.0.
|
||||
|
||||
ZPM3 has code which prevents these problems, making the system
|
||||
even more stable.
|
||||
|
||||
|
||||
Obsoleted Trap system.
|
||||
++++++++++++++++++++++
|
||||
One of the problems of the banked operating system was that it
|
||||
was possible to redirect the BIOS to code below common memory, in
|
||||
which case the banked BDOS could not access it. One solution is
|
||||
to call all BIOS code from common memory, but this involves a
|
||||
bank switch for every BIOS call, and this slows things down
|
||||
considerably.
|
||||
|
||||
CP/M 3.0 got around the problem by providing special code just
|
||||
below the SCB. If you redirected the BIOS, you also had to change
|
||||
this code which caused a bank switch when your new BIOS routine
|
||||
was called. When you removed the redirection, you also had to
|
||||
restore the special code.
|
||||
|
||||
This system has major drawbacks. For a start, if you redirect the
|
||||
BIOS, then another program redirects your redirection, then you
|
||||
remove your first redirection (along with the special code), the
|
||||
bank switch won't happen for the second redirection and the
|
||||
system will crash.
|
||||
|
||||
If a CP/M 2.2 program tried to do the redirection, it would know
|
||||
nothing about CP/M 3.0 and would not adjust the special code, so
|
||||
a crash would result in that case too.
|
||||
|
||||
The special code was called the "Trap System" as it was meant to
|
||||
trap redirection (as long as you set the trap). ZPM3 has
|
||||
eliminated the need for the traps. They are still there, and
|
||||
programs can still fiddle with them, but it doesn't matter how
|
||||
they are set, they are ignored. There is simply no need for them
|
||||
anymore. And this has been achieved without a performance
|
||||
penalty. In fact, in the case of a program which sets the traps
|
||||
but forgets to restore them, performance is now much better.
|
||||
|
||||
|
||||
Semi-Permanent Read Only status for drives.
|
||||
+++++++++++++++++++++++++++++++++++++++++++
|
||||
In recent years, a trend in CP/M 2.2 is to make drives which have
|
||||
been set read only to remain that way until explicitly changed by
|
||||
function 37. ZPM3 now adopts this logic. Previously a control-C
|
||||
would return a read only drive to read write. The advantage is
|
||||
that a program can now make a drive read only for a session and
|
||||
know that it will stay that way.
|
||||
|
||||
|
||||
ZCPR compatible function 152
|
||||
++++++++++++++++++++++++++++
|
||||
Function 152 is the CP/M 3.0 parser. It was a great innovation at
|
||||
the time as parsing is one of the more tedious aspects of
|
||||
programming for CP/M. Unfortunately, almost as soon as it
|
||||
appeared, it was made obsolete by the fact that it didn't handle
|
||||
references to user number (DU references). A line such as
|
||||
A:FILE.TYP would be correctly parsed, but A3:FILE.TYP would not.
|
||||
CP/M 3.0 programs would often parse the drive and user
|
||||
separately, then give function 152 the line without the DU:
|
||||
reference. All this extra work should not have been necessary if
|
||||
CP/M 3.0 had included user number parsing.
|
||||
|
||||
ZPM3 parses the user number, and goes even further by handling
|
||||
named directories for ZCPR. This is possible as long as you set a
|
||||
special word in the SCB which tells ZPM3 where to find the ZCPR
|
||||
system environment descriptor. ZCCP, a companion CCP for ZPM3,
|
||||
handles this automatically, but for Z3PLUS users, a special
|
||||
utility is available which automatically sets this word.
|
||||
|
||||
The result is that CP/M 3.0 programs will not balk at DU:
|
||||
references and ZPM3 aware programs can use the full DU: and DIR:
|
||||
facilities of function 152. It has also made the brilliant ZCCP
|
||||
code possible.
|
||||
|
||||
|
||||
New Functions 54 and 55
|
||||
+++++++++++++++++++++++
|
||||
Datestamps in CP/M 3.0 are wonderful, but difficult to
|
||||
manipulate. Two new functions make them easier to handle and at
|
||||
the same time give compatibility to Z80DOS aware programs.
|
||||
|
||||
Function 54 (Get Stamp) returns a Z80DOS compatible datestamp.
|
||||
Any program (such as many directory programs) which recognise the
|
||||
Z80DOS standard can make use of function 54. There is only one
|
||||
slight difference between Z80DOS datestamps and ZPM3's which you
|
||||
should be aware of. Z80DOS will return a correct datestamp after
|
||||
any successful open or search of any extent. ZPM3 can only return
|
||||
a correct datestamp after a successful open or search of the
|
||||
first extent of the file. This is because CP/M 3.0 datestamps are
|
||||
only saved for the first extents of each file, in order to
|
||||
provide the highest performance.
|
||||
|
||||
Even more interesting is Function 55 (Use Stamp) which provides a
|
||||
mechanism for changing datestamps on files. Trying to do this
|
||||
with CP/M 3.0 was virtually impossible because it involved direct
|
||||
sector writes. With Function 55 you can simply set the stamp and
|
||||
then write.
|
||||
|
||||
|
||||
Wheel protected files
|
||||
+++++++++++++++++++++
|
||||
If you are using a ZCPR system (ZCCP or Z3PLUS), ZPM3 has access
|
||||
to the wheel byte and supports wheel protected files. Such files
|
||||
act normally if the wheel is set (signifying a priveleged user),
|
||||
but if the wheel is not set, the files can not be changed. This
|
||||
is of most benefit to BBS systems. The implementation is
|
||||
virtually the same as most current Z80 CP/M 2.2 compatible
|
||||
BDOSes.
|
||||
|
||||
|
||||
Better error messages
|
||||
+++++++++++++++++++++
|
||||
CP/M 3.0 introduced the best error messages that CP/M had ever
|
||||
had. ZPM3 goes further. The main difference you will notice is
|
||||
that the user number as well as the drive is shown in the error
|
||||
message. This is invaluable in helping you identify which file
|
||||
might have caused a problem.
|
||||
|
||||
|
||||
Function 10 history buffer and improved editing.
|
||||
++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Function 10 is used by the CCP to input command lines. Many other
|
||||
programs use function 10 for input.
|
||||
|
||||
CP/M 3.0 introduced a history buffer for function 10. You press
|
||||
control-W and you were returned the last command. It is a great
|
||||
facility, but because it only remembers one command it is rather
|
||||
limited. There have been RSXes written which give a much larger
|
||||
history buffer, but RSXes take up extra program memory so are
|
||||
undesirable.
|
||||
|
||||
ZPM3 gives a large (approximately 250 bytes) history buffer which
|
||||
can store multiple commands. It also makes very intelligent use
|
||||
of the buffer so that identical commands are not stored twice,
|
||||
and commands of less than three characters are not stored. The
|
||||
history buffer takes up no additional memory, and is always
|
||||
available.
|
||||
|
||||
For security, it is possible to clear the history buffer so that
|
||||
other users can not see what commands you have used.
|
||||
|
||||
The ZPM3 history buffer feature is so good, that for many users,
|
||||
the ZPM3 upgrade is completely justified by it.
|
||||
|
||||
As part of the history buffer system, ZPM3 also offers a facility
|
||||
called Automatic Command Prompting. This can be disabled, or can
|
||||
be made switchable from the keyboard. When it is on, ZPM3 tries
|
||||
to fill in the rest of your command based on what commands you
|
||||
used most recently. It is like magic, and can save you typing out
|
||||
complicated commands many times. In effect, it looks through the
|
||||
history buffer for you and finds the command it thinks you want.
|
||||
As you keep typing, if it turns out that the command doesn't
|
||||
match anymore, it will try to match another command, and if it
|
||||
can't, it lets you make the command by yourself. This facility is
|
||||
quite amazing to watch.
|
||||
|
||||
And to integrate the history buffer and the automatic command
|
||||
prompting, function 10 has the best command line editing you'll
|
||||
find anywhere. Most of the control keys do something when you are
|
||||
editing a function 10 line, and for the most part they mimic the
|
||||
standard WordStar/NewWord/ZDE functions. You can jump to
|
||||
different words in the command, delete individual words, delete
|
||||
individual letters, insert letters, and a whole lot more.
|
||||
|
||||
|
||||
Here is a list of what the various control keys do for function
|
||||
10:
|
||||
|
||||
A Move left one word
|
||||
B Go to the beginning or end of the line
|
||||
C Warm boot if at start of line, otherwise nothing
|
||||
D Go right one character
|
||||
E Go backwards one command in the history buffer
|
||||
F Go right one word
|
||||
G Delete current character
|
||||
H Destructive backspace
|
||||
I
|
||||
J Enter line
|
||||
K Delete all to the right
|
||||
L
|
||||
M Enter line
|
||||
N
|
||||
O
|
||||
P Toggle printing
|
||||
Q Toggle automatic command prompting (if enabled)
|
||||
R
|
||||
S Go left one character
|
||||
T Delete current word
|
||||
U Add current line to history buffer
|
||||
V Clear line and delete from history buffer
|
||||
W Go forwards one command in the history buffer
|
||||
X Delete all to the left
|
||||
Y Clear the whole line
|
||||
Z
|
||||
|
||||
|
||||
CPMLDR.REL bug fixed.
|
||||
+++++++++++++++++++++
|
||||
If you have ever tried to use the CPMLDR.REL code supplied with
|
||||
CP/M 3.0 to load a CPM3.SYS file larger than 16k, you have
|
||||
probably come across the CPMLDR.REL bug. The computer probably
|
||||
crashed, and you were left wondering what you did wrong in your
|
||||
bios.
|
||||
|
||||
Well CPMLDR.REL has a bug. To solve this for you ZPM3 comes with
|
||||
ZPM3LDR.REL which directly replaces CPMLDR.REL. It is also
|
||||
somewhat better in that all the messages, and the fcb for loading
|
||||
CPM3.SYS, are at the start of the file along with plenty of spare
|
||||
room. As a result you can easily patch the signon and error
|
||||
messages to say whatever you like and even change the FCB to load
|
||||
a file called something other than CPM3.SYS.
|
||||
|
||||
|
||||
|
||||
|
||||
All About the Random Read Bug.
|
||||
==============================
|
||||
Never heard of it? Well it's there in CP/M 3.0. I spent a lot of
|
||||
time trying to work out what it was and just why it was
|
||||
happening, and if you are interested, here are the details.
|
||||
|
||||
CP/M 3.0 uses the Record Count byte of an active FCB a little
|
||||
differently from the way CP/M 2.2 does. It is mentioned in the
|
||||
CP/M 3.0 manuals that the record count may contain numbers
|
||||
greater than 128, but in such a case it implies that the record
|
||||
count is really 128. CP/M 2.2 would not return record counts
|
||||
greater than 128.
|
||||
|
||||
The reason for the use of the record count in this way is to help
|
||||
speed up some of the logic used to find records in a file. It
|
||||
works very well for sequential access. When it comes to random
|
||||
access, the system has some failings.
|
||||
|
||||
The idea behind CP/M 3.0's unusual use of the record count is to
|
||||
keep the record count of the last logical extent of the current
|
||||
physical extent always in the Record Count byte. When accessing
|
||||
extents before the last one, bit 7 of the byte is set. That way
|
||||
it will always be at least 128 for logical extents before the
|
||||
last (which CP/M 3.0 translates to mean equal to 128), and the
|
||||
lower 7 bits are used as convenient storage for the record count
|
||||
of the last logical extent. This is particularly convenient
|
||||
because it means there is no need to go and read the directory
|
||||
entry again when it comes time to read the last logical extent.
|
||||
|
||||
I hope you have followed that! In sequential access, this scheme
|
||||
is great. The problem occurs with random access. In this case it
|
||||
is possible to access a logical extent which has no records in
|
||||
it. This could be any logical extent past the last one. In such a
|
||||
case the record count must be returned as 0 (which is correct).
|
||||
If we then go back to a previous logical extent in the same
|
||||
physical extent, CP/M 3.0 gets confused and assumes that there
|
||||
must be 128 records in that extent because the one we just came
|
||||
from had no records and we are now accessing an earlier extent.
|
||||
You're probably well and truly lost by now!
|
||||
|
||||
Anyhow, the assumption that CP/M 3.0 makes is quite wrong. The
|
||||
record count ends up being set to 128, a read is allowed to go
|
||||
ahead as if nothing was wrong, no error is returned, and the
|
||||
record count remains incorrectly set until a different physical
|
||||
extent is opened. The result could be chaos, but mostly it just
|
||||
means that a program returns the wrong information.
|
||||
|
||||
Remember, a logical extent is always 16k. A physical extent can
|
||||
be a multiple of 16k and is all the data described by one
|
||||
directory entry. If your system has physical extents which are
|
||||
16k, you would never have the problem because a new physical
|
||||
extent would be properly opened for every new logical extent that
|
||||
was accessed.
|
||||
|
||||
Typically though, a physical extent is 32k, so it holds 2 logical
|
||||
extents. The problem won't arise until the file grows past the
|
||||
32k mark in such a case. And when the file gets over 48k the
|
||||
problem can't occur again until it gets over 64k... and so on.
|
||||
Even then, it can only happen if reads are attempted to
|
||||
particular extents in a particular order. So you shouldn't be too
|
||||
surprised if the bug hasn't been too noticeable to you.
|
||||
|
||||
ZPM3 squashes the bug once and for all by using the correct
|
||||
logic. In the situation where the bug would normally occur, ZPM3
|
||||
makes sure it gets the correct record count information, and the
|
||||
reads return the correct record count every time.
|
||||
|
||||
If you are interested in seeing a demonstration of the bug in
|
||||
action (on CP/M 3.0) and comparing it with ZPM3, there is a file
|
||||
floating around various bulletin boards which contains
|
||||
demonstrations for the bug and an RSX to fix it. The RSX is a
|
||||
less than perfect way of overcoming the bug, although it seems to
|
||||
work. However, now that you have ZPM3, you don't need to worry.
|
||||
|
||||
|
||||
|
||||
|
||||
Other things you should know about ZPM3
|
||||
=======================================
|
||||
ZPM3 has worked on EVERY CP/M 3.0 system tried so far except one.
|
||||
This is a Bondwell computer, and as yet it isn't clear why it
|
||||
won't work. I will study the source code of its BIOS and come up
|
||||
with a fix shortly.
|
||||
|
||||
The MAKEDOS.COM utility is not perfect (as mentioned previously)
|
||||
and it seems that nobody has managed to get it to work with the
|
||||
Commodore C128 system. You must use the conventional method for
|
||||
installing ZPM3 on such systems.
|
||||
|
||||
If you have a computer that ZPM3 will not install on with MAKEDOS
|
||||
and you do not have access to the files required to do a
|
||||
conventional install, please contact me. I am interested in
|
||||
making ZPM3 as universal as possible and will help you to install
|
||||
it on your system.
|
||||
|
||||
The ESCAPE key is ignored by function 10. There has been some
|
||||
lively discussion about this but the decision is final: it stays
|
||||
ignored. Remember what function 10 is for and you will understand
|
||||
why I made it ignore the ESCAPE key. The argument against this
|
||||
has been from people who control their terminals from the command
|
||||
line. Apparently some people type in an escape sequence at the
|
||||
command line (which CP/M 3.0 will not output correctly anyhow
|
||||
(converting the escape character to ^[)) then press return to
|
||||
have the CCP echo back the line including the escape character.
|
||||
|
||||
Sorry folks, that is a KLUDGE in my books! Anybody using Z-System
|
||||
would of course use an ALIAS and ECHO to do this properly, but
|
||||
for those who will continue to complain that I have sacrificed
|
||||
CP/M 3.0 compatibility I am now including ECHOTERM.COM to solve
|
||||
your problems. Run it and whatever you type will be sent to the
|
||||
terminal correctly after you press RETURN. Press RETURN twice to
|
||||
exit the program.
|
||||
|
||||
And a reminder that the ability to put control characters into
|
||||
function 10 lines was always limited by the fact that some
|
||||
control keys were used to edit the command line. CP/M 3.0 added
|
||||
even more, and ZPM3 uses virtually all the control keys. The few
|
||||
that aren't used are ignored, and this is in fact a FEATURE which
|
||||
guarantees that unusable characters can't get into function 10
|
||||
lines by accident.
|
||||
|
||||
|
||||
|
||||
|
||||
LEGALS and SUCH
|
||||
===============
|
||||
The ZPM3 package is supplied free of charge, on the condition
|
||||
that you don't use it to make money. If you want to use it
|
||||
commercially you must contact me to get the OK (and negotiate our
|
||||
fee).
|
||||
|
||||
If you find anyone (except myself) charging money for ZPM3,
|
||||
please inform me!
|
||||
|
||||
Nobody is making any guarantees about this software. None at all.
|
||||
If it causes your house to burn down, or a divorce, or just a bad
|
||||
day, this is unfortunate, regrettable, but there is nothing that
|
||||
I can or will do about it. You have been warned.
|
||||
|
||||
The ZPM3 package must only be distributed in the form that you
|
||||
found it. Do not change or add anything. Don't even change it
|
||||
into a different type of archive. Just leave it alone. However
|
||||
you are free to distribute it to as many places and people that
|
||||
you can. Just don't charge for it.
|
||||
|
||||
|
||||
|
||||
If in using ZPM3 you find that it doesn't act as described,
|
||||
please forward the details to me so that either the ZPM3 code or
|
||||
the documentation can be changed. If you would like further
|
||||
details, please forward your specific questions to me. SJC.
|
||||
|
||||
|
||||
|
||||
|
||||
As a service to all our ZPM3 fans, the latest version of the ZPM3
|
||||
package can now be ordered. At this stage we can only supply IBM
|
||||
formatted 3.5 inch 720k disks, however if you are keen enough
|
||||
that shouldn't matter. ZPM3 remains free, however this service
|
||||
will cost you $15 Australian (for the disk, copying, postage and
|
||||
packing) to most places in the Western World (others by
|
||||
arrangement).
|
||||
|
||||
This is a good way to guarantee you have the latest version, and
|
||||
to guarantee that your package has not been corrupted by some
|
||||
unscrupulous person.
|
||||
|
||||
When we fill your order, we will make sure to include the latest
|
||||
demonstration copy of MYZ80 - the fastest and best Z80 emulator
|
||||
for IBM AT (and better) compatibles. MYZ80 can run ZPM3 with
|
||||
ease. It also handles ZCPR and CP/M 2.2. And yes, we do mean
|
||||
FASTEST.
|
||||
|
||||
Send your international money order to:
|
||||
|
||||
Software by Simeon
|
||||
ZPM3 Package
|
||||
2 Maytone Ave
|
||||
Killara NSW
|
||||
Australia 2071
|
||||
|
||||
Your order will be promptly filled.
|
||||
|
||||
@@ -28,6 +28,7 @@ ChangeLog.txt
|
||||
Log of changes in RomWBW by version.
|
||||
|
||||
|
||||
RomWBW Introduction ("RomWBW Introduction.pdf")
|
||||
RomWBW User Guide ("RomWBW User Guide.pdf")
|
||||
RomWBW System Guide ("RomWBW System Guide.pdf")
|
||||
RomWBW Applications ("RomWBW Applications.pdf")
|
||||
@@ -84,4 +85,4 @@ UCSD p-System Users Manual ("UCSD p-System Users Manual.pdf")
|
||||
Official user manual for p-System operating system included with
|
||||
RomWBW.
|
||||
|
||||
--WBW 5:18 PM 6/14/2023
|
||||
--WBW 8:37 AM 6/6/2025
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
**RomWBW Introduction** \
|
||||
Version 3.6 \
|
||||
Wayne Warthen ([wwarthen@gmail.com](mailto:wwarthen@gmail.com)) \
|
||||
04 Jun 2025
|
||||
06 Jun 2025
|
||||
|
||||
# Overview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
RomWBW Introduction
|
||||
Wayne Warthen (wwarthen@gmail.com)
|
||||
04 Jun 2025
|
||||
06 Jun 2025
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -70,11 +70,12 @@ disks should now be fully described.
|
||||
CP/M 3. Applications have been patched according to the DRI
|
||||
patch list.
|
||||
|
||||
- **ZPM3**: Digital Research CP/M-80 2.2 Distribution Files
|
||||
- **ZPM3**: ZPM3 Distribution Files
|
||||
|
||||
Documentation: *CPM Manual.pdf*
|
||||
Documentation: *ZPM3.txt*
|
||||
|
||||
These files are from Simeon Cran's ZPM3 operating system distribution.
|
||||
These files are from Simeon Cran's official distribution of ZPM3.
|
||||
All known patches have been applied.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
@@ -1068,7 +1069,7 @@ The following files are found in
|
||||
| ADVMAIN.COW | Adventure game program source |
|
||||
| ADVTRAV.COW | Adventure game component source |
|
||||
| ARGV.COH | Cowgol include file providing command line argument processing |
|
||||
| C.LIB | Hi-Tech C runtime library |
|
||||
| C.LIB | HI-TECH C runtime library |
|
||||
| CGEN.COM | HiTech C compiler pass 2 |
|
||||
| COMMFILE.COH | Include file providing file I/O |
|
||||
| COMMON.COH | Include file providing common functions |
|
||||
@@ -1177,21 +1178,22 @@ NOTE : The above is incomplete
|
||||
| Floppy Disk Image: **fd_hitechc.img**
|
||||
| Hard Disk Image: **hd_hitechc.img**
|
||||
|
||||
The HI-TECH C Compiler is a set of software which
|
||||
The HI-TECH C Compiler is a set of software which
|
||||
translates programs written in the C language to executable
|
||||
machine code programs. Versions are available which compile
|
||||
programs for operation under the host operating system, or
|
||||
which produce programs for execution in embedded systems
|
||||
without an operating system.
|
||||
|
||||
This is the Mar 21, 2023 update 17 released by Tony Nicholson who currently
|
||||
maintains HI-TECH C at <https://github.com/agn453/HI-TECH-Z80-C>
|
||||
This is the Jun 2, 2025 update 19 released by Tony Nicholson who
|
||||
currently maintains HI-TECH C at
|
||||
<https://github.com/agn453/HI-TECH-Z80-C>.
|
||||
|
||||
The manual is available in the Doc/Language directory,
|
||||
HI-TECH Z80 C Compiler Manual.txt
|
||||
|
||||
A good blog post about the HI-TECH C Compiler is available at
|
||||
<https://techtinkering.com/2008/10/22/installing-the-hi-tech-z80-c-compiler-for-cpm>
|
||||
<https://techtinkering.com/2008/10/22/installing-the-hi-tech-z80-c-compiler-for-cpm>.
|
||||
|
||||
User area 1 contains another complete copy of the HI-TECH C Compiler.
|
||||
It is identical to the copy in user area 0 except for the following files
|
||||
@@ -1216,11 +1218,52 @@ The following files are found in
|
||||
|
||||
* /Source/Images/d_hitechc
|
||||
|
||||
| **File** | **Description** |
|
||||
|----------|-----------------|
|
||||
| -- | -- |
|
||||
|
||||
NOTE : The above is incomplete
|
||||
| **File** | **Description** |
|
||||
|--------------|--------------------------------------------|
|
||||
| $EXEC.COM | Compiler execution manager |
|
||||
| ASSERT.H | Language include file |
|
||||
| C.COM | Compiler invocation application (updated) |
|
||||
| C309.COM | Compiler invocation application (original) |
|
||||
| CGEN.COM | The code generator - produces assembler code |
|
||||
| CONIO.H | Language include file (see manual) |
|
||||
| CPM.H | Language include file (see manual) |
|
||||
| CPP.COM | Pre-processor - handles macros and conditional compilation |
|
||||
| CREF.COM | Produces cross-reference listings of C or assembler programs |
|
||||
| CRTCPM.OBJ | Startup Object File (standard) |
|
||||
| CTYPE.H | Language include file (see manual) |
|
||||
| DEBUG.COM | C Debugger (Z80) |
|
||||
| DRTCPM.OBJ | Startup Object File (???) |
|
||||
| EXEC.H | Language include file (see manual) |
|
||||
| FLOAT.H | Language include file (see manual) |
|
||||
| HITECH.H | Language include file (see manual) |
|
||||
| LIBC.LIB | Standard C Runtime Library |
|
||||
| LIBF.LIB | Floating Point Library |
|
||||
| LIBOVR.LIB | Overlay Library |
|
||||
| LIBR.COM | Creates and maintains libraries of object modules |
|
||||
| LIMITS.H | Language include file (see manual) |
|
||||
| LINQ.COM | Link editor - links object files with libraries |
|
||||
| MATH.H | Language include file (see manual) |
|
||||
| NRTCPM.OBJ | Startup Object File (minimal getargs) |
|
||||
| OBJTOHEX.COM | Converts the output of LINK into the appropriate executable file format (e.g., .EXE or .PRG or .HEX) |
|
||||
| OPTIM.COM | Code improver - may optionally be omitted, reducing compilation time at a cost of larger, slower code produced |
|
||||
| OPTIONS | Compiler usage help file |
|
||||
| OVERLAY.H | Language include file |
|
||||
| P1.COM | The syntax and semantic analysis pass - writes intermediate code for the code generator to read |
|
||||
| RRTCPM.OBJ | Startup Object File (self relocating) |
|
||||
| SETJMP.H | Language include file (see manual) |
|
||||
| SIGNAL.H | Language include file (see manual) |
|
||||
| STAT.H | Language include file (see manual) |
|
||||
| STDARG.H | Language include file (see manual) |
|
||||
| STDDEF.H | Language include file (see manual) |
|
||||
| STDINT.H | Language include file (see manual) |
|
||||
| STDIO.H | Language include file (see manual) |
|
||||
| STDLIB.H | Language include file (see manual) |
|
||||
| STRING.H | Language include file (see manual) |
|
||||
| SYMTOAS.COM | Convert symbol file to assembler |
|
||||
| SYS.H | Language include file (see manual) |
|
||||
| TIME.H | Language include file (see manual) |
|
||||
| UNIXIO.H | Language include file (see manual) |
|
||||
| ZAS.COM | The assembler - in fact a general purpose macro assembler |
|
||||
|
||||
## MSX ROMS
|
||||
|
||||
|
||||
@@ -2318,6 +2318,7 @@ Note:
|
||||
| DSRTC | Maxim DS1302 Real-Time Clock w/ NVRAM |
|
||||
| EZ80RTC | eZ80 Real-Time Clock |
|
||||
| INTRTC | Interrupt-based Real Time Clock |
|
||||
| PCRTC | MC146818/DS1285/DS12885 PC style |
|
||||
| PCF | PCF8584-based I2C Real-Time Clock |
|
||||
| RP5C01 | Ricoh RPC01A Real-Time Clock w/ NVRAM |
|
||||
| SIMRTC | SIMH Simulator Real-Time Clock |
|
||||
|
||||
@@ -1416,6 +1416,7 @@ unit. The table below enumerates these values.
|
||||
| RTCDEV_DS7 | 0x04 | Maxim DS1307 PCF I2C RTC w/ NVRAM | ds7rtc.asm |
|
||||
| RTCDEV_RP5 | 0x05 | Ricoh RPC01A Real-Time Clock w/ NVRAM | rp5rtc.asm |
|
||||
| RTCDEV_EZ80 | 0x07 | eZ80 on-chip RTC | ez80rtc.asm |
|
||||
| RTCDEV_PC | 0x08 | MC146818/DS1285/DS12885 RTC w/ NVRAM | pcrtc.asm |
|
||||
|
||||
The time functions to get and set the time (RTCGTM and RTCSTM) require a
|
||||
6 byte date/time buffer in the following format. Each byte is BCD
|
||||
|
||||
@@ -15,13 +15,18 @@ There are multiple fonts associated with ROMWBW supported hardware:
|
||||
ECB-VGA3 vga.asm 6445
|
||||
MBC-VDC cvdu.asm 8568
|
||||
MBC-VDP tms.asm 9938/9958
|
||||
RCBUS-VRC vrc.asm PLD
|
||||
RCBUS-TMS tms.asm 99x8
|
||||
|
||||
Name Font Storage Size Board & Display Mode
|
||||
--------------------------------------------------------------------------------------------
|
||||
font8x8u.bin 6x8 8x8 2048 ECB-SCG, ECB-VGA3 (80x60), MBC-VDP
|
||||
font8x11u.bin 8x11 8x11 2816 ECB-VGA3 (80x43)
|
||||
font8x16u.bin 8x14 8x16 4096 ECB-CVDU (80x25), ECB-VGA3 (80x24, 80x25, 80x30), MBC-VDC
|
||||
fontcgau.bin 8x8 8x16 4096 ECB-CVDU (80x25), MBC-VDC
|
||||
Name Glyph Cell Size Comp Board & Display Mode
|
||||
------------------------------------------------------------------------------------------------
|
||||
font8x8 7x8 8x8 2048 1034 ECB-SCG, ECB-VGA3 (80x60), MBC-VDP
|
||||
font8x11 8x11 8x11 2816 1252 ECB-VGA3 (80x43)
|
||||
font8x16 8x14 8x16 4096 1466 ECB-CVDU (EGA), ECB-VGA3 (80x24, 80x25, 80x30), MBC-VDC (EGA)
|
||||
fontcga 8x8 8x16 4096 1280 ECB-CVDU (CGA), MBC-VDC (CGA)
|
||||
fontvrc 8x8 8x8 1024 650 VGARC
|
||||
----- -----
|
||||
14080 5682
|
||||
|
||||
Notes:
|
||||
|
||||
|
||||
@@ -41,14 +41,21 @@
|
||||
; ".SET" TO OVERRIDE SETTINGS. THE ASSEMBLER WILL ERROR IF YOU ATTEMPT
|
||||
; TO USE ".EQU" BECAUSE IT WON'T LET YOU REDEFINE A SETTING WITH ".EQU".
|
||||
;
|
||||
; THIS FILE ENABLES THE XOSERA DRIVER WITH A BASE ADDRESS Of 0XE0
|
||||
; AND DISPLAY SIZE OF 80 COLUMNS X 30 ROWS
|
||||
; THIS FILE ENABLES THE XOSERA DRIVER WITH A BASE ADDRESS Of $A0 AND
|
||||
; DISPLAY SIZE OF 80 COLUMNS X 30 ROWS.
|
||||
;
|
||||
#INCLUDE "Config/RCZ80_std.asm" ; INHERIT FROM OFFICIAL BUILD SETTINGS
|
||||
;
|
||||
XOSENABLE .SET TRUE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
XOS_BASE .SET $20 ; XOSERA: I/O BASE ADDRESS (REQUIRES 32 BYTES)
|
||||
XOS_BASE .SET $A0 ; XOSERA: I/O BASE ADDRESS (REQUIRES 32 BYTES)
|
||||
XOSSIZ .SET V80X30 ; XOSERA: DISPLAY FORMAT [V80X30|V80X60]
|
||||
;
|
||||
AUTOCON .SET FALSE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
VDAEMU_SERKBD .SET $0 ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
; WHEN A XOSERA BOARD IN IS THE SYSTEM, LIMIT THE NUMBER OF UARTS THAT ARE PROBED
|
||||
; TO TWO, BECAUSE THE PROBE TO DETECT A THIRD UART WRITES UNLUCKY VALUES TO
|
||||
; XOSERA THAT CAUSE IT TO RECONFIGURE ITSELF AND LOCK UP THE BUS FOR A TIME. IF
|
||||
; YOU NEED MORE THAN TWO UARTS, YOU WILL NEED TO MOVE XOSERA OUT OF THE $A0-$BF
|
||||
; I/O ADDRESS REGION.
|
||||
UARTCNT .SET 2
|
||||
|
||||
@@ -202,6 +202,9 @@ DS7RTCMODE .EQU DS7RTCMODE_PCF ; DS7RTC: OPERATING MODE: DS7RTCMODE_[PCF]
|
||||
;
|
||||
DS5RTCENABLE .EQU FALSE ; DS5RTC: ENABLE DS-1305 SPI CLOCK DRIVER (DS5RTC.ASM)
|
||||
;
|
||||
PCRTCENABLE .EQU FALSE ; PCRTC: DISABLE DS12885 etc. RTC
|
||||
PCRTC_BASE .EQU $C0 ; Default port for PCRTC, like DSRTC.
|
||||
;
|
||||
SSERENABLE .EQU FALSE ; SSER: ENABLE SIMPLE SERIAL DRIVER (SSER.ASM)
|
||||
SSERCFG .EQU SER_9600_8N1 ; SSER: SERIAL LINE CONFIG
|
||||
SSERSTATUS .EQU $FF ; SSER: STATUS PORT
|
||||
|
||||
@@ -4062,6 +4062,9 @@ HB_INITTBL:
|
||||
#IF (EZ80RTCENABLE)
|
||||
.DW EZ80RTC_INIT
|
||||
#ENDIF
|
||||
#IF (PCRTCENABLE)
|
||||
.DW PCRTC_INIT
|
||||
#ENDIF
|
||||
#IF (CPUFAM == CPU_EZ80)
|
||||
; INITALISE ONE OF THE SUPPORTED SYSTEM TIMER TICKS DRIVERS
|
||||
.DW EZ80_TMR_INIT
|
||||
@@ -8977,6 +8980,15 @@ SIZ_DS5RTC .EQU $ - ORG_DS5RTC
|
||||
MEMECHO " bytes.\n"
|
||||
#ENDIF
|
||||
;
|
||||
#IF (PCRTCENABLE)
|
||||
ORG_PCRTC .EQU $
|
||||
#INCLUDE "pcrtc.asm"
|
||||
SIZ_PCRTC .EQU $ - ORG_PCRTC
|
||||
MEMECHO "PCRTC occupies "
|
||||
MEMECHO SIZ_PCRTC
|
||||
MEMECHO " bytes.\n"
|
||||
#ENDIF
|
||||
;
|
||||
#IF (INTRTCENABLE)
|
||||
ORG_INTRTC .EQU $
|
||||
#INCLUDE "intrtc.asm"
|
||||
|
||||
@@ -431,6 +431,7 @@ RTCDEV_DS7 .EQU $04 ; DS1307 (I2C)
|
||||
RTCDEV_RP5 .EQU $05 ; RP5C01
|
||||
RTCDEV_DS5 .EQU $06 ; DS1305 (SPI)
|
||||
RTCDEV_EZ80 .EQU $07 ; EZ80 ON-CHIP RTC
|
||||
RTCDEV_PC .EQU $08 ; PC style parallel RTC
|
||||
;
|
||||
; DSKY DEVICE IDS
|
||||
;
|
||||
|
||||
368
Source/HBIOS/pcrtc.asm
Normal file
368
Source/HBIOS/pcrtc.asm
Normal file
@@ -0,0 +1,368 @@
|
||||
;
|
||||
;==================================================================================================
|
||||
; MC146818/DS1285/DS12885 PC style CLOCK DRIVER
|
||||
;==================================================================================================
|
||||
;
|
||||
PCRTC_BUFSIZ .EQU 6 ; SIX BYTE BUFFER (YYMMDDHHMMSS)
|
||||
|
||||
;; Addressing is via first writing the address byte to IO port PCRTC_BASE
|
||||
;; Then read from or write to PCRTC_DAT
|
||||
|
||||
;; PCRTC_BASE must be set in config files
|
||||
PCRTC_REG .EQU PCRTC_BASE
|
||||
PCRTC_DAT .EQU PCRTC_BASE + $01
|
||||
|
||||
REG_SEC .EQU $00
|
||||
REG_SEC_ALM .EQU $01
|
||||
REG_MIN .EQU $02
|
||||
REG_MIN_ALM .EQU $03
|
||||
REG_HOUR .EQU $04
|
||||
REG_HOUR_ALM .EQU $05
|
||||
REG_DOW .EQU $06 ; day of week
|
||||
REG_DAY .EQU $07
|
||||
REG_MONTH .EQU $08
|
||||
REG_YEAR .EQU $09
|
||||
REG_CTLA .EQU $0A
|
||||
REG_CTLB .EQU $0B
|
||||
REG_CTLC .EQU $0C
|
||||
REG_CTLD .EQU $0D
|
||||
|
||||
CTLA_VAL .EQU $2F
|
||||
CTLB_VAL .EQU $0A
|
||||
|
||||
PCRTC_NVBASE .EQU $10
|
||||
PCRTC_NVSIZE .EQU $30 ; 64 bytes in total is what DS1285 and MC146818 had
|
||||
|
||||
DEVECHO "PCRTC: IO="
|
||||
DEVECHO PCRTC_BASE
|
||||
DEVECHO "\n"
|
||||
|
||||
PCRTC_INIT:
|
||||
LD A, (RTC_DISPACT) ; RTC DISPATCHER ALREADY SET?
|
||||
OR A ; SET FLAGS
|
||||
RET NZ ; IF ALREADY ACTIVE, ABORT
|
||||
|
||||
CALL NEWLINE ; FORMATTING
|
||||
PRTS("PC RTC: $")
|
||||
|
||||
; PRINT RTC REGISTER NR PORT ADDRESS
|
||||
PRTS("IO=0x$") ; LABEL FOR IO ADDRESS
|
||||
LD A,PCRTC_REG ; GET IO ADDRESS
|
||||
CALL PRTHEXBYTE ; PRINT IT
|
||||
CALL PC_SPACE ; FORMATTING
|
||||
|
||||
; CHECK PRESENCE STATUS
|
||||
CALL PCRTC_DETECT ; HARDWARE DETECTION
|
||||
JR Z, PCRTC_INIT1 ; IF ZERO, ALL GOOD
|
||||
PRTS("NOT PRESENT$") ; NOT ZERO, H/W NOT PRESENT
|
||||
OR $FF ; SIGNAL FAILURE
|
||||
RET ; BAIL OUT
|
||||
|
||||
PCRTC_INIT1:
|
||||
CALL PCRTC_RDTIM
|
||||
|
||||
; DISPLAY CURRENT TIME
|
||||
LD HL, PCRTC_BCDBUF ; POINT TO BCD BUF
|
||||
CALL PRTDT
|
||||
;
|
||||
LD BC, PCRTC_DISPATCH
|
||||
CALL RTC_SETDISP
|
||||
;
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET
|
||||
;
|
||||
; DETECT RTC HARDWARE PRESENCE
|
||||
;
|
||||
PCRTC_DETECT:
|
||||
LD C, 0 ; NVRAM INDEX 0
|
||||
CALL PCRTC_GETBYT ; GET VALUE
|
||||
LD A, E ; TO ACCUM
|
||||
LD L, A ; SAVE IT
|
||||
XOR $FF ; FLIP ALL BITS
|
||||
LD E, A ; TO E
|
||||
LD C, 0 ; NVRAM INDEX 0
|
||||
CALL PCRTC_SETBYT ; WRITE IT
|
||||
LD C, 0 ; NVRAM INDEX 0
|
||||
CALL PCRTC_GETBYT ; GET VALUE
|
||||
LD A, L ; GET SAVED VALUE
|
||||
XOR $FF ; FLIP ALL BITS
|
||||
CP E ; COMPARE WITH VALUE READ
|
||||
LD A, 0 ; ASSUME OK
|
||||
JR Z, PCRTC_DETECT1 ; IF MATCH, GO AHEAD
|
||||
LD A, $FF ; ELSE STATUS IS ERROR
|
||||
|
||||
PCRTC_DETECT1:
|
||||
PUSH AF ; SAVE STATUS
|
||||
LD E, L ; GET SAVED VALUE
|
||||
LD C, 0 ; NVRAM INDEX 0
|
||||
CALL PCRTC_SETBYT ; SAVE IT
|
||||
POP AF ; RECOVER STATUS
|
||||
OR A ; SET FLAGS
|
||||
RET
|
||||
;
|
||||
; RTC DEVICE FUNCTION DISPATCH ENTRY
|
||||
; A: RESULT (OUT), 0=OK, Z=OK, NZ=ERR
|
||||
; B: FUNCTION (IN)
|
||||
;
|
||||
PCRTC_DISPATCH:
|
||||
LD A,B ; GET REQUESTED FUNCTION
|
||||
AND $0F ; ISOLATE SUB-FUNCTION
|
||||
JP Z,PCRTC_GETTIM ; GET TIME
|
||||
DEC A
|
||||
JP Z,PCRTC_SETTIM ; SET TIME
|
||||
DEC A
|
||||
JP Z,PCRTC_GETBYT ; GET NVRAM BYTE VALUE
|
||||
DEC A
|
||||
JP Z,PCRTC_SETBYT ; SET NVRAM BYTE VALUE
|
||||
DEC A
|
||||
JP Z,PCRTC_GETBLK ; GET NVRAM DATA BLOCK VALUES
|
||||
DEC A
|
||||
JP Z,PCRTC_SETBLK ; SET NVRAM DATA BLOCK VALUES
|
||||
DEC A
|
||||
JP Z,PCRTC_GETALM ; GET ALARM
|
||||
DEC A
|
||||
JP Z,PCRTC_SETALM ; SET ALARM
|
||||
DEC A
|
||||
JP Z,PCRTC_DEVICE ; REPORT RTC DEVICE INFO
|
||||
SYSCHKERR(ERR_NOFUNC)
|
||||
RET
|
||||
;
|
||||
; RTC GET NVRAM BYTE
|
||||
; C: INDEX
|
||||
; E: VALUE (OUTPUT)
|
||||
; A:0 IF OK, ERR_RANGE IF OUT OF RANGE
|
||||
;
|
||||
PCRTC_GETBYT:
|
||||
LD A, C
|
||||
CP PCRTC_NVSIZE
|
||||
JR NC, PCRTC_BADIDX
|
||||
|
||||
ADD A, PCRTC_NVBASE
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD E, A
|
||||
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET ; AND RETURN
|
||||
|
||||
PCRTC_BADIDX:
|
||||
LD E, 00
|
||||
LD A, ERR_RANGE
|
||||
RET
|
||||
;
|
||||
; RTC SET NVRAM BYTE
|
||||
; C: INDEX
|
||||
; E: VALUE
|
||||
; A:0 IF OK, ERR_RANGE IF OUT OF RANGE
|
||||
;
|
||||
PCRTC_SETBYT:
|
||||
LD A, C
|
||||
CP PCRTC_NVSIZE
|
||||
JR NC, PCRTC_BADIDX
|
||||
|
||||
ADD A, PCRTC_NVBASE
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, E
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET ; AND RETURN
|
||||
|
||||
|
||||
PCRTC_GETBLK:
|
||||
PCRTC_SETBLK:
|
||||
PCRTC_GETALM:
|
||||
PCRTC_SETALM:
|
||||
SYSCHKERR(ERR_NOTIMPL)
|
||||
RET
|
||||
;
|
||||
; RTC GET TIME
|
||||
; A: RESULT (OUT), 0=OK, Z=OK, NZ=ERR
|
||||
; HL: DATE/TIME BUFFER (OUT)
|
||||
; BUFFER FORMAT IS BCD: YYMMDDHHMMSS
|
||||
; 24 HOUR TIME FORMAT IS ASSUMED
|
||||
;
|
||||
PCRTC_GETTIM:
|
||||
; GET THE TIME INTO TEMP BUF
|
||||
PUSH HL ; SAVE PTR TO CALLERS BUFFER
|
||||
;
|
||||
CALL PCRTC_RDTIM
|
||||
|
||||
; NOW COPY TO REAL DESTINATION (INTERBANK SAFE)
|
||||
LD A,BID_BIOS ; COPY FROM BIOS BANK
|
||||
LD (HB_SRCBNK),A ; SET IT
|
||||
LD A,(HB_INVBNK) ; COPY TO CURRENT USER BANK
|
||||
LD (HB_DSTBNK),A ; SET IT
|
||||
LD HL,PCRTC_BCDBUF ; SOURCE ADR
|
||||
POP DE ; DEST ADR
|
||||
LD BC,PCRTC_BUFSIZ ; LENGTH
|
||||
CALL HB_BNKCPY ; COPY THE CLOCK DATA
|
||||
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET ; AND RETURN
|
||||
;
|
||||
;
|
||||
; RTC SET TIME
|
||||
; A: RESULT (OUT), 0=OK, Z=OK, NZ=ERR
|
||||
; HL: DATE/TIME BUFFER (IN)
|
||||
; BUFFER FORMAT IS BCD: YYMMDDHHMMSSWW
|
||||
; 24 HOUR TIME FORMAT IS ASSUMED
|
||||
;
|
||||
PCRTC_SETTIM:
|
||||
; COPY TO BCD BUF
|
||||
LD A,(HB_INVBNK) ; COPY FROM CURRENT USER BANK
|
||||
LD (HB_SRCBNK),A ; SET IT
|
||||
LD A,BID_BIOS ; COPY TO BIOS BANK
|
||||
LD (HB_DSTBNK),A ; SET IT
|
||||
LD DE,PCRTC_BCDBUF ; DEST ADR
|
||||
LD BC,PCRTC_BUFSIZ ; LENGTH
|
||||
CALL HB_BNKCPY ; COPY THE RPC DATA
|
||||
;
|
||||
LD A, REG_CTLA ; Set Ctl Reg A
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, CTLA_VAL
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_CTLB ; Set Ctl Reg B
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, CTLB_VAL|0x80 ; Set the SET bit to stop updates
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_SEC ; Set seconds
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_SS)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_MIN ; Set minutes
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_MM)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_HOUR ; Set hours
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_HH)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_DAY ; Set date
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_DT)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_MONTH ; Set month
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_MO)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_YEAR ; Set year
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, (PCRTC_YR)
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
LD A, REG_CTLB ; Set Ctl Reg B
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
LD A, CTLB_VAL ; Reset the SET bit to start clock
|
||||
EZ80_IO
|
||||
OUT (PCRTC_DAT), A
|
||||
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET ; AND RETURN
|
||||
;
|
||||
; REPORT RTC DEVICE INFO
|
||||
;
|
||||
PCRTC_DEVICE:
|
||||
LD D,RTCDEV_PC ; D := DEVICE TYPE
|
||||
LD E,0 ; E := PHYSICAL DEVICE NUMBER
|
||||
LD H,0 ; H := 0, DRIVER HAS NO MODES
|
||||
LD L, PCRTC_BASE ; L := 0, NO I/O ADDRESS
|
||||
XOR A ; SIGNAL SUCCESS
|
||||
RET
|
||||
|
||||
;
|
||||
; READ OUT THE TIME
|
||||
PCRTC_RDTIM:
|
||||
;; Need to wait until update-in-progress flag is reset
|
||||
LD A, REG_CTLA ; Set Ctl Reg A
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
BIT 7, A
|
||||
JP NZ, PCRTC_RDTIM ; Jump back if update in progress.
|
||||
|
||||
LD A, REG_SEC ; Set seconds
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_SS), A
|
||||
|
||||
LD A, REG_MIN ; Set minutes
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_MM), A
|
||||
|
||||
LD A, REG_HOUR ; Set hours
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_HH), A
|
||||
|
||||
LD A, REG_DAY ; Set day
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_DT), A
|
||||
|
||||
LD A, REG_MONTH ; Set month
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_MO), A
|
||||
|
||||
LD A, REG_YEAR ; Set year
|
||||
EZ80_IO
|
||||
OUT (PCRTC_REG), A
|
||||
EZ80_IO
|
||||
IN A, (PCRTC_DAT)
|
||||
LD (PCRTC_YR), A
|
||||
|
||||
RET
|
||||
|
||||
|
||||
;
|
||||
; REGISTER EXTRACTED VALUES
|
||||
;
|
||||
PCRTC_BCDBUF:
|
||||
PCRTC_YR .DB $25
|
||||
PCRTC_MO .DB $01
|
||||
PCRTC_DT .DB $01
|
||||
PCRTC_HH .DB $00
|
||||
PCRTC_MM .DB $00
|
||||
PCRTC_SS .DB $00
|
||||
|
||||
@@ -1,206 +1,207 @@
|
||||
|
||||
FLASH4 (c) 2014-2020 William R Sowerbutts <will@sowerbutts.com>
|
||||
http://sowerbutts.com/8bit/
|
||||
|
||||
= Supported machines =
|
||||
|
||||
FLASH4 has been tested and confirmed working on:
|
||||
* N8VEM SBCv2
|
||||
* N8VEM SBCv2 MegaFlash
|
||||
* N8VEM N8-2312
|
||||
* N8VEM Mark IV SBC
|
||||
* DX-Designs P112
|
||||
* ZETA SBC v1
|
||||
* ZETA SBC v2
|
||||
* RC2014 with 512KB ROM 512KB RAM module
|
||||
|
||||
It should work on many other machines that run RomWBW or UNA BIOS. If you test
|
||||
it on another machine please let me know the outcome.
|
||||
|
||||
FLASH030 (also included) is a Linux version of the same software. It is
|
||||
targetted at my 68030 machine but should be very easy to port to other
|
||||
machines. It expects a machine with a larger address space, and thus omits much
|
||||
of the bank switching and other tricks required on Z80 platforms.
|
||||
|
||||
|
||||
= Introduction =
|
||||
|
||||
FLASH4 is a CP/M program which can read, write and verify Flash ROM contents to
|
||||
or from an image file stored on a CP/M filesystem. It is intended for in-system
|
||||
programming of Flash ROM chips on Z80 and Z180 systems.
|
||||
|
||||
FLASH4 aims to support a range of Flash ROM chips and machines. Ideally I would
|
||||
like to support all Z80/Z180 machines. If FLASH4 does not support your machine
|
||||
please let me know and I will try to add support.
|
||||
|
||||
When writing to the Flash ROM, FLASH4 will only reprogram the sectors whose
|
||||
contents have changed. This helps to reduce wear on the flash memory, makes the
|
||||
reprogram operation faster, and reduces the risk of leaving the system
|
||||
unbootable if power fails during a reprogramming operation. FLASH4 always
|
||||
performs a full verify operation after writing to the chip to confirm that the
|
||||
correct data has been loaded.
|
||||
|
||||
FLASH4 is reasonably fast. Reprogramming and verifying every sector on a 512KB
|
||||
SST 39F040 chip takes 21 seconds on my Mark IV SBC, versus 45 seconds to
|
||||
perform the same task using a USB MiniPro TL866 EEPROM programmer under Linux
|
||||
on my PC. If only a subset of sectors require reprogramming FLASH4 will be
|
||||
even faster.
|
||||
|
||||
FLASH4 works with binary ROM image files, it does not support Intel Hex format
|
||||
files. Hex files can be easily converted to or from binaries using "hex2bin" or
|
||||
the "srec_cat" program from SRecord:
|
||||
|
||||
$ srec_cat image.hex -intel -fill 0xFF 0 0x80000 -output image.bin -binary
|
||||
$ srec_cat image.bin -binary -output image.hex -intel
|
||||
|
||||
FLASH4 version 1.3 introduces support for programming multiple flash chips.
|
||||
Some machines use multiple flash chips for larger ROM capacity, for example the
|
||||
"Megaflash" version of the Retrobrew Computers SBC-V2 contains two 512KB flash
|
||||
ROMs for a total of 1MB ROM. All flash chips in the system must be of the same
|
||||
type.
|
||||
|
||||
FLASH4 can use several different methods to access the Flash ROM chips. The
|
||||
best available method is determined automatically at run time. Alternatively
|
||||
you may provide a command-line option to force the use of a specific method.
|
||||
|
||||
FLASH4 will detect the presence of RomWBW, UNA BIOS or P112 B/P BIOS and use
|
||||
the bank switching methods they provide to map in the flash memory.
|
||||
|
||||
If no bank switching method can be auto-detected, and the system has a Z180
|
||||
CPU, FLASH4 will use the Z180 DMA engine to access the Flash ROM chip. This
|
||||
does not require any bank switching but it is slower and will not work on all
|
||||
platforms.
|
||||
|
||||
Z180 DMA access requires the flash ROM to be linearly mapped into the lower
|
||||
region of physical memory, as it is on the Mark IV SBC (for example). The
|
||||
N8-2312 has additional memory mapping hardware, consequently Z180 DMA access on
|
||||
the N8-2312 is NOT SUPPORTED and if forced will corrupt the contents of RAM;
|
||||
use one of the supported bank switching methods instead.
|
||||
|
||||
Z180 DMA access requires the Z180 CPU I/O base control register configured to
|
||||
locate the internal I/O addresses at 0x40 (ie ICR bits IOA7, IOA6 = 0, 1).
|
||||
|
||||
|
||||
= Usage =
|
||||
|
||||
The three basic operations are:
|
||||
|
||||
FLASH4 WRITE filename [options]
|
||||
|
||||
FLASH4 VERIFY filename [options]
|
||||
|
||||
FLASH4 READ filename [options]
|
||||
|
||||
The WRITE command will rewrite the flash ROM contents from the named file. The
|
||||
file size must exactly match the size of the ROM chip. After the WRITE
|
||||
operation, a VERIFY operation will be performed automatically.
|
||||
|
||||
The VERIFY command will read out the flash ROM contents and report if it
|
||||
matches the contents of the named file. The file size must exactly match the
|
||||
size of the ROM chip.
|
||||
|
||||
The READ command will read out the entire flash ROM contents and write it to
|
||||
the named file.
|
||||
|
||||
FLASH4 will auto-detect most parameters so additional options should not
|
||||
normally be required.
|
||||
|
||||
The "/V" (verbose) option makes FLASH4 print one line per sector, giving a
|
||||
detailed log of what it did.
|
||||
|
||||
The "/P" or "/PARTIAL" option can be used if your ROM chip is larger than the
|
||||
image you wish to write and you only want to reprogram part of it. To avoid
|
||||
accidentally flashing the wrong file, the image file must be an exact multiple
|
||||
of 32KB in length. The portion of the ROM not occupied by the image file is
|
||||
left either unmodified or erased.
|
||||
|
||||
The "/ROM" option can be used when you are using an ROM/EPROM/EEPROM chip which
|
||||
cannot be programmed in-system and FLASH4 cannot recognise it. Only the "READ"
|
||||
and "VERIFY" commands are supported with this option. This mode assumes a 512K
|
||||
ROM is fitted, smaller ROMs will be treated as a 512KB ROM with the data
|
||||
repeated multiple times.
|
||||
|
||||
One of the following optional command line arguments may be specified at the
|
||||
end of the command line to force FLASH4 to use a particular method to access
|
||||
the flash ROM chip:
|
||||
|
||||
BIOS interfaces:
|
||||
/ROMWBW For ROMWBW BIOS version 2.6 and later
|
||||
/ROMWBWOLD For ROMWBW BIOS version 2.5 and earlier
|
||||
/UNABIOS For UNA BIOS
|
||||
|
||||
Direct hardware interfaces:
|
||||
/Z180DMA For Z180 DMA
|
||||
/P112 For DX-Designs P112
|
||||
/N8VEMSBC For N8VEM SBC (v1, v2), Zeta (v1) SBC
|
||||
|
||||
If no option is specified FLASH4 attempts to determine the best available
|
||||
method automatically.
|
||||
|
||||
If RomWBW 2.6+ is in use, and correctly configured, then multiple flash chips
|
||||
can be detected automatically. Multiple chip operation can also be manually
|
||||
enabled using the command line options "/1", "/2", "/3" etc up to "/9" to
|
||||
specify the number of flash chips to program. All flash chips in the system
|
||||
must be of the same type.
|
||||
|
||||
|
||||
= Supported flash memory chips =
|
||||
|
||||
FLASH4 will interrogate your flash ROM chip to identify it automatically.
|
||||
|
||||
FLASH4 does not support setting or resetting the protection bits on individual
|
||||
sectors within Flash ROM devices. If your Flash ROM chip has protected sectors
|
||||
you will need to unprotect them by other means before FLASH4 can erase and
|
||||
reprogram them.
|
||||
|
||||
AT29C series chips employ an optional "software data protection" feature. This
|
||||
is supported by FLASH4 and is left activated after programming the chip to
|
||||
prevent accidental reprogramming of sectors.
|
||||
|
||||
The following chips are fully supported and will be programmed sector by
|
||||
sector:
|
||||
|
||||
AMIC A29010B
|
||||
AMIC A29040B
|
||||
Atmel AT29C010
|
||||
Atmel AT29C020
|
||||
Atmel AT29C040
|
||||
Atmel AT29C512
|
||||
Atmel AT29F010
|
||||
Atmel AT29F040
|
||||
Macronix MX29F040
|
||||
SST 39F010
|
||||
SST 39F020
|
||||
SST 39F040
|
||||
SST M29F010
|
||||
SST M29F040
|
||||
|
||||
The following chips are supported, but have unequal sector sizes, so FLASH4
|
||||
will only erase and reprogram the entire chip at once:
|
||||
|
||||
Atmel AT49F001N
|
||||
Atmel AT49F001NT
|
||||
Atmel AT49F002N
|
||||
Atmel AT49F002NT
|
||||
Atmel AT49F040
|
||||
|
||||
|
||||
= Compiling =
|
||||
|
||||
The software is written in a mix of C and assembler. It builds using the SDCC
|
||||
toolchain and the SRecord tools. SDCC 3.6 and 3.8 have been tested. A Makefile
|
||||
is provided to build the executable in Linux and I imagine it can be easily
|
||||
modified to build in Windows.
|
||||
|
||||
You may need to adjust the path to the SDCC libraries in the Makefile if your
|
||||
installation is not in /usr/local or /usr
|
||||
|
||||
|
||||
= License =
|
||||
|
||||
FLASH4 is licensed under the The GNU General Public License version 3 (see
|
||||
included "LICENSE.txt" file).
|
||||
|
||||
FLASH4 is provided with NO WARRANTY. In no event will the author be liable for
|
||||
any damages. Use of this program is at your own risk. May cause rifts in space
|
||||
and time.
|
||||
|
||||
FLASH4 (c) 2014-2020 William R Sowerbutts <will@sowerbutts.com>
|
||||
http://sowerbutts.com/8bit/
|
||||
|
||||
= Supported machines =
|
||||
|
||||
FLASH4 has been tested and confirmed working on:
|
||||
* N8VEM SBCv2
|
||||
* N8VEM SBCv2 MegaFlash
|
||||
* N8VEM N8-2312
|
||||
* N8VEM Mark IV SBC
|
||||
* DX-Designs P112
|
||||
* ZETA SBC v1
|
||||
* ZETA SBC v2
|
||||
* RC2014 with 512KB ROM 512KB RAM module
|
||||
|
||||
It should work on many other machines that run RomWBW or UNA BIOS. If you test
|
||||
it on another machine please let me know the outcome.
|
||||
|
||||
FLASH030 (also included) is a Linux version of the same software. It is
|
||||
targetted at my 68030 machine but should be very easy to port to other
|
||||
machines. It expects a machine with a larger address space, and thus omits much
|
||||
of the bank switching and other tricks required on Z80 platforms.
|
||||
|
||||
|
||||
= Introduction =
|
||||
|
||||
FLASH4 is a CP/M program which can read, write and verify Flash ROM contents to
|
||||
or from an image file stored on a CP/M filesystem. It is intended for in-system
|
||||
programming of Flash ROM chips on Z80 and Z180 systems.
|
||||
|
||||
FLASH4 aims to support a range of Flash ROM chips and machines. Ideally I would
|
||||
like to support all Z80/Z180 machines. If FLASH4 does not support your machine
|
||||
please let me know and I will try to add support.
|
||||
|
||||
When writing to the Flash ROM, FLASH4 will only reprogram the sectors whose
|
||||
contents have changed. This helps to reduce wear on the flash memory, makes the
|
||||
reprogram operation faster, and reduces the risk of leaving the system
|
||||
unbootable if power fails during a reprogramming operation. FLASH4 always
|
||||
performs a full verify operation after writing to the chip to confirm that the
|
||||
correct data has been loaded.
|
||||
|
||||
FLASH4 is reasonably fast. Reprogramming and verifying every sector on a 512KB
|
||||
SST 39F040 chip takes 21 seconds on my Mark IV SBC, versus 45 seconds to
|
||||
perform the same task using a USB MiniPro TL866 EEPROM programmer under Linux
|
||||
on my PC. If only a subset of sectors require reprogramming FLASH4 will be
|
||||
even faster.
|
||||
|
||||
FLASH4 works with binary ROM image files, it does not support Intel Hex format
|
||||
files. Hex files can be easily converted to or from binaries using "hex2bin" or
|
||||
the "srec_cat" program from SRecord:
|
||||
|
||||
$ srec_cat image.hex -intel -fill 0xFF 0 0x80000 -output image.bin -binary
|
||||
$ srec_cat image.bin -binary -output image.hex -intel
|
||||
|
||||
FLASH4 version 1.3 introduces support for programming multiple flash chips.
|
||||
Some machines use multiple flash chips for larger ROM capacity, for example the
|
||||
"Megaflash" version of the Retrobrew Computers SBC-V2 contains two 512KB flash
|
||||
ROMs for a total of 1MB ROM. All flash chips in the system must be of the same
|
||||
type.
|
||||
|
||||
FLASH4 can use several different methods to access the Flash ROM chips. The
|
||||
best available method is determined automatically at run time. Alternatively
|
||||
you may provide a command-line option to force the use of a specific method.
|
||||
|
||||
FLASH4 will detect the presence of RomWBW, UNA BIOS or P112 B/P BIOS and use
|
||||
the bank switching methods they provide to map in the flash memory.
|
||||
|
||||
If no bank switching method can be auto-detected, and the system has a Z180
|
||||
CPU, FLASH4 will use the Z180 DMA engine to access the Flash ROM chip. This
|
||||
does not require any bank switching but it is slower and will not work on all
|
||||
platforms.
|
||||
|
||||
Z180 DMA access requires the flash ROM to be linearly mapped into the lower
|
||||
region of physical memory, as it is on the Mark IV SBC (for example). The
|
||||
N8-2312 has additional memory mapping hardware, consequently Z180 DMA access on
|
||||
the N8-2312 is NOT SUPPORTED and if forced will corrupt the contents of RAM;
|
||||
use one of the supported bank switching methods instead.
|
||||
|
||||
Z180 DMA access requires the Z180 CPU I/O base control register configured to
|
||||
locate the internal I/O addresses at 0x40 (ie ICR bits IOA7, IOA6 = 0, 1).
|
||||
|
||||
|
||||
= Usage =
|
||||
|
||||
The three basic operations are:
|
||||
|
||||
FLASH4 WRITE filename [options]
|
||||
|
||||
FLASH4 VERIFY filename [options]
|
||||
|
||||
FLASH4 READ filename [options]
|
||||
|
||||
The WRITE command will rewrite the flash ROM contents from the named file. The
|
||||
file size must exactly match the size of the ROM chip. After the WRITE
|
||||
operation, a VERIFY operation will be performed automatically.
|
||||
|
||||
The VERIFY command will read out the flash ROM contents and report if it
|
||||
matches the contents of the named file. The file size must exactly match the
|
||||
size of the ROM chip.
|
||||
|
||||
The READ command will read out the entire flash ROM contents and write it to
|
||||
the named file.
|
||||
|
||||
FLASH4 will auto-detect most parameters so additional options should not
|
||||
normally be required.
|
||||
|
||||
The "/V" (verbose) option makes FLASH4 print one line per sector, giving a
|
||||
detailed log of what it did.
|
||||
|
||||
The "/P" or "/PARTIAL" option can be used if your ROM chip is larger than the
|
||||
image you wish to write and you only want to reprogram part of it. To avoid
|
||||
accidentally flashing the wrong file, the image file must be an exact multiple
|
||||
of 32KB in length. The portion of the ROM not occupied by the image file is
|
||||
left either unmodified or erased.
|
||||
|
||||
The "/ROM" option can be used when you are using an ROM/EPROM/EEPROM chip which
|
||||
cannot be programmed in-system and FLASH4 cannot recognise it. Only the "READ"
|
||||
and "VERIFY" commands are supported with this option. This mode assumes a 512K
|
||||
ROM is fitted, smaller ROMs will be treated as a 512KB ROM with the data
|
||||
repeated multiple times.
|
||||
|
||||
One of the following optional command line arguments may be specified at the
|
||||
end of the command line to force FLASH4 to use a particular method to access
|
||||
the flash ROM chip:
|
||||
|
||||
BIOS interfaces:
|
||||
/ROMWBW For ROMWBW BIOS version 2.6 and later
|
||||
/ROMWBWOLD For ROMWBW BIOS version 2.5 and earlier
|
||||
/UNABIOS For UNA BIOS
|
||||
|
||||
Direct hardware interfaces:
|
||||
/Z180DMA For Z180 DMA
|
||||
/P112 For DX-Designs P112
|
||||
/N8VEMSBC For N8VEM SBC (v1, v2), Zeta (v1) SBC
|
||||
|
||||
If no option is specified FLASH4 attempts to determine the best available
|
||||
method automatically.
|
||||
|
||||
If RomWBW 2.6+ is in use, and correctly configured, then multiple flash chips
|
||||
can be detected automatically. Multiple chip operation can also be manually
|
||||
enabled using the command line options "/1", "/2", "/3" etc up to "/9" to
|
||||
specify the number of flash chips to program. All flash chips in the system
|
||||
must be of the same type.
|
||||
|
||||
|
||||
= Supported flash memory chips =
|
||||
|
||||
FLASH4 will interrogate your flash ROM chip to identify it automatically.
|
||||
|
||||
FLASH4 does not support setting or resetting the protection bits on individual
|
||||
sectors within Flash ROM devices. If your Flash ROM chip has protected sectors
|
||||
you will need to unprotect them by other means before FLASH4 can erase and
|
||||
reprogram them.
|
||||
|
||||
AT29C series chips employ an optional "software data protection" feature. This
|
||||
is supported by FLASH4 and is left activated after programming the chip to
|
||||
prevent accidental reprogramming of sectors.
|
||||
|
||||
The following chips are fully supported and will be programmed sector by
|
||||
sector:
|
||||
|
||||
AMIC A29010B
|
||||
AMIC A29040B
|
||||
Atmel AT29C010
|
||||
Atmel AT29C020
|
||||
Atmel AT29C040
|
||||
Atmel AT29C512
|
||||
Atmel AT29F010
|
||||
Atmel AT29F040
|
||||
Macronix MX29F040
|
||||
SST 39F010
|
||||
SST 39F020
|
||||
SST 39F040
|
||||
SST M29F010
|
||||
SST M29F040
|
||||
|
||||
The following chips are supported, but have unequal sector sizes, so FLASH4
|
||||
will only erase and reprogram the entire chip at once:
|
||||
|
||||
Atmel AT49F001N
|
||||
Atmel AT49F001NT
|
||||
Atmel AT49F002N
|
||||
Atmel AT49F002NT
|
||||
Atmel AT49F040
|
||||
|
||||
|
||||
= Compiling =
|
||||
|
||||
The software is written in a mix of C and assembler. It builds using the SDCC
|
||||
toolchain and the SRecord tools. SDCC 3.6 and 3.8 have been tested. A Makefile
|
||||
is provided to build the executable in Linux and I imagine it can be easily
|
||||
modified to build in Windows.
|
||||
|
||||
You may need to adjust the path to the SDCC libraries in the Makefile if your
|
||||
installation is not in /usr/local or /usr
|
||||
|
||||
|
||||
= License =
|
||||
|
||||
FLASH4 is licensed under the The GNU General Public License version 3 (see
|
||||
included "LICENSE.txt" file).
|
||||
|
||||
FLASH4 is provided with NO WARRANTY. In no event will the author be liable for
|
||||
any damages. Use of this program is at your own risk. May cause rifts in space
|
||||
and time.
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
===== HI-TECH Z80 CP/M C compiler V3.09-17 =====
|
||||
|
||||
The HI-TECH C Compiler is a set of software which
|
||||
The HI-TECH C Compiler is a set of software which
|
||||
translates programs written in the C language to executable
|
||||
machine code programs. Versions are available which compile
|
||||
programs for operation under the host operating system, or
|
||||
which produce programs for execution in embedded systems
|
||||
without an operating system.
|
||||
|
||||
This is the Mar 21, 2023 update 17 released by Tony Nicholson who currently
|
||||
maintains HI-TECH C at https://github.com/agn453/HI-TECH-Z80-C
|
||||
This is the Jun 2, 2025 update 19 released by Tony Nicholson who currently
|
||||
maintains HI-TECH C at https://github.com/agn453/HI-TECH-Z80-C.
|
||||
|
||||
The manual is available in the Doc/Language directory,
|
||||
HI-TECH Z80 C Compiler Manual.txt
|
||||
|
||||
A good blog post about the HI-TECH C Compiler is available at
|
||||
https://techtinkering.com/2008/10/22/installing-the-hi-tech-z80-c-compiler-for-cpm/
|
||||
https://techtinkering.com/2008/10/22/installing-the-hi-tech-z80-c-compiler-for-cpm/.
|
||||
|
||||
== License ==
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,8 +2,17 @@
|
||||
#define _HTC_STDIO_H
|
||||
|
||||
/*
|
||||
* STDIO.H Modified version from Tesseract vol 91
|
||||
* STDIO.H HI-TECH C standard I/O for V3.09-xx
|
||||
*
|
||||
* This version incorporates changes to stdio routines
|
||||
* resulting from backporting features from V4.11
|
||||
*/
|
||||
|
||||
#define _HTC_VERSION "3.09-19"
|
||||
#define _HTC_MAJOR 3
|
||||
#define _HTC_MINOR 9
|
||||
#define _HTC_REV 19
|
||||
|
||||
#if z80
|
||||
#define BUFSIZ 512
|
||||
#define _NFILE 8
|
||||
@@ -12,18 +21,27 @@
|
||||
#define _NFILE 20
|
||||
#endif z80
|
||||
|
||||
#ifndef _STDDEF
|
||||
typedef int ptrdiff_t;
|
||||
typedef unsigned size_t;
|
||||
#define _STDDEF
|
||||
#define offsetof(ty, mem) ((int)&(((ty *)0)->mem))
|
||||
#endif _STDDEF
|
||||
|
||||
#ifndef FILE
|
||||
#define uchar unsigned char
|
||||
#define uchar unsigned char
|
||||
|
||||
extern struct _iobuf
|
||||
{
|
||||
char *_ptr;
|
||||
int _cnt;
|
||||
char *_base;
|
||||
unsigned short _flag;
|
||||
char _file;
|
||||
char *_ptr;
|
||||
int _cnt;
|
||||
char *_base;
|
||||
unsigned short _flag;
|
||||
char _file;
|
||||
size_t _size;
|
||||
} _iob[_NFILE];
|
||||
|
||||
#define FILE struct _iobuf
|
||||
#endif FILE
|
||||
|
||||
#ifndef SEEK_SET
|
||||
@@ -32,25 +50,26 @@ extern struct _iobuf
|
||||
#define SEEK_END 2
|
||||
#endif
|
||||
|
||||
#define _IOREAD 01
|
||||
#define _IOWRT 02
|
||||
#define _IORW 03
|
||||
#define _IONBF 04
|
||||
#define _IOMYBUF 010
|
||||
#define _IOEOF 020
|
||||
#define _IOERR 040
|
||||
#define _IOSTRG 0100
|
||||
#define _IOBINARY 0200
|
||||
/* New flags */
|
||||
#define _IODIRN 01000 /* Set if writing to a R/W file */
|
||||
#define _IOAPPEND 02000 /* Set if in append mode */
|
||||
#define _IOWROTE 04000 /* Write occurred since last seek */
|
||||
/* I/O status flag word bits */
|
||||
#define _IOREAD 01 /* Allow file reading */
|
||||
#define _IOWRT 02 /* Allow file writing */
|
||||
#define _IORW 03 /* Mask for reading or writing */
|
||||
#define _IONBF 04 /* Not being buffered */
|
||||
#define _IOMYBUF 010 /* Using buffer */
|
||||
#define _IOEOF 020 /* At end-of-file */
|
||||
#define _IOERR 040 /* An I/O error has occurred */
|
||||
#define _IOSTRG 0100 /* End of string reached */
|
||||
#define _IOBINARY 0200 /* Binary mode */
|
||||
#define _IOLBF 0400 /* Using line buffering */
|
||||
#define _IODIRN 01000 /* Direction - writing to a R/W file */
|
||||
#define _IOAPPEND 02000 /* Append mode */
|
||||
#define _IOSEEKED 04000 /* A seek has occurred since last write */
|
||||
#define _IOFBF 010000 /* Using full buffering */
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
#endif NULL
|
||||
|
||||
#define FILE struct _iobuf
|
||||
#define EOF (-1)
|
||||
|
||||
#define stdin (&_iob[0])
|
||||
@@ -79,9 +98,6 @@ extern struct _iobuf
|
||||
#define clrerr(p) p->_flag &= ~_IOERR
|
||||
#define clreof(p) p->_flag &= ~_IOEOF
|
||||
|
||||
#define L_tmpnam 34 /* max length of temporary names */
|
||||
#define L_TMPNAM (L_tmpnam) /* max length of temporary names */
|
||||
|
||||
extern int fclose(FILE *);
|
||||
extern int fflush(FILE *);
|
||||
extern int fgetc(FILE *);
|
||||
@@ -96,7 +112,8 @@ extern int fread(void *, unsigned, unsigned, FILE *);
|
||||
extern int fwrite(void *, unsigned, unsigned, FILE *);
|
||||
extern int fseek(FILE *, long, int);
|
||||
extern int rewind(FILE *);
|
||||
extern int setbuf(FILE *, char *);
|
||||
extern void setbuf(FILE *, char *);
|
||||
extern int setvbuf(FILE *, char *, int, size_t);
|
||||
extern int printf(char *, ...);
|
||||
extern int fprintf(FILE *, char *, ...);
|
||||
extern int sprintf(char *, char *, ...);
|
||||
@@ -111,5 +128,5 @@ extern long ftell(FILE *);
|
||||
extern char *fgets(char *, int, FILE *);
|
||||
extern char *_bufallo(void);
|
||||
|
||||
#endif
|
||||
|
||||
#endif _HTC_STDIO_H
|
||||
|
||||
@@ -34,6 +34,7 @@ extern char **_getargs(char *, char *);
|
||||
extern int _argc_;
|
||||
extern int inp(int);
|
||||
extern void outp(int, int);
|
||||
extern void * sbrk(size_t);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,8 +2,17 @@
|
||||
#define _HTC_STDIO_H
|
||||
|
||||
/*
|
||||
* STDIO.H Modified version from Tesseract vol 91
|
||||
* STDIO.H HI-TECH C standard I/O for V3.09-xx
|
||||
*
|
||||
* This version incorporates changes to stdio routines
|
||||
* resulting from backporting features from V4.11
|
||||
*/
|
||||
|
||||
#define _HTC_VERSION "3.09-19"
|
||||
#define _HTC_MAJOR 3
|
||||
#define _HTC_MINOR 9
|
||||
#define _HTC_REV 19
|
||||
|
||||
#if z80
|
||||
#define BUFSIZ 512
|
||||
#define _NFILE 8
|
||||
@@ -12,18 +21,27 @@
|
||||
#define _NFILE 20
|
||||
#endif z80
|
||||
|
||||
#ifndef _STDDEF
|
||||
typedef int ptrdiff_t;
|
||||
typedef unsigned size_t;
|
||||
#define _STDDEF
|
||||
#define offsetof(ty, mem) ((int)&(((ty *)0)->mem))
|
||||
#endif _STDDEF
|
||||
|
||||
#ifndef FILE
|
||||
#define uchar unsigned char
|
||||
#define uchar unsigned char
|
||||
|
||||
extern struct _iobuf
|
||||
{
|
||||
char *_ptr;
|
||||
int _cnt;
|
||||
char *_base;
|
||||
unsigned short _flag;
|
||||
char _file;
|
||||
char *_ptr;
|
||||
int _cnt;
|
||||
char *_base;
|
||||
unsigned short _flag;
|
||||
char _file;
|
||||
size_t _size;
|
||||
} _iob[_NFILE];
|
||||
|
||||
#define FILE struct _iobuf
|
||||
#endif FILE
|
||||
|
||||
#ifndef SEEK_SET
|
||||
@@ -32,25 +50,26 @@ extern struct _iobuf
|
||||
#define SEEK_END 2
|
||||
#endif
|
||||
|
||||
#define _IOREAD 01
|
||||
#define _IOWRT 02
|
||||
#define _IORW 03
|
||||
#define _IONBF 04
|
||||
#define _IOMYBUF 010
|
||||
#define _IOEOF 020
|
||||
#define _IOERR 040
|
||||
#define _IOSTRG 0100
|
||||
#define _IOBINARY 0200
|
||||
/* New flags */
|
||||
#define _IODIRN 01000 /* Set if writing to a R/W file */
|
||||
#define _IOAPPEND 02000 /* Set if in append mode */
|
||||
#define _IOWROTE 04000 /* Write occurred since last seek */
|
||||
/* I/O status flag word bits */
|
||||
#define _IOREAD 01 /* Allow file reading */
|
||||
#define _IOWRT 02 /* Allow file writing */
|
||||
#define _IORW 03 /* Mask for reading or writing */
|
||||
#define _IONBF 04 /* Not being buffered */
|
||||
#define _IOMYBUF 010 /* Using buffer */
|
||||
#define _IOEOF 020 /* At end-of-file */
|
||||
#define _IOERR 040 /* An I/O error has occurred */
|
||||
#define _IOSTRG 0100 /* End of string reached */
|
||||
#define _IOBINARY 0200 /* Binary mode */
|
||||
#define _IOLBF 0400 /* Using line buffering */
|
||||
#define _IODIRN 01000 /* Direction - writing to a R/W file */
|
||||
#define _IOAPPEND 02000 /* Append mode */
|
||||
#define _IOSEEKED 04000 /* A seek has occurred since last write */
|
||||
#define _IOFBF 010000 /* Using full buffering */
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
#endif NULL
|
||||
|
||||
#define FILE struct _iobuf
|
||||
#define EOF (-1)
|
||||
|
||||
#define stdin (&_iob[0])
|
||||
@@ -79,9 +98,6 @@ extern struct _iobuf
|
||||
#define clrerr(p) p->_flag &= ~_IOERR
|
||||
#define clreof(p) p->_flag &= ~_IOEOF
|
||||
|
||||
#define L_tmpnam 34 /* max length of temporary names */
|
||||
#define L_TMPNAM (L_tmpnam) /* max length of temporary names */
|
||||
|
||||
extern int fclose(FILE *);
|
||||
extern int fflush(FILE *);
|
||||
extern int fgetc(FILE *);
|
||||
@@ -96,7 +112,8 @@ extern int fread(void *, unsigned, unsigned, FILE *);
|
||||
extern int fwrite(void *, unsigned, unsigned, FILE *);
|
||||
extern int fseek(FILE *, long, int);
|
||||
extern int rewind(FILE *);
|
||||
extern int setbuf(FILE *, char *);
|
||||
extern void setbuf(FILE *, char *);
|
||||
extern int setvbuf(FILE *, char *, int, size_t);
|
||||
extern int printf(char *, ...);
|
||||
extern int fprintf(FILE *, char *, ...);
|
||||
extern int sprintf(char *, char *, ...);
|
||||
@@ -111,5 +128,5 @@ extern long ftell(FILE *);
|
||||
extern char *fgets(char *, int, FILE *);
|
||||
extern char *_bufallo(void);
|
||||
|
||||
#endif
|
||||
|
||||
#endif _HTC_STDIO_H
|
||||
|
||||
@@ -34,6 +34,7 @@ extern char **_getargs(char *, char *);
|
||||
extern int _argc_;
|
||||
extern int inp(int);
|
||||
extern void outp(int, int);
|
||||
extern void * sbrk(size_t);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,339 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
|
||||
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.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
|
||||
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.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
|
||||
@@ -1,63 +1,63 @@
|
||||
#
|
||||
# Add the ReadMe document
|
||||
#
|
||||
d_z3plus/ReadMe.txt 0:
|
||||
#
|
||||
# Add files from CPM3 build
|
||||
#
|
||||
../CPM3/cpmldr.com 0:
|
||||
../CPM3/cpmldr.sys 0:
|
||||
../CPM3/ccp.com 0:
|
||||
../CPM3/gencpm.com 0:
|
||||
../CPM3/genres.dat 0:
|
||||
../CPM3/genbnk.dat 0:
|
||||
../CPM3/bios3.spr 0:
|
||||
../CPM3/bnkbios3.spr 0:
|
||||
../CPM3/bdos3.spr 0:
|
||||
../CPM3/bnkbdos3.spr 0:
|
||||
../CPM3/resbdos3.spr 0:
|
||||
../CPM3/cpm3res.sys 0:
|
||||
../CPM3/cpm3bnk.sys 0:
|
||||
../CPM3/gencpm.dat 0:
|
||||
../CPM3/cpm3.sys 0:
|
||||
../CPM3/readme.1st 0:
|
||||
../CPM3/cpm3fix.pat 0:
|
||||
#
|
||||
# Include CP/M 3 files
|
||||
#
|
||||
d_cpm3/u0/*.COM 15:
|
||||
d_cpm3/u0/SUBMIT.COM 0:
|
||||
d_cpm3/u0/HELP.HLP 0:
|
||||
#
|
||||
# Add RomWBW utilities
|
||||
#
|
||||
../../Binary/Apps/assign.com 15:
|
||||
../../Binary/Apps/cpuspd.com 15:
|
||||
../../Binary/Apps/reboot.com 15:
|
||||
../../Binary/Apps/fat.com 15:
|
||||
../../Binary/Apps/fdu.com 15:
|
||||
../../Binary/Apps/mode.com 15:
|
||||
../../Binary/Apps/rtc.com 15:
|
||||
../../Binary/Apps/survey.com 15:
|
||||
../../Binary/Apps/syscopy.com 15:
|
||||
../../Binary/Apps/sysgen.com 15:
|
||||
../../Binary/Apps/timer.com 15:
|
||||
../../Binary/Apps/xm.com 15:
|
||||
#
|
||||
# Add Shared NZCOM/Z3PLUS
|
||||
#
|
||||
Common/NZ3PLUS/u10/*.* 10:
|
||||
Common/NZ3PLUS/u14/*.* 14:
|
||||
Common/NZ3PLUS/u15/*.* 15:
|
||||
#
|
||||
# Add Common Applications
|
||||
#
|
||||
# Common/All/u10/*.* 10:
|
||||
# Common/All/u14/*.* 14:
|
||||
# Common/All/u15/*.* 15:
|
||||
Common/CPM3/*.* 15:
|
||||
Common/Z/u14/*.* 14:
|
||||
Common/Z/u15/*.* 15:
|
||||
# Common/Z3/u10/*.* 10:
|
||||
Common/Z3/u14/*.* 14:
|
||||
Common/Z3/u15/*.* 15:
|
||||
#
|
||||
# Add the ReadMe document
|
||||
#
|
||||
d_z3plus/ReadMe.txt 0:
|
||||
#
|
||||
# Add files from CPM3 build
|
||||
#
|
||||
../CPM3/cpmldr.com 0:
|
||||
../CPM3/cpmldr.sys 0:
|
||||
../CPM3/ccp.com 0:
|
||||
../CPM3/gencpm.com 0:
|
||||
../CPM3/genres.dat 0:
|
||||
../CPM3/genbnk.dat 0:
|
||||
../CPM3/bios3.spr 0:
|
||||
../CPM3/bnkbios3.spr 0:
|
||||
../CPM3/bdos3.spr 0:
|
||||
../CPM3/bnkbdos3.spr 0:
|
||||
../CPM3/resbdos3.spr 0:
|
||||
../CPM3/cpm3res.sys 0:
|
||||
../CPM3/cpm3bnk.sys 0:
|
||||
../CPM3/gencpm.dat 0:
|
||||
../CPM3/cpm3.sys 0:
|
||||
../CPM3/readme.1st 0:
|
||||
../CPM3/cpm3fix.pat 0:
|
||||
#
|
||||
# Include CP/M 3 files
|
||||
#
|
||||
d_cpm3/u0/*.COM 15:
|
||||
d_cpm3/u0/SUBMIT.COM 0:
|
||||
d_cpm3/u0/HELP.HLP 0:
|
||||
#
|
||||
# Add RomWBW utilities
|
||||
#
|
||||
../../Binary/Apps/assign.com 15:
|
||||
../../Binary/Apps/cpuspd.com 15:
|
||||
../../Binary/Apps/reboot.com 15:
|
||||
../../Binary/Apps/fat.com 15:
|
||||
../../Binary/Apps/fdu.com 15:
|
||||
../../Binary/Apps/mode.com 15:
|
||||
../../Binary/Apps/rtc.com 15:
|
||||
../../Binary/Apps/survey.com 15:
|
||||
../../Binary/Apps/syscopy.com 15:
|
||||
../../Binary/Apps/sysgen.com 15:
|
||||
../../Binary/Apps/timer.com 15:
|
||||
../../Binary/Apps/xm.com 15:
|
||||
#
|
||||
# Add Shared NZCOM/Z3PLUS
|
||||
#
|
||||
Common/NZ3PLUS/u10/*.* 10:
|
||||
Common/NZ3PLUS/u14/*.* 14:
|
||||
Common/NZ3PLUS/u15/*.* 15:
|
||||
#
|
||||
# Add Common Applications
|
||||
#
|
||||
# Common/All/u10/*.* 10:
|
||||
# Common/All/u14/*.* 14:
|
||||
# Common/All/u15/*.* 15:
|
||||
Common/CPM3/*.* 15:
|
||||
Common/Z/u14/*.* 14:
|
||||
Common/Z/u15/*.* 15:
|
||||
# Common/Z3/u10/*.* 10:
|
||||
Common/Z3/u14/*.* 14:
|
||||
Common/Z3/u15/*.* 15:
|
||||
|
||||
@@ -1,102 +1,102 @@
|
||||
#
|
||||
# Add the ReadMe document
|
||||
#
|
||||
d_z3plus/ReadMe.txt 0:
|
||||
#
|
||||
# Add files from CPM3 build
|
||||
#
|
||||
../CPM3/cpmldr.com 0:
|
||||
../CPM3/cpmldr.sys 0:
|
||||
../CPM3/ccp.com 0:
|
||||
../CPM3/gencpm.com 0:
|
||||
../CPM3/genres.dat 0:
|
||||
../CPM3/genbnk.dat 0:
|
||||
../CPM3/bios3.spr 0:
|
||||
../CPM3/bnkbios3.spr 0:
|
||||
../CPM3/bdos3.spr 0:
|
||||
../CPM3/bnkbdos3.spr 0:
|
||||
../CPM3/resbdos3.spr 0:
|
||||
../CPM3/cpm3res.sys 0:
|
||||
../CPM3/cpm3bnk.sys 0:
|
||||
../CPM3/gencpm.dat 0:
|
||||
../CPM3/cpm3.sys 0:
|
||||
../CPM3/readme.1st 0:
|
||||
../CPM3/cpm3fix.pat 0:
|
||||
#
|
||||
# Include CP/M 3 files
|
||||
#
|
||||
d_cpm3/u0/*.COM 15:
|
||||
d_cpm3/u0/SUBMIT.COM 0:
|
||||
d_cpm3/u0/HELP.HLP 0:
|
||||
#
|
||||
# Add RomWBW utilities
|
||||
#
|
||||
#../../Binary/Apps/*.com 15:
|
||||
../../Binary/Apps/assign.com 15:
|
||||
../../Binary/Apps/bbcbasic.com 15:
|
||||
../../Binary/Apps/bbcbasic.txt 10:
|
||||
../../Binary/Apps/cpuspd.com 15:
|
||||
../../Binary/Apps/reboot.com 15:
|
||||
../../Binary/Apps/copysl.com 15:
|
||||
../../Binary/Apps/copysl.doc 10:
|
||||
../../Binary/Apps/fat.com 15:
|
||||
../../Binary/Apps/fdu.com 15:
|
||||
../../Binary/Apps/fdu.doc 10:
|
||||
../../Binary/Apps/format.com 15:
|
||||
../../Binary/Apps/mode.com 15:
|
||||
../../Binary/Apps/rtc.com 15:
|
||||
../../Binary/Apps/slabel.com 15:
|
||||
../../Binary/Apps/survey.com 15:
|
||||
../../Binary/Apps/syscopy.com 15:
|
||||
../../Binary/Apps/sysgen.com 15:
|
||||
../../Binary/Apps/talk.com 15:
|
||||
../../Binary/Apps/htalk.com 15:
|
||||
../../Binary/Apps/tbasic.com 15:
|
||||
../../Binary/Apps/timer.com 15:
|
||||
../../Binary/Apps/tune.com 15:
|
||||
../../Binary/Apps/xm.com 15:
|
||||
../../Binary/Apps/zmp.com 15:
|
||||
../../Binary/Apps/zmp.hlp 15:
|
||||
../../Binary/Apps/zmp.doc 10:
|
||||
../../Binary/Apps/zmp.cfg 15:
|
||||
../../Binary/Apps/zmp.fon 15:
|
||||
../../Binary/Apps/zmxfer.ovr 15:
|
||||
../../Binary/Apps/zmterm.ovr 15:
|
||||
../../Binary/Apps/zminit.ovr 15:
|
||||
../../Binary/Apps/zmconfig.ovr 15:
|
||||
../../Binary/Apps/zmd.com 15:
|
||||
../../Binary/Apps/vgmplay.com 15:
|
||||
#
|
||||
../../Binary/Apps/Test/*.com 2:
|
||||
../../Binary/Apps/Test/*.doc 2:
|
||||
Common/Test/*.* 2:
|
||||
#
|
||||
# Add Tune sample files
|
||||
#
|
||||
../../Binary/Apps/Tunes/*.pt? 3:
|
||||
../../Binary/Apps/Tunes/*.mym 3:
|
||||
../../Binary/Apps/Tunes/*.vgm 3:
|
||||
#
|
||||
# Add CPNET client files
|
||||
#
|
||||
../../Binary/CPNET/cpn3*.lbr 4:
|
||||
../../Binary/CPNET/ReadMe.txt 4:
|
||||
#
|
||||
# Add Shared NZCOM/Z3PLUS
|
||||
#
|
||||
Common/NZ3PLUS/u10/*.* 10:
|
||||
Common/NZ3PLUS/u14/*.* 14:
|
||||
Common/NZ3PLUS/u15/*.* 15:
|
||||
#
|
||||
# Add Common Applications
|
||||
#
|
||||
Common/All/u10/*.* 10:
|
||||
Common/All/u14/*.* 14:
|
||||
Common/All/u15/*.* 15:
|
||||
Common/CPM3/*.* 15:
|
||||
Common/Z/u14/*.* 14:
|
||||
Common/Z/u15/*.* 15:
|
||||
Common/Z3/u10/*.* 10:
|
||||
Common/Z3/u14/*.* 14:
|
||||
Common/Z3/u15/*.* 15:
|
||||
Common/SIMH/*.* 13:
|
||||
#
|
||||
# Add the ReadMe document
|
||||
#
|
||||
d_z3plus/ReadMe.txt 0:
|
||||
#
|
||||
# Add files from CPM3 build
|
||||
#
|
||||
../CPM3/cpmldr.com 0:
|
||||
../CPM3/cpmldr.sys 0:
|
||||
../CPM3/ccp.com 0:
|
||||
../CPM3/gencpm.com 0:
|
||||
../CPM3/genres.dat 0:
|
||||
../CPM3/genbnk.dat 0:
|
||||
../CPM3/bios3.spr 0:
|
||||
../CPM3/bnkbios3.spr 0:
|
||||
../CPM3/bdos3.spr 0:
|
||||
../CPM3/bnkbdos3.spr 0:
|
||||
../CPM3/resbdos3.spr 0:
|
||||
../CPM3/cpm3res.sys 0:
|
||||
../CPM3/cpm3bnk.sys 0:
|
||||
../CPM3/gencpm.dat 0:
|
||||
../CPM3/cpm3.sys 0:
|
||||
../CPM3/readme.1st 0:
|
||||
../CPM3/cpm3fix.pat 0:
|
||||
#
|
||||
# Include CP/M 3 files
|
||||
#
|
||||
d_cpm3/u0/*.COM 15:
|
||||
d_cpm3/u0/SUBMIT.COM 0:
|
||||
d_cpm3/u0/HELP.HLP 0:
|
||||
#
|
||||
# Add RomWBW utilities
|
||||
#
|
||||
#../../Binary/Apps/*.com 15:
|
||||
../../Binary/Apps/assign.com 15:
|
||||
../../Binary/Apps/bbcbasic.com 15:
|
||||
../../Binary/Apps/bbcbasic.txt 10:
|
||||
../../Binary/Apps/cpuspd.com 15:
|
||||
../../Binary/Apps/reboot.com 15:
|
||||
../../Binary/Apps/copysl.com 15:
|
||||
../../Binary/Apps/copysl.doc 10:
|
||||
../../Binary/Apps/fat.com 15:
|
||||
../../Binary/Apps/fdu.com 15:
|
||||
../../Binary/Apps/fdu.doc 10:
|
||||
../../Binary/Apps/format.com 15:
|
||||
../../Binary/Apps/mode.com 15:
|
||||
../../Binary/Apps/rtc.com 15:
|
||||
../../Binary/Apps/slabel.com 15:
|
||||
../../Binary/Apps/survey.com 15:
|
||||
../../Binary/Apps/syscopy.com 15:
|
||||
../../Binary/Apps/sysgen.com 15:
|
||||
../../Binary/Apps/talk.com 15:
|
||||
../../Binary/Apps/htalk.com 15:
|
||||
../../Binary/Apps/tbasic.com 15:
|
||||
../../Binary/Apps/timer.com 15:
|
||||
../../Binary/Apps/tune.com 15:
|
||||
../../Binary/Apps/xm.com 15:
|
||||
../../Binary/Apps/zmp.com 15:
|
||||
../../Binary/Apps/zmp.hlp 15:
|
||||
../../Binary/Apps/zmp.doc 10:
|
||||
../../Binary/Apps/zmp.cfg 15:
|
||||
../../Binary/Apps/zmp.fon 15:
|
||||
../../Binary/Apps/zmxfer.ovr 15:
|
||||
../../Binary/Apps/zmterm.ovr 15:
|
||||
../../Binary/Apps/zminit.ovr 15:
|
||||
../../Binary/Apps/zmconfig.ovr 15:
|
||||
../../Binary/Apps/zmd.com 15:
|
||||
../../Binary/Apps/vgmplay.com 15:
|
||||
#
|
||||
../../Binary/Apps/Test/*.com 2:
|
||||
../../Binary/Apps/Test/*.doc 2:
|
||||
Common/Test/*.* 2:
|
||||
#
|
||||
# Add Tune sample files
|
||||
#
|
||||
../../Binary/Apps/Tunes/*.pt? 3:
|
||||
../../Binary/Apps/Tunes/*.mym 3:
|
||||
../../Binary/Apps/Tunes/*.vgm 3:
|
||||
#
|
||||
# Add CPNET client files
|
||||
#
|
||||
../../Binary/CPNET/cpn3*.lbr 4:
|
||||
../../Binary/CPNET/ReadMe.txt 4:
|
||||
#
|
||||
# Add Shared NZCOM/Z3PLUS
|
||||
#
|
||||
Common/NZ3PLUS/u10/*.* 10:
|
||||
Common/NZ3PLUS/u14/*.* 14:
|
||||
Common/NZ3PLUS/u15/*.* 15:
|
||||
#
|
||||
# Add Common Applications
|
||||
#
|
||||
Common/All/u10/*.* 10:
|
||||
Common/All/u14/*.* 14:
|
||||
Common/All/u15/*.* 15:
|
||||
Common/CPM3/*.* 15:
|
||||
Common/Z/u14/*.* 14:
|
||||
Common/Z/u15/*.* 15:
|
||||
Common/Z3/u10/*.* 10:
|
||||
Common/Z3/u14/*.* 14:
|
||||
Common/Z3/u15/*.* 15:
|
||||
Common/SIMH/*.* 13:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#DEFINE RMN 6
|
||||
#DEFINE RUP 0
|
||||
#DEFINE RTP 0
|
||||
#DEFINE BIOSVER "3.6.0-dev.3"
|
||||
#DEFINE BIOSVER "3.6.0-dev.4"
|
||||
#define rmj RMJ
|
||||
#define rmn RMN
|
||||
#define rup RUP
|
||||
|
||||
@@ -3,5 +3,5 @@ rmn equ 6
|
||||
rup equ 0
|
||||
rtp equ 0
|
||||
biosver macro
|
||||
db "3.6.0-dev.3"
|
||||
db "3.6.0-dev.4"
|
||||
endm
|
||||
|
||||
Reference in New Issue
Block a user