mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
Compare commits
179 Commits
v3.6.0-dev
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c03948c935 | ||
|
|
9ce35dbbac | ||
|
|
ed4f57aa76 | ||
|
|
71a1bfbe81 | ||
|
|
8d8dc4c16f | ||
|
|
1f42d3748c | ||
|
|
8163311c31 | ||
|
|
50858a3a7d | ||
|
|
0d563870d2 | ||
|
|
00bd0895ac | ||
|
|
6c0c59bdfd | ||
|
|
500e0e9f63 | ||
|
|
b161ada16a | ||
|
|
da975518fd | ||
|
|
cb9803c570 | ||
|
|
10f76c6bf4 | ||
|
|
ba40c83dc4 | ||
|
|
45ee72352e | ||
|
|
10dc0fc005 | ||
|
|
7c6f1f50b8 | ||
|
|
a34aceb114 | ||
|
|
60c4f58fb4 | ||
|
|
3fe68d3f9a | ||
|
|
68dc9dc872 | ||
|
|
f488db4657 | ||
|
|
7ee3601241 | ||
|
|
dc1a4a6c9f | ||
|
|
1e5e4eeb6b | ||
|
|
bd2ad6a4ef | ||
|
|
f8eda92af3 | ||
|
|
355bdd590f | ||
|
|
9640552d8b | ||
|
|
c2ae8a0b90 | ||
|
|
3239fbea68 | ||
|
|
91bf21e3eb | ||
|
|
998babfdfb | ||
|
|
e7f3457491 | ||
|
|
db5d41e79f | ||
|
|
1232ae7e30 | ||
|
|
895490a780 | ||
|
|
16cf1d7fb0 | ||
|
|
8353115e21 | ||
|
|
59dba8d250 | ||
|
|
a4fc24239e | ||
|
|
e488aec54d | ||
|
|
4a66eb61ee | ||
|
|
59694aa936 | ||
|
|
096bbf4ee6 | ||
|
|
31b2325037 | ||
|
|
d1e9065d19 | ||
|
|
56544dc315 | ||
|
|
0c13a056b4 | ||
|
|
b49142e61e | ||
|
|
9b1439ec50 | ||
|
|
ace325377a | ||
|
|
f4b9e48ccf | ||
|
|
078a624e5c | ||
|
|
4a511ad27e | ||
|
|
d3f74ed97d | ||
|
|
8402324bb5 | ||
|
|
5014a47a64 | ||
|
|
b832103f6b | ||
|
|
951cded095 | ||
|
|
f137823950 | ||
|
|
b8439c29e6 | ||
|
|
9b8320e34a | ||
|
|
69021f298d | ||
|
|
9a5f156a0f | ||
|
|
d05c1af35c | ||
|
|
65094dd9b3 | ||
|
|
22217bd484 | ||
|
|
8a5ab762f3 | ||
|
|
305a93163f | ||
|
|
5237595822 | ||
|
|
b55d7a3f72 | ||
|
|
8fa3a7442d | ||
|
|
061863998e | ||
|
|
0b6415c846 | ||
|
|
cbaae67ee4 | ||
|
|
95584e9271 | ||
|
|
c616e76b2a | ||
|
|
c1bc58b687 | ||
|
|
cc32697ae3 | ||
|
|
42e630a746 | ||
|
|
605ac58f7a | ||
|
|
b9a251bb1f | ||
|
|
f283aed73b | ||
|
|
704b31eb23 | ||
|
|
a57fc8d4fa | ||
|
|
5ccc225343 | ||
|
|
25facb8e4d | ||
|
|
ac48639bfc | ||
|
|
8c7f51fd74 | ||
|
|
2de1c9b05d | ||
|
|
2ac394f22b | ||
|
|
b652412964 | ||
|
|
bb93010716 | ||
|
|
f5a7c61214 | ||
|
|
6a9f06cb22 | ||
|
|
99ed022660 | ||
|
|
eec721e3bb | ||
|
|
9233d19c2c | ||
|
|
0656589f06 | ||
|
|
7686cef325 | ||
|
|
063e7c87d4 | ||
|
|
e771ca88c1 | ||
|
|
915552fed8 | ||
|
|
6592a0797f | ||
|
|
ad2d3f3ac3 | ||
|
|
d0ac04045a | ||
|
|
54c9478dfd | ||
|
|
b62f652a69 | ||
|
|
3a571c6d2f | ||
|
|
08753fe7dd | ||
|
|
c39d81c226 | ||
|
|
c8448940dd | ||
|
|
ad5961ba6e | ||
|
|
d741d18705 | ||
|
|
71bc7719e8 | ||
|
|
e1ded4d07c | ||
|
|
4bca65e53c | ||
|
|
cbfa6d9241 | ||
|
|
2d0ebf49f7 | ||
|
|
7177f1183d | ||
|
|
9d04a7b1df | ||
|
|
6121e80310 | ||
|
|
d6e2e042f8 | ||
|
|
361e9ed83a | ||
|
|
4ee14cbefa | ||
|
|
10b4f98276 | ||
|
|
affc47efc2 | ||
|
|
1195a82ab9 | ||
|
|
2d77d4f036 | ||
|
|
43a835fdde | ||
|
|
22f9c9cef1 | ||
|
|
7e4ce45f9a | ||
|
|
f164ffdc76 | ||
|
|
6684a3e039 | ||
|
|
6202bd244c | ||
|
|
9ba4a7fecd | ||
|
|
130c0590fa | ||
|
|
a11b42f734 | ||
|
|
33f69d0497 | ||
|
|
648c464518 | ||
|
|
a4b8d14e3d | ||
|
|
08f2eb215a | ||
|
|
cf528ef1c1 | ||
|
|
16449bb817 | ||
|
|
e6b3945e42 | ||
|
|
c11ec9f097 | ||
|
|
8983b3642d | ||
|
|
fa4f0c996a | ||
|
|
74cfca470d | ||
|
|
1f6672ebab | ||
|
|
b5f402554c | ||
|
|
ee6cd57f15 | ||
|
|
e43b739ddd | ||
|
|
474a261649 | ||
|
|
2b459b1358 | ||
|
|
5e7009876c | ||
|
|
046c8cc20c | ||
|
|
caf7544219 | ||
|
|
58d0c7add0 | ||
|
|
067363824c | ||
|
|
edaa4e2a03 | ||
|
|
1a38b97e51 | ||
|
|
36dac79faf | ||
|
|
1738bfeb35 | ||
|
|
79180f2a3b | ||
|
|
a51a581d97 | ||
|
|
aee9b4aa87 | ||
|
|
9f2bee08b6 | ||
|
|
ec973d0b3f | ||
|
|
a6f04b8be2 | ||
|
|
cccb51b3c4 | ||
|
|
15f22a0cb0 | ||
|
|
b82910cad8 | ||
|
|
a188add0eb | ||
|
|
641a4d7daf |
1
.github/pull_request_template.md
vendored
1
.github/pull_request_template.md
vendored
@@ -4,6 +4,7 @@ BEFORE YOU CREATE A PULL REQUEST:
|
||||
- Please base all pull requests against the master branch
|
||||
- Include a clear description of your change
|
||||
- Reference related Issue(s) (e.g., "Resolves Issue #123")
|
||||
- Indicate whether an AI LLM was utilized
|
||||
|
||||
Thank you for contributing to RomWBW! I will review your pull request as soon as possible.
|
||||
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -100,7 +100,8 @@ Tools/unix/zx/zx
|
||||
!Source/EZ512/*.bin
|
||||
!Source/Z1RCC/*.bin
|
||||
!Source/ZZRCC/*.bin
|
||||
!Source/FZ80/*.bin
|
||||
!Source/SZ80/*.bin
|
||||
!Source/MSX/d_fat/**
|
||||
!Tools/cpm/**
|
||||
!Tools/unix/zx/*
|
||||
!Tools/zx/*
|
||||
|
||||
@@ -5,6 +5,7 @@ if exist *.bin del *.bin
|
||||
if exist *.dat del *.dat
|
||||
if exist *.com del *.com
|
||||
if exist *.img del *.img
|
||||
if exist *.dsk del *.dsk
|
||||
if exist *.rom del *.rom
|
||||
if exist *.hex del *.hex
|
||||
if exist *.upd del *.upd
|
||||
|
||||
@@ -5,4 +5,4 @@ SUBDIRS = Apps CPM22 CPM3 QPM ZSDOS ZPM3 CPNET
|
||||
include $(TOOLS)/Makefile.inc
|
||||
|
||||
clean::
|
||||
@rm -f *.bin *.com *.img *.rom *.upd *.hex *.pdf *.log *.eeprom *.dat
|
||||
@rm -f *.bin *.com *.img *.dsk *.rom *.upd *.hex *.pdf *.log *.eeprom *.dat
|
||||
|
||||
@@ -1,42 +1,91 @@
|
||||
# Contributing to RomWBW
|
||||
|
||||
> **WARNING**: The `dev` branch of RomWBW has been deprecated as of v3.4. All Pull Requests should now target the `master` branch.
|
||||
> **WARNING**: The `dev` branch of RomWBW has been deprecated as of
|
||||
v3.4. All Pull Requests should now target the `master` branch.
|
||||
|
||||
Contributions of all kinds to RomWBW are welcomed and greatly appreciated.
|
||||
Contributions of all kinds to RomWBW are welcomed and greatly
|
||||
appreciated.
|
||||
|
||||
- Reporting bug(s) and suggesting new feature(s)
|
||||
- Discussing the current state of the code
|
||||
- Submitting a fixes and enhancements
|
||||
- Submitting fixes and enhancements
|
||||
|
||||
## RomWBW GitHub Repository
|
||||
|
||||
The [RomWBW GitHub Repository](https://github.com/wwarthen/RomWBW) is the primary location for developing, supporting, and distributing RomWBW. Although input is gladly accepted from almost any channel, the GitHub Repository is preferred.
|
||||
The [RomWBW GitHub Repository](https://github.com/wwarthen/RomWBW) is
|
||||
the primary location for developing, supporting, and distributing
|
||||
RomWBW. Although input is gladly accepted from almost any channel, the
|
||||
GitHub Repository is preferred.
|
||||
|
||||
- Use **Issues** to report bugs, request enhancements, or ask usage questions.
|
||||
- Use **Issues** to report bugs, request enhancements, or ask usage
|
||||
questions
|
||||
- Use **Discussions** to interact with others
|
||||
- Use **Pull Requests** to submit content (code, documentation, etc.)
|
||||
|
||||
## Submitting Content
|
||||
|
||||
This RomWBW Project uses the standard [GitHub Flow](https://docs.github.com/en/get-started/quickstart/github-flow). Submission of content changes (including code) are ideally done via Pull Requests.
|
||||
This RomWBW Project uses the standard
|
||||
[GitHub Flow](https://docs.github.com/en/get-started/quickstart/github-flow).
|
||||
Submission of content changes (including code) are ideally done via Pull
|
||||
Requests.
|
||||
|
||||
- Submitters are advised to contact [Wayne Warthen](mailto:wwarthen@gmail.com) or start a GitHub Discussion prior to starting any significant work. This is simply to ensure that submissions are consistent
|
||||
with the overall goals and intentions of RomWBW.
|
||||
- All submissions should be based on the `master` branch. To create your submission, fork the RomWBW repository and create your branch from `master`. Make (and test) your changes in your personal fork.
|
||||
- Please update relevant documentation and the `ChangeLog` found in the `Doc` folder.
|
||||
- You are encouraged to comment your submissions to ensure your work is properly attributed.
|
||||
- When ready, submit a Pull Request to merge your forked branch into the RomWBW master branch.
|
||||
- Submitters are advised to contact [Wayne Warthen](mailto:wwarthen@
|
||||
gmail.com) or start a GitHub Discussion prior to starting any
|
||||
significant work. This is simply to ensure that submissions are
|
||||
consistent with the overall goals and intentions of RomWBW.
|
||||
- All submissions should be based on the `master` branch. To create
|
||||
your submission, fork the RomWBW repository and create your branch from
|
||||
`master`. Make (and test) your changes in your personal fork.
|
||||
- Please update relevant documentation and the `ChangeLog` found in the
|
||||
`Doc` folder.
|
||||
- You are encouraged to comment your submissions to ensure your work is
|
||||
properly attributed.
|
||||
- When ready, submit a Pull Request to merge your forked branch into the
|
||||
RomWBW master branch. In the comments, be sure to indicate if an
|
||||
AI LLM was utilized in any way.
|
||||
|
||||
## Coding Style
|
||||
|
||||
Due to the nature of the project, you will find a variety of coding styles. When making changes to existing code, please try to be consistent with the existing coding style. You may not like the current style, but no one likes mixed styles
|
||||
in one file/module.
|
||||
Due to the nature of the project, you will find a variety of coding
|
||||
styles. When making changes to existing code, please try to be
|
||||
consistent with the existing coding style. You may not like the current
|
||||
style, but no one likes mixed styles in one file/module.
|
||||
|
||||
Be careful with white space. RomWBW is primarily assembly langauge code. The use of tab stops at every 8 characters is pretty standard for assembler. If you use something else, then your code will look odd when viewed by others.
|
||||
Be careful with white space. RomWBW is primarily assembly langauge
|
||||
code. The use of tab stops at every 8 characters is pretty standard for
|
||||
assembler. If you use something else, then your code will look odd
|
||||
when viewed by others.
|
||||
|
||||
In most cases, the use of `<cr><lf>` line endings is preferred. This is standard for the operating systems of the era that RomWBW provides. Also note that CP/M text files should end with a ctrl-Z (0x1A). This is not magically added by the
|
||||
tools that generate the disk images.
|
||||
In most cases, the use of `<cr><lf>` line endings is preferred. This is
|
||||
standard for the operating systems of the era that RomWBW provides.
|
||||
Also note that CP/M text files should end with a ctrl-Z (0x1A). This is
|
||||
not magically added by the tools that generate the disk images.
|
||||
|
||||
## Hints for Developers
|
||||
|
||||
- The majority of RomWBW is assembled with TASM (and it's compatible
|
||||
equivalent sz80as). These tools have quirks that are very subtle. For
|
||||
example, TASM does not evaluate expressions in the standard way. It
|
||||
uses a left to right approach. Check the TASM documentation carefully.
|
||||
|
||||
- The following two Z80 instructions highlight a common issue with the
|
||||
Z80 assembler syntax. Parens in operands frequently indicate an
|
||||
indirect reference. To treat the operand as an expression, use the
|
||||
second format.
|
||||
|
||||
```
|
||||
LD A,(5+5) ; Load A with the value at address 10
|
||||
LD A,0+(5+5) ; Load A with the value 10
|
||||
```
|
||||
|
||||
- The RomWBW documewntation in the Doc directory is generated with a
|
||||
process outside of the normal build process. To update documentation,
|
||||
please update the .md files in Source/Doc. Those are the Markdown
|
||||
source files for the documentation. The PDF files will be updated
|
||||
offline from those.
|
||||
|
||||
## License
|
||||
|
||||
RomWBW is licensed under GPLv3. When you submit code changes, your submissions are understood to be under the same [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.html) that covers the project.
|
||||
RomWBW is licensed under GPLv3. When you submit code changes, your
|
||||
submissions are understood to be under the same [GPLv3 License]
|
||||
(https://www.gnu.org/licenses/gpl-3.0.html) that covers the project.
|
||||
|
||||
@@ -62,6 +62,7 @@ ZCPR D&J User Manual. This manual supplements the ZCPR Manual.
|
||||
|
||||
|
||||
ZSDOS Manual ("ZSDOS Manual.pdf")
|
||||
ZSDOS Programmer's Manual ("ZSDOS Programmers Manual.pdf")
|
||||
---------------------------------
|
||||
|
||||
ZSDOS is the DOS portion of Z-System. This is the manual for ZSDOS
|
||||
@@ -69,6 +70,10 @@ ZSDOS is the DOS portion of Z-System. This is the manual for ZSDOS
|
||||
ignored since that work has already been completed as part of the
|
||||
RomWBW distribution.
|
||||
|
||||
The ZSDOS Programmer's Manual is also included courtesy of Wayne
|
||||
Hortensius and Randy Merkel. This manual includes documentation of the
|
||||
ZSDOS BDOS API enhancements.
|
||||
|
||||
ZPM3 ("ZPM3.txt")
|
||||
-----------------
|
||||
|
||||
|
||||
BIN
Doc/CPM/ZSDOS Programmers Manual.pdf
Normal file
BIN
Doc/CPM/ZSDOS Programmers Manual.pdf
Normal file
Binary file not shown.
@@ -23,6 +23,24 @@ Version 3.6
|
||||
- MGG: Added sample program source files for all language disk iamges
|
||||
- WBW: Added support for S100 Dual CF Interface
|
||||
- WBW: Added support for S100 ESP32 SD Interface
|
||||
- MAP: User guide. Reorder sections around disk formatting
|
||||
- R?M: Randy Merkel provided ZSDOS Programmer's Manual as translated by Wayne Hortensius
|
||||
- WBW: Updated Cowgol disk image with latest COWFIX.COM from Ladislau Szilagyi
|
||||
- WBW: Preliminary support for S100 Computers Z80 CPU
|
||||
- HJB: Added MSX platform
|
||||
- M?R: Update Timer app with "zero" option
|
||||
- HJB: Update PPIDE driver, add support for MSX BEER IDE interface
|
||||
- HJB: Added loader for MSX
|
||||
- HJB: Added IDE driver master media detect option
|
||||
- WBW: Add support for S100 Serial I/O DLP Serial connection
|
||||
- P?D: Generate compressed ROM for EaZyZ80 512
|
||||
- DDW: Added support for the 'N8PC' platform. Includes support for the M6242 RTC chip
|
||||
- JMD: Added VGMINFO application
|
||||
- WBW: Created SCSI Driver derived from code from Jay Cotton
|
||||
- WBW: Add official RC2014 platform (derived from RCZ80)
|
||||
- D?N: Added improved TMS Driver hardware/configuration detection and reporting
|
||||
- WBW: Removed driver module INIT lists, replaced with init phase system
|
||||
- JMD: Support Coleco AY-3-8910 ports in TUNE and HBIOS
|
||||
|
||||
Version 3.5.1
|
||||
-------------
|
||||
@@ -93,7 +111,7 @@ Version 3.5
|
||||
- WBW: Add options to TUNE/HBIOS to force detection of MSX and RC AY/YM standard PSG ports
|
||||
- MAP: Added /B=OPTIONS for automated drive assignment to ASSIGN.COM
|
||||
- WBW: Added TE Editor (Ladislau Szilagyi)
|
||||
- WBW: Refrech Cowgol disk image (Ladislau Szilagyi)
|
||||
- WBW: Refresh Cowgol disk image (Ladislau Szilagyi)
|
||||
|
||||
Version 3.4
|
||||
-----------
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,10 +8,27 @@ release of RomWBW.
|
||||
- **Please** review the "Upgrading" Section of the RomWBW User Guide.
|
||||
|
||||
- The RomWBW ROM and the RomWBW disk images are intended to be a
|
||||
matched set. After upgrading your ROM, it is important to update
|
||||
the OS boot tracks of your disks as well as the RomWBW-specific
|
||||
applications. This is discussed in the "Upgrading" section of the
|
||||
RomWBW User Guide.
|
||||
matched set. After upgrading your ROM, you need to update your
|
||||
boot disk media by doing one of the following:
|
||||
|
||||
- Write a new disk image (typically hd1k_combo.img) onto your
|
||||
disk media (will overwrite existing data/files).
|
||||
- Update the boot tracks of the bootable OS images as described in
|
||||
the RomWBW User Guid.
|
||||
|
||||
## Version 3.6
|
||||
|
||||
### Upgrade Notes
|
||||
|
||||
- The FZ80 (S100 FPGA Z80) platform has been renamed to SZ80 (S100 Z80)
|
||||
and has two configurations. SZ80_std is for the generic S100
|
||||
Z80 CPU. SZ80_fpga is for the FPGA Z80 SBC.
|
||||
|
||||
### New Features
|
||||
|
||||
### New Hardware Support
|
||||
|
||||
- Support for MSX systems.
|
||||
|
||||
## Version 3.5.1
|
||||
|
||||
@@ -94,7 +111,6 @@ This is a patch release of v3.5.
|
||||
- Enhancements to ASSIGN command to automatically assign drives
|
||||
(Mark Pruden).
|
||||
|
||||
|
||||
### New Hardware Support
|
||||
|
||||
- NABU w/ RomWBW Option Board.
|
||||
|
||||
10
ReadMe.md
10
ReadMe.md
@@ -7,7 +7,7 @@
|
||||
**RomWBW Introduction** \
|
||||
Version 3.6 \
|
||||
Wayne Warthen ([wwarthen@gmail.com](mailto:wwarthen@gmail.com)) \
|
||||
10 Aug 2025
|
||||
30 Jan 2026
|
||||
|
||||
# Overview
|
||||
|
||||
@@ -358,6 +358,14 @@ let me know if I missed you!
|
||||
- Marshall Gates has contriubed sample program source files for all of
|
||||
the language disk images.
|
||||
|
||||
- Randy Merkel provided the ZSDOS Programmer’s Manual as translated by
|
||||
Wayne Hortensius.
|
||||
|
||||
- Henk Berends added support for the MSX platform.
|
||||
|
||||
- Jay Cotton provided the SCSI transport code upon which the SCSI driver
|
||||
is based.
|
||||
|
||||
## Related Projects
|
||||
|
||||
Outside of the hardware platforms adapted to RomWBW, there are a variety
|
||||
|
||||
10
ReadMe.txt
10
ReadMe.txt
@@ -1,6 +1,6 @@
|
||||
RomWBW Introduction
|
||||
Wayne Warthen (wwarthen@gmail.com)
|
||||
10 Aug 2025
|
||||
30 Jan 2026
|
||||
|
||||
|
||||
|
||||
@@ -365,6 +365,14 @@ let me know if I missed you!
|
||||
- Marshall Gates has contriubed sample program source files for all of
|
||||
the language disk images.
|
||||
|
||||
- Randy Merkel provided the ZSDOS Programmer’s Manual as translated by
|
||||
Wayne Hortensius.
|
||||
|
||||
- Henk Berends added support for the MSX platform.
|
||||
|
||||
- Jay Cotton provided the SCSI transport code upon which the SCSI driver
|
||||
is based.
|
||||
|
||||
|
||||
Related Projects
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# RomWBW HBIOS CP/M FAT Utility ("FAT.COM")
|
||||
|
||||
Author: Wayne Warthen \
|
||||
Updated: 6-May-2024
|
||||
Updated: 27-Aug-2025
|
||||
|
||||
This application allows copying files between CP/M filesystems and FAT
|
||||
filesystems (DOS, Windows, Mac, Linux, etc.). The application runs on
|
||||
@@ -142,10 +142,10 @@ creation.
|
||||
|
||||
| Date | Version | Notes |
|
||||
|------------:|-------- |-------------------------------------------------------------|
|
||||
| 2-May-2019 | v0.9 | (beta) initial release |
|
||||
| 7-May-2019 | v0.9.1 | (beta) added REN and DEL |
|
||||
| 8-May-2019 | v0.9.2 | (beta) handle file collisions w/ user prompt |
|
||||
| 8-Oct-2019 | v0.9.3 | (beta) fixed incorrect filename buffer size (MAX_FN) |
|
||||
| 2-May-2019 | v0.9 | (beta) initial release |
|
||||
| 7-May-2019 | v0.9.1 | (beta) added REN and DEL |
|
||||
| 8-May-2019 | v0.9.2 | (beta) handle file collisions w/ user prompt |
|
||||
| 8-Oct-2019 | v0.9.3 | (beta) fixed incorrect filename buffer size (MAX_FN) |
|
||||
| 10-Oct-2019 | v0.9.4 | (beta) upgraded to FatFs R0.13c |
|
||||
| 10-Oct-2019 | v0.9.5 | (beta) added MD (make directory) |
|
||||
| 10-Oct-2019 | v0.9.6 | (beta) added FORMAT |
|
||||
@@ -153,6 +153,7 @@ creation.
|
||||
| | | add attributes to directory listing |
|
||||
| 12-Apr-2021 | v0.9.8 | (beta) support CP/NET drives |
|
||||
| 12-Oct-2023 | v0.9.9 | (beta) handle updated HBIOS Disk Device call |
|
||||
| 6-Jan-2024 | v1.0.0 | updated to latest FsFat (v0.15) |
|
||||
| 6-Jan-2024 | v1.0.0 | updated to latest FsFat (v0.15) |
|
||||
| | | updated to latest SDCC (v4.3) |
|
||||
| 6-May-2024 | v1.1.0 | improve floppy format boot record |
|
||||
| 6-May-2024 | v1.1.0 | improve floppy format boot record |
|
||||
| 27-Aug-2025 | v1.2.0 | update location of RomWBW IDENT pointer |
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -31,7 +31,7 @@ STKSIZ .EQU $FF
|
||||
;
|
||||
; HBIOS SYSTEM CALLS AND ID STRING ADDRESS
|
||||
;
|
||||
ROMWBW_ID .EQU $FFFE ; ROMWBW ID STRING ADDRESS
|
||||
ROMWBW_ID .EQU $FFFC ; ROMWBW ID STRING ADDRESS
|
||||
HBIOS_SYS .EQU $FFF0 ; HBIOS SYSCALL ADDRESS
|
||||
|
||||
H_SYSGET .EQU $F8 ; GET SYSTEM INFO
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,6 +12,7 @@
|
||||
; WBW 2022-04-02: Fix prtchr register saving/recovery
|
||||
; WBW 2023-10-19: Add support for Duodyne
|
||||
; WBW 2024-06-10: Add support for RC2014
|
||||
; WBW 2025-12-04: Add support for S100 MS-DOS Support Board
|
||||
;
|
||||
;=======================================================================
|
||||
;
|
||||
@@ -29,6 +30,9 @@ iodat_duo .equ $4C ; PS/2 controller data port address
|
||||
; RC2014 (EP/Sally)
|
||||
iocmd_rc .equ $64 ; PS/2 controller command port address
|
||||
iodat_rc .equ $60 ; PS/2 controller data port address
|
||||
; S100 MS-DOS Support Board
|
||||
iocmd_s100 .equ $64 ; PS/2 controller command port address
|
||||
iodat_s100 .equ $60 ; PS/2 controller data port address
|
||||
|
||||
;
|
||||
cpumhz .equ 8 ; for time delay calculations (not critical)
|
||||
@@ -94,6 +98,8 @@ setup1:
|
||||
jr z,setup_duo
|
||||
cp '4' ; RC2014 EP/Sally
|
||||
jr z,setup_rc
|
||||
cp '5' ; S100
|
||||
jr z,setup_s100
|
||||
cp 'X'
|
||||
jr z,exit
|
||||
jr setup
|
||||
@@ -130,6 +136,14 @@ setup_rc:
|
||||
ld de,str_rc
|
||||
jr setup2
|
||||
;
|
||||
setup_s100:
|
||||
ld a,iocmd_s100
|
||||
ld (iocmd),a
|
||||
ld a,iodat_s100
|
||||
ld (iodat),a
|
||||
ld de,str_s100
|
||||
jr setup2
|
||||
;
|
||||
setup2:
|
||||
call prtstr
|
||||
call crlf2
|
||||
@@ -1452,18 +1466,20 @@ delay1:
|
||||
; Constants
|
||||
;=======================================================================
|
||||
;
|
||||
str_banner .db "PS/2 Keyboard/Mouse Information v0.9, 10-Jun-2024",0
|
||||
str_banner .db "PS/2 Keyboard/Mouse Information v1.0, 4-Dec-2025",0
|
||||
str_hwmenu .db "PS/2 Controller Port Options:\r\n\r\n"
|
||||
.db " 1 - Nhyodyne\r\n"
|
||||
.db " 2 - Rhyophyre\r\n"
|
||||
.db " 3 - Duodyne\r\n"
|
||||
.db " 4 - RC2014\r\n"
|
||||
.db " 5 - S100 MS-DOS Support Board\r\n"
|
||||
.db " X - Exit Application\r\n"
|
||||
.db "\r\nSelection? ",0
|
||||
str_mbc .db "Nhyodyne",0
|
||||
str_rph .db "Rhyophyre",0
|
||||
str_duo .db "Duodyne",0
|
||||
str_rc .db "RC2014 (Saly)",0
|
||||
str_s100 .db "S100 (MS-DOS Support Board)",0
|
||||
str_menu .db "PS/2 Testing Options:\r\n\r\n"
|
||||
.db " C - Test PS/2 Controller\r\n"
|
||||
.db " K - Test PS/2 Keyboard\r\n"
|
||||
|
||||
@@ -51,6 +51,13 @@ CLI_PORTS1:
|
||||
LD A,PORTS_RC
|
||||
JR CLI_PORTS_Z
|
||||
CLI_PORTS2:
|
||||
LD HL, CLIARGS ; TEST FOR -COLECO ON COMMAND LINE
|
||||
LD DE, OPT_COLECO
|
||||
CALL STRINDEX
|
||||
JR NZ, CLI_PORTS3
|
||||
LD A,PORTS_COLECO
|
||||
JR CLI_PORTS_Z
|
||||
CLI_PORTS3:
|
||||
LD A,PORTS_AUTO ; USE AUTO PORT SELECTION
|
||||
CLI_PORTS_Z:
|
||||
LD (USEPORTS),A ; SAVE PORTS SELECTION
|
||||
@@ -114,6 +121,7 @@ CLI_OCTAVE_ADJST5:
|
||||
|
||||
OPT_MSX .DB "-MSX", 0 ; USE MSX PORTS
|
||||
OPT_RC .DB "-RC", 0 ; USE RC PORTS
|
||||
OPT_COLECO .DB "-COLECO", 0 ; USE COLECO PORTS
|
||||
HBIOSOPT: .DB "--HBIOS", 0 ; USE HBIOS API FOR PLAYBACK
|
||||
DELAYOPT: .DB "-DELAY",0 ; FORCE DELAY MODE
|
||||
DOWN1 .DB "-t1", 0 ; DOWN AN OCTAVE
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
IDENT .EQU $FFFE ; loc of RomWBW HBIOS ident ptr
|
||||
IDENT .EQU $FFFC ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
BF_SYSVER .EQU $F1 ; BIOS: VER function
|
||||
BF_SYSGET .EQU $F8 ; HBIOS: SYSGET function
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
; 2024-09-17 [WBW] Add support for HEATH H8 with Les Bird's MSX Card
|
||||
; 2024-12-12 [WBW] Add options to force standard MSX or RC ports
|
||||
; 2025-05-28 [WBW] Add option to force delay mode
|
||||
; 2026-01-24 [WBW] Support RC2014 platform id
|
||||
; 2026-01-31 [WBW] Update MUTE funtion to zero all PSG registers
|
||||
; 2026-02-03 [JMD] Add Coleco (50H/51H/52H) auto-detect
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; ToDo:
|
||||
@@ -78,6 +81,7 @@ TYPMYM .EQU 3 ; FILTYP value for MYM sound file
|
||||
PORTS_AUTO .EQU 0 ; AUTO select audio chip ports
|
||||
PORTS_MSX .EQU 1 ; force MSX audio chip ports
|
||||
PORTS_RC .EQU 2 ; force RCBUS audio chip ports
|
||||
PORTS_COLECO .EQU 3 ; force Coleco-style ports (50H/51H)
|
||||
;
|
||||
; HIGH SPEED CPU CONTROL
|
||||
;
|
||||
@@ -131,15 +135,18 @@ CONTINUE:
|
||||
|
||||
LD A, (HBIOSMD)
|
||||
OR A
|
||||
JR NZ, TSTTIMER ; skip hardware check if using hbios
|
||||
JP NZ, TSTTIMER ; skip hardware check if using hbios
|
||||
|
||||
LD A, (USEPORTS) ; get ports option
|
||||
LD HL,MSXPORTS ; assume MSX
|
||||
CP PORTS_MSX ; use MSX?
|
||||
JR Z,FORCE
|
||||
LD HL,RCPORTS ; asssume RC
|
||||
LD HL,RCPORTS ; assume RC
|
||||
CP PORTS_RC ; use RC?
|
||||
JR Z,FORCE
|
||||
LD HL,COLECOPORTS ; assume Coleco ports
|
||||
CP PORTS_COLECO ; use Coleco?
|
||||
JR Z,FORCE
|
||||
JR AUTOSEL ; otherwise do auto select
|
||||
|
||||
FORCE:
|
||||
@@ -446,7 +453,7 @@ IDBIO:
|
||||
;
|
||||
IDBIO1:
|
||||
; Check for RomWBW (HBIOS)
|
||||
LD HL,($FFFE) ; HL := HBIOS ident location
|
||||
LD HL,($FFFC) ; HL := HBIOS ident location
|
||||
LD A,'W' ; First byte of ident
|
||||
CP (HL) ; Compare
|
||||
JR NZ,IDBIO2 ; Not HBIOS
|
||||
@@ -607,6 +614,9 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB $07, $33, $32, $32, $FF, $FF, $FF ; RCZ80 W/ LINC SOUND MODULE
|
||||
.DW HWSTR_LINC
|
||||
;
|
||||
.DB $07, $50, $51, $52, $FF, $FF, $FF ; RCZ80 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB $08, $68, $60, $68, $C0, $FF, $FF ; RCZ180 W/ RC SOUND MODULE (EB)
|
||||
.DW HWSTR_RCEB
|
||||
@@ -619,6 +629,9 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB $08, $33, $32, $32, $C0, $FF, $FF ; RCZ180 W/ LINC SOUND MODULE
|
||||
.DW HWSTR_LINC
|
||||
;
|
||||
.DB $08, $50, $51, $52, $FF, $FF, $FF ; RCZ180 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB $09, $D8, $D0, $D8, $FF, $FF, $FF ; EZZ80 W/ RC SOUND MODULE (EB)
|
||||
.DW HWSTR_RCEB
|
||||
@@ -631,6 +644,9 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB $09, $33, $32, $32, $FF, $FF, $FF ; EZZ80 W/ LINC SOUND MODULE
|
||||
.DW HWSTR_LINC
|
||||
;
|
||||
.DB $09, $50, $51, $52, $FF, $FF, $FF ; EZZ80 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB $0A, $68, $60, $68, $C0, $FF, $FF ; SCZ180 W/ RC SOUND MODULE (EB)
|
||||
.DW HWSTR_RCEB
|
||||
@@ -643,6 +659,9 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB $0A, $33, $32, $32, $C0, $FF, $FF ; SCZ180 W/ LINC SOUND MODULE
|
||||
.DW HWSTR_LINC
|
||||
;
|
||||
.DB $0A, $50, $51, $52, $FF, $FF, $FF ; SCZ80 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB $0B, $D8, $D0, $D8, $FF, $FF, $FF ; RCZ280 W/ RC SOUND MODULE (EB)
|
||||
.DW HWSTR_RCEB
|
||||
@@ -655,6 +674,9 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB $0B, $33, $32, $32, $FF, $FF, $FF ; RCZ280 W/ LINC SOUND MODULE
|
||||
.DW HWSTR_LINC
|
||||
;
|
||||
.DB $0B, $50, $51, $52, $FF, $FF, $FF ; RCZ280 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB 13, $A0, $A1, $A0, $FF, $A2, $FE ; MBC
|
||||
.DW HWSTR_MBC
|
||||
@@ -667,6 +689,18 @@ CFGSIZ .EQU $ - CFGTBL
|
||||
;
|
||||
.DB 22, $41, $40, $40, $FF, $FF, $FF ; NABU
|
||||
.DW HWSTR_NABU
|
||||
;
|
||||
.DB 27, $D8, $D0, $D8, $FF, $FF, $FF ; RC2014 W/ RC SOUND MODULE (EB)
|
||||
.DW HWSTR_RCEB
|
||||
;
|
||||
.DB 27, $A0, $A1, $A2, $FF, $FF, $FF ; RC2014 W/ RC SOUND MODULE (MSX)
|
||||
.DW HWSTR_RCMSX
|
||||
;
|
||||
.DB 27, $D1, $D0, $D0, $FF, $FF, $FF ; RC2014 W/ RC SOUND MODULE (MF)
|
||||
.DW HWSTR_RCMF
|
||||
;
|
||||
.DB 27, $50, $51, $52, $FF, $FF, $FF ; RC2014 W/ RC SOUND MODULE (COLECO)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
.DB $FF ; END OF TABLE MARKER
|
||||
;
|
||||
@@ -681,6 +715,10 @@ RCPORTS:
|
||||
.DB $FF, $D8, $D0, $FF, $FF, $FF, $FF ; GENERIC RC
|
||||
.DW HWSTR_RC
|
||||
;
|
||||
COLECOPORTS:
|
||||
.DB $FF, $50, $51, $52, $FF, $FF, $FF ; GENERIC COLECO AY PORTS (50H/51H, READ AT 52H)
|
||||
.DW HWSTR_COLECO
|
||||
;
|
||||
CFG: ; ACTIVE CONFIG VALUES (FROM SELECTED CFGTBL ENTRY)
|
||||
PLT .DB 0 ; RomWBW HBIOS platform id
|
||||
PORTS:
|
||||
@@ -710,11 +748,11 @@ OCTAVEADJ .DB 0 ; AMOUNT TO ADJUST OCTAVE UP OR DOWN
|
||||
|
||||
USEPORTS .DB 0 ; AUDIO CHIP PORT SELECTION MODE
|
||||
|
||||
MSGBAN .DB "Tune Player for RomWBW v3.13, 28-May-2025",0
|
||||
MSGUSE .DB "Copyright (C) 2025, Wayne Warthen, GNU GPL v3",13,10
|
||||
MSGBAN .DB "Tune Player for RomWBW v3.16, 5-fEB-2026",0
|
||||
MSGUSE .DB "Copyright (C) 2026, Wayne Warthen, GNU GPL v3",13,10
|
||||
.DB "PTxPlayer Copyright (C) 2004-2007 S.V.Bulba",13,10
|
||||
.DB "MYMPlay by Marq/Lieves!Tuore",13,10,13,10
|
||||
.DB "Usage: TUNE <filename>.[PT2|PT3|MYM] [-msx|-rc] [-delay] [--hbios] [+tn|-tn]",0
|
||||
.DB "Usage: TUNE <filename>.[PT2|PT3|MYM] [-msx|-rc|-coleco] [-delay] [--hbios] [+tn|-tn]",0
|
||||
MSGBIO .DB "Incompatible BIOS or version, "
|
||||
.DB "HBIOS v", '0' + RMJ, ".", '0' + RMN, " required",0
|
||||
MSGPLT .DB "Hardware error, system not supported!",0
|
||||
@@ -740,6 +778,7 @@ HWSTR_NABU .DB "NABU Onboard Sound",0
|
||||
HWSTR_HEATH .DB "HEATH H8 MSX Module",0
|
||||
HWSTR_MSX .DB "MSX Standard Ports (A0H/A1H)",0
|
||||
HWSTR_RC .DB "RCBus Standard Ports (D8H/D0H)",0
|
||||
HWSTR_COLECO .DB "RCBus Coleco Ports (50H/51H)",0
|
||||
|
||||
MSGUNSUP .db "MYM files not supported with HBIOS yet!\r\n", 0
|
||||
|
||||
@@ -891,10 +930,16 @@ MUTE ISHBIOS
|
||||
JR NZ,MUTEVIAHBIOS
|
||||
|
||||
XOR A
|
||||
LD H,A
|
||||
LD L,A
|
||||
LD (AYREGS+AmplA),A
|
||||
LD (AYREGS+AmplB),HL
|
||||
LD B,14
|
||||
LD HL,AYREGS
|
||||
MUTE1 LD (HL),A
|
||||
INC HL
|
||||
DJNZ MUTE1
|
||||
;XOR A
|
||||
;LD H,A
|
||||
;LD L,A
|
||||
;LD (AYREGS+AmplA),A
|
||||
;LD (AYREGS+AmplB),HL
|
||||
JP ROUT
|
||||
|
||||
MUTEVIAHBIOS:
|
||||
|
||||
@@ -7,6 +7,8 @@ set TASMTABS=%TOOLS%\tasm32
|
||||
|
||||
tasm -t80 -g3 -fFF -dWBW vgmplay.asm vgmplay.com vgmplay.lst || exit /b
|
||||
tasm -t80 -g3 -fFF -dWBW ymfmdemo.asm ymfmdemo.com ymfmdemo.lst || exit /b
|
||||
tasm -t80 -g3 -fFF -dWBW vgminfo.asm vgminfo.com vgminfo.lst || exit /b
|
||||
|
||||
copy /Y vgmplay.com ..\..\..\Binary\Apps\ || exit /b
|
||||
copy /Y vgminfo.com ..\..\..\Binary\Apps\ || exit /b
|
||||
copy /Y Tunes\*.vgm ..\..\..\Binary\Apps\Tunes\ || exit /b
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
OBJECTS = vgmplay.com
|
||||
OBJECTS = vgmplay.com vgminfo.com
|
||||
DEST = ../../../Binary/Apps
|
||||
TOOLS = ../../../Tools
|
||||
OTHERS = *.LST
|
||||
@@ -13,6 +13,9 @@ vgmplay.com: $(DEPS)
|
||||
ym2612.com:
|
||||
$(TASM) -dWBW ymfmdemo.asm ymfmdemo.com ymfmdemo.lst
|
||||
|
||||
vgminfo.com:
|
||||
$(TASM) -dWBW vgminfo.asm vgminfo.com vgminfo.lst
|
||||
|
||||
all::
|
||||
mkdir -p $(DEST)/Tunes
|
||||
cp Tunes/*.vgm $(DEST)/Tunes
|
||||
|
||||
854
Source/Apps/VGM/vgminfo.asm
Normal file
854
Source/Apps/VGM/vgminfo.asm
Normal file
@@ -0,0 +1,854 @@
|
||||
;------------------------------------------------------------------------------
|
||||
; VGM File Info Display for CP/M
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Scans all .VGM files in current directory and displays chip information
|
||||
; in a formatted table
|
||||
;
|
||||
; (c) 2025 Joao Miguel Duraes
|
||||
; Licensed under the MIT License
|
||||
;
|
||||
; Version: 1.1 - 06-Dec-2025
|
||||
;
|
||||
; Assemble with:
|
||||
; TASM -80 -b vgminfo.asm vgminfo.com
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; CP/M definitions
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
BOOT .equ 0000H ; boot location
|
||||
BDOS .equ 0005H ; bdos entry point
|
||||
FCB .equ 005CH ; file control block
|
||||
FCBCR .equ FCB + 20H ; fcb current record
|
||||
BUFF .equ 0080H ; DMA buffer
|
||||
|
||||
PRINTF .equ 9 ; BDOS print string function
|
||||
OPENF .equ 15 ; BDOS open file function
|
||||
CLOSEF .equ 16 ; BDOS close file function
|
||||
READF .equ 20 ; BDOS sequential read function
|
||||
SETDMA .equ 26 ; BDOS set DMA address
|
||||
SFIRST .equ 17 ; BDOS search first
|
||||
SNEXT .equ 18 ; BDOS search next
|
||||
|
||||
CR .equ 0DH ; carriage return
|
||||
LF .equ 0AH ; line feed
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VGM Header offsets
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
DEBUG_SUM .equ 1 ; 1 = build with checksum support
|
||||
|
||||
VGM_IDENT .equ 00H ; "Vgm " identifier
|
||||
VGM_VERSION .equ 08H ; Version
|
||||
VGM_SN76489_CLK .equ 0CH ; SN76489 clock (4 bytes, little-endian)
|
||||
VGM_YM2612_CLK .equ 2CH ; YM2612 clock (4 bytes, little-endian)
|
||||
VGM_YM2151_CLK .equ 30H ; YM2151 clock (4 bytes, little-endian)
|
||||
VGM_DATAOFF .equ 34H ; VGM data offset (relative to 0x34)
|
||||
VGM_AY8910_CLK .equ 74H ; AY-3-8910 clock (4 bytes, little-endian)
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VGM Command codes (subset)
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
VGM_PSG1_W .equ 050H ; PSG (SN76489) write
|
||||
VGM_PSG2_W .equ 030H ; PSG #2 write
|
||||
VGM_YM26121_W .equ 052H ; YM2612 port 0 write
|
||||
VGM_YM26122_W .equ 053H ; YM2612 port 1 write
|
||||
VGM_YM26123_W .equ 0A2H ; YM2612 #2 port 0 write
|
||||
VGM_YM26124_W .equ 0A3H ; YM2612 #2 port 1 write
|
||||
VGM_YM21511_W .equ 054H ; YM2151 write
|
||||
VGM_YM21512_W .equ 0A4H ; YM2151 #2 write
|
||||
VGM_OPL2_W .equ 05AH ; YM3812 (OPL2) write
|
||||
VGM_OPL31_W .equ 05EH ; YMF262 (OPL3) port 0 write
|
||||
VGM_OPL32_W .equ 05FH ; YMF262 (OPL3) port 1 write
|
||||
VGM_AY_W .equ 0A0H ; AY-3-8910 write
|
||||
VGM_ESD .equ 066H ; End of sound data
|
||||
VGM_WNS .equ 061H ; Wait n samples
|
||||
VGM_W735 .equ 062H ; Wait 735 samples
|
||||
VGM_W882 .equ 063H ; Wait 882 samples
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Program Start
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.ORG 100H
|
||||
|
||||
START: LD SP, STACK ; Setup stack
|
||||
|
||||
; Parse command tail for debug flags (e.g. "D" or "/D")
|
||||
CALL PARSE_DEBUG
|
||||
|
||||
; Display header
|
||||
LD DE, MSG_HEADER
|
||||
CALL PRTSTR
|
||||
LD DE, MSG_DIVIDER
|
||||
CALL PRTSTR
|
||||
|
||||
; Setup search for *.VGM files
|
||||
LD DE, SEARCH_FCB
|
||||
LD C, SFIRST
|
||||
CALL BDOS
|
||||
CP 0FFH ; No files found?
|
||||
JP Z, NO_FILES
|
||||
|
||||
FILE_LOOP:
|
||||
; A contains directory entry index (0-3)
|
||||
; Each entry is 32 bytes, so multiply by 32
|
||||
AND 03H ; Mask to 0-3
|
||||
RLCA
|
||||
RLCA
|
||||
RLCA
|
||||
RLCA
|
||||
RLCA ; Multiply by 32
|
||||
LD L, A
|
||||
LD H, 0
|
||||
LD DE, BUFF
|
||||
ADD HL, DE ; HL now points to directory entry
|
||||
|
||||
; Copy filename from directory entry to our FCB
|
||||
INC HL ; Skip user number
|
||||
LD DE, FILE_FCB+1 ; Destination
|
||||
LD BC, 11 ; 8+3 filename
|
||||
LDIR
|
||||
|
||||
; Open and process this file
|
||||
CALL PROCESS_FILE
|
||||
|
||||
; Search for next file
|
||||
LD DE, SEARCH_FCB
|
||||
LD C, SNEXT
|
||||
CALL BDOS
|
||||
CP 0FFH
|
||||
JP NZ, FILE_LOOP
|
||||
|
||||
; Done
|
||||
LD DE, MSG_DIVIDER
|
||||
CALL PRTSTR
|
||||
JP BOOT ; Exit to CP/M
|
||||
|
||||
NO_FILES: LD DE, MSG_NOFILES
|
||||
CALL PRTSTR
|
||||
JP BOOT
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Process a VGM file - read header and display info
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
PROCESS_FILE:
|
||||
; Reset FCB
|
||||
XOR A
|
||||
LD (FILE_FCB), A ; Default drive
|
||||
LD (FILE_FCB+12), A ; Clear extent
|
||||
LD (FILE_FCB+32), A ; Clear current record
|
||||
|
||||
; Open file
|
||||
LD DE, FILE_FCB
|
||||
LD C, OPENF
|
||||
CALL BDOS
|
||||
CP 0FFH
|
||||
RET Z ; Can't open, skip
|
||||
|
||||
; Set DMA to our buffer for first block
|
||||
LD DE, VGMBUF
|
||||
LD C, SETDMA
|
||||
CALL BDOS
|
||||
|
||||
; Read first 128 bytes (header)
|
||||
LD DE, FILE_FCB
|
||||
LD C, READF
|
||||
CALL BDOS
|
||||
OR A
|
||||
JR NZ, READ_DONE ; EOF or error
|
||||
|
||||
; Read second 128 bytes (to allow scanning right after header)
|
||||
LD DE, VGMBUF+128
|
||||
LD C, SETDMA
|
||||
CALL BDOS
|
||||
LD DE, FILE_FCB
|
||||
LD C, READF
|
||||
CALL BDOS
|
||||
|
||||
; Read third 128 bytes
|
||||
LD DE, VGMBUF+256
|
||||
LD C, SETDMA
|
||||
CALL BDOS
|
||||
LD DE, FILE_FCB
|
||||
LD C, READF
|
||||
CALL BDOS
|
||||
|
||||
; Read fourth 128 bytes
|
||||
LD DE, VGMBUF+384
|
||||
LD C, SETDMA
|
||||
CALL BDOS
|
||||
LD DE, FILE_FCB
|
||||
LD C, READF
|
||||
CALL BDOS
|
||||
|
||||
READ_DONE:
|
||||
|
||||
; Restore DMA
|
||||
LD DE, BUFF
|
||||
LD C, SETDMA
|
||||
CALL BDOS
|
||||
|
||||
; Close file
|
||||
LD DE, FILE_FCB
|
||||
LD C, CLOSEF
|
||||
CALL BDOS
|
||||
|
||||
; Check if valid VGM
|
||||
LD HL, VGMBUF
|
||||
LD A, (HL)
|
||||
CP 'V'
|
||||
RET NZ
|
||||
INC HL
|
||||
LD A, (HL)
|
||||
CP 'g'
|
||||
RET NZ
|
||||
INC HL
|
||||
LD A, (HL)
|
||||
CP 'm'
|
||||
RET NZ
|
||||
INC HL
|
||||
LD A, (HL)
|
||||
CP ' '
|
||||
RET NZ
|
||||
|
||||
; Display filename (exactly 8 chars from FCB)
|
||||
LD HL, FILE_FCB+1
|
||||
LD B, 8
|
||||
PRINT_NAME: LD A, (HL)
|
||||
CALL PRTCHR
|
||||
INC HL
|
||||
DJNZ PRINT_NAME
|
||||
|
||||
; Add 2-space gap
|
||||
LD A, ' '
|
||||
CALL PRTCHR
|
||||
LD A, ' '
|
||||
CALL PRTCHR
|
||||
|
||||
#if DEBUG_SUM
|
||||
; Compute and optionally print 512-byte checksum over VGMBUF
|
||||
CALL CALC_SUM512
|
||||
LD A, (DBG_SUM)
|
||||
OR A
|
||||
JR Z, PAD_DONE
|
||||
|
||||
; Print space + [HHLL] + space between filename and chips
|
||||
LD A, ' '
|
||||
CALL PRTCHR
|
||||
LD A, '['
|
||||
CALL PRTCHR
|
||||
LD A, (SUM_HI)
|
||||
CALL PRTHEX8
|
||||
LD A, (SUM_LO)
|
||||
CALL PRTHEX8
|
||||
LD A, ']'
|
||||
CALL PRTCHR
|
||||
LD A, ' '
|
||||
CALL PRTCHR
|
||||
#endif
|
||||
|
||||
PAD_DONE:
|
||||
|
||||
; Check and display chip info
|
||||
CALL CHECK_CHIPS
|
||||
|
||||
; New line
|
||||
CALL CRLF
|
||||
|
||||
RET
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Check which chips are used: hybrid approach
|
||||
; 1. Check header clocks to see which chip types are present
|
||||
; 2. Scan commands to detect multiple instances of same chip type
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
CHECK_CHIPS:
|
||||
; Initialize chip flags
|
||||
XOR A
|
||||
LD (CHIP_FLAGS), A
|
||||
LD (CHIP_TYPES), A ; Types present from header
|
||||
|
||||
; Check SN76489 clock (4 bytes at 0x0C)
|
||||
LD HL, VGMBUF+VGM_SN76489_CLK
|
||||
LD A, (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
JR Z, CHK_YM2612_CLK
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 01H ; bit 0 = SN76489 present
|
||||
LD (CHIP_TYPES), A
|
||||
|
||||
CHK_YM2612_CLK:
|
||||
; Check YM2612 clock (4 bytes at 0x2C)
|
||||
LD HL, VGMBUF+VGM_YM2612_CLK
|
||||
LD A, (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
JR Z, CHK_YM2151_CLK
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 02H ; bit 1 = YM2612 present
|
||||
LD (CHIP_TYPES), A
|
||||
|
||||
CHK_YM2151_CLK:
|
||||
; Check YM2151 clock (4 bytes at 0x30)
|
||||
LD HL, VGMBUF+VGM_YM2151_CLK
|
||||
LD A, (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
JR Z, CHK_AY_CLK
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 04H ; bit 2 = YM2151 present
|
||||
LD (CHIP_TYPES), A
|
||||
|
||||
CHK_AY_CLK:
|
||||
; Check AY-3-8910 clock (4 bytes at 0x74, only valid in VGM v1.51+)
|
||||
LD HL, VGMBUF+VGM_VERSION
|
||||
LD A, (HL) ; Get low byte of version
|
||||
CP 51H ; Check if >= 0x51 (v1.51)
|
||||
JR C, START_CMD_SCAN ; Skip if < v1.51
|
||||
INC HL
|
||||
LD A, (HL) ; Get high byte
|
||||
CP 01H ; Must be 0x01
|
||||
JR NZ, START_CMD_SCAN ; Skip if not v1.xx
|
||||
|
||||
LD HL, VGMBUF+VGM_AY8910_CLK
|
||||
LD A, (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
INC HL
|
||||
OR (HL)
|
||||
JR Z, START_CMD_SCAN
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 08H ; bit 3 = AY present
|
||||
LD (CHIP_TYPES), A
|
||||
|
||||
START_CMD_SCAN:
|
||||
; Clear AY flags if AY is not present in header
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 3, A ; Check if AY is present
|
||||
JR NZ, SCAN_CMDS ; If present, continue
|
||||
LD A, (CHIP_FLAGS)
|
||||
AND 3FH ; Clear bits 6 and 7 (AY flags)
|
||||
LD (CHIP_FLAGS), A
|
||||
SCAN_CMDS:
|
||||
; If chip type is present, scan commands to detect multiples
|
||||
; Set base flags from types
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 0, A
|
||||
JR Z, NO_SN_BASE
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 01H ; Set SN #1
|
||||
LD (CHIP_FLAGS), A
|
||||
NO_SN_BASE:
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 1, A
|
||||
JR Z, NO_YM2612_BASE
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 04H ; Set YM2612 #1
|
||||
LD (CHIP_FLAGS), A
|
||||
NO_YM2612_BASE:
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 2, A
|
||||
JR Z, NO_YM2151_BASE
|
||||
; Do NOT pre-mark YM2151 as used from the header alone.
|
||||
; YM2151 will only be marked used when a command is seen.
|
||||
NO_YM2151_BASE:
|
||||
; Do NOT pre-mark AY as used from the header alone.
|
||||
; AY will only be marked used when an 0xA0 command is seen.
|
||||
NO_AY_BASE:
|
||||
|
||||
COMPUTE_DATA_START:
|
||||
LD HL, (VGMBUF+VGM_DATAOFF)
|
||||
LD A, H
|
||||
OR L
|
||||
JR NZ, GOT_OFFSET
|
||||
LD HL, 000CH ; Default for VGM < 1.50 (0x40-0x34)
|
||||
GOT_OFFSET: LD DE, VGMBUF+VGM_DATAOFF
|
||||
ADD HL, DE ; HL = VGMBUF + 0x34 + offset
|
||||
|
||||
; Constrain to our 256-byte buffer
|
||||
LD DE, VGMBUF
|
||||
SBC HL, DE ; HL = offset from VGMBUF base
|
||||
ADD HL, DE ; restore HL absolute inside VGMBUF
|
||||
|
||||
; Scan up to 255 commands or until EOD
|
||||
LD C, 255
|
||||
SCAN_LOOP: LD A, (HL)
|
||||
INC HL
|
||||
|
||||
CP VGM_ESD
|
||||
JP Z, SCAN_DONE
|
||||
|
||||
CP VGM_PSG1_W
|
||||
JP NZ, CHK_PSG2
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 01H ; bit 0 = SN #1
|
||||
LD (CHIP_FLAGS), A
|
||||
INC HL ; Skip data byte
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_PSG2: CP VGM_PSG2_W
|
||||
JP NZ, CHK_YM2612
|
||||
LD A, (CHIP_TYPES) ; Only if SN76489 is present
|
||||
BIT 0, A
|
||||
JR Z, SCAN_NEXT_1
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 02H ; bit 1 = SN #2
|
||||
LD (CHIP_FLAGS), A
|
||||
SCAN_NEXT_1: INC HL
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_YM2612: CP VGM_YM26121_W
|
||||
JR Z, GOT_YM2612_1
|
||||
CP VGM_YM26122_W
|
||||
JR Z, GOT_YM2612_1
|
||||
CP VGM_YM26123_W
|
||||
JR Z, GOT_YM2612_2
|
||||
CP VGM_YM26124_W
|
||||
JP NZ, CHK_YM2151
|
||||
GOT_YM2612_2: LD A, (CHIP_TYPES) ; Only if YM2612 is present
|
||||
BIT 1, A
|
||||
JR Z, SCAN_NEXT_2
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 08H ; bit 3 = YM2612 #2
|
||||
LD (CHIP_FLAGS), A
|
||||
SCAN_NEXT_2: INC HL
|
||||
INC HL ; Skip 2 data bytes
|
||||
JP SCAN_NEXT
|
||||
GOT_YM2612_1: LD A, (CHIP_FLAGS)
|
||||
OR 04H ; bit 2 = YM2612 #1
|
||||
LD (CHIP_FLAGS), A
|
||||
INC HL
|
||||
INC HL
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_YM2151: CP VGM_YM21511_W
|
||||
JR Z, GOT_YM2151_1
|
||||
CP VGM_YM21512_W
|
||||
JP NZ, CHK_AY
|
||||
LD A, (CHIP_TYPES) ; Only if YM2151 is present
|
||||
BIT 2, A
|
||||
JR Z, SCAN_NEXT_3
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 20H ; bit 5 = YM2151 #2
|
||||
LD (CHIP_FLAGS), A
|
||||
SCAN_NEXT_3: INC HL
|
||||
INC HL
|
||||
JP SCAN_NEXT
|
||||
GOT_YM2151_1: LD A, (CHIP_FLAGS)
|
||||
OR 10H ; bit 4 = YM2151 #1
|
||||
LD (CHIP_FLAGS), A
|
||||
INC HL
|
||||
INC HL
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_AY: CP VGM_AY_W
|
||||
JP NZ, CHK_OPL2
|
||||
LD A, (CHIP_TYPES) ; Only if AY is present
|
||||
BIT 3, A
|
||||
JR Z, SCAN_SKIP_AY ; Skip if AY not present in header
|
||||
LD A, (HL) ; Get register/chip byte
|
||||
BIT 7, A ; Bit 7 = chip 2?
|
||||
JR Z, GOT_AY1
|
||||
LD A, (CHIP_FLAGS)
|
||||
OR 80H ; bit 7 = AY #2
|
||||
LD (CHIP_FLAGS), A
|
||||
JR SCAN_SKIP_AY
|
||||
GOT_AY1: LD A, (CHIP_FLAGS)
|
||||
OR 40H ; bit 6 = AY #1
|
||||
LD (CHIP_FLAGS), A
|
||||
SCAN_SKIP_AY: INC HL
|
||||
INC HL ; Skip 2 data bytes
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_OPL2: CP VGM_OPL2_W
|
||||
JP NZ, CHK_OPL3
|
||||
; Mark OPL2 present
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 010H ; bit 4 = OPL2
|
||||
LD (CHIP_TYPES), A
|
||||
INC HL ; skip register
|
||||
INC HL ; skip data
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_OPL3: CP VGM_OPL31_W
|
||||
JR Z, GOT_OPL3
|
||||
CP VGM_OPL32_W
|
||||
JP NZ, CHK_WAIT
|
||||
GOT_OPL3: ; Mark OPL3 present
|
||||
LD A, (CHIP_TYPES)
|
||||
OR 020H ; bit 5 = OPL3
|
||||
LD (CHIP_TYPES), A
|
||||
INC HL ; skip register
|
||||
INC HL ; skip data
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_WAIT: CP VGM_WNS
|
||||
JR NZ, CHK_W735
|
||||
INC HL
|
||||
INC HL ; Skip 2-byte wait value
|
||||
JP SCAN_NEXT
|
||||
|
||||
CHK_W735: CP VGM_W735
|
||||
JR Z, SCAN_NEXT
|
||||
CP VGM_W882
|
||||
JR Z, SCAN_NEXT
|
||||
|
||||
; Unknown command or short wait 0x70-0x7F -> just continue
|
||||
CP 70H
|
||||
JR C, SCAN_NEXT
|
||||
CP 80H
|
||||
JR NC, SCAN_NEXT
|
||||
|
||||
SCAN_NEXT: DEC C
|
||||
JP NZ, SCAN_LOOP
|
||||
|
||||
SCAN_DONE: ; Display chips found
|
||||
LD B, 0 ; Chip counter
|
||||
LD A, (CHIP_FLAGS)
|
||||
LD C, A ; Save flags
|
||||
|
||||
; SN76489
|
||||
AND 03H ; bits 0-1
|
||||
JP Z, NO_SN
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD A, C
|
||||
AND 03H
|
||||
CP 03H ; Both chips?
|
||||
JR Z, SN_DUAL
|
||||
LD DE, MSG_SN76489
|
||||
CALL PRTSTR
|
||||
JR SN_DONE
|
||||
SN_DUAL: LD DE, MSG_SN76489X2
|
||||
CALL PRTSTR
|
||||
SN_DONE: INC B
|
||||
NO_SN:
|
||||
; YM2612
|
||||
LD A, C
|
||||
AND 0CH ; bits 2-3
|
||||
JR Z, NO_YM2612
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD A, C
|
||||
AND 0CH
|
||||
CP 0CH ; Both chips?
|
||||
JR Z, YM2612_DUAL
|
||||
LD DE, MSG_YM2612
|
||||
CALL PRTSTR
|
||||
JR YM2612_DONE
|
||||
YM2612_DUAL: LD DE, MSG_YM2612X2
|
||||
CALL PRTSTR
|
||||
YM2612_DONE: INC B
|
||||
NO_YM2612:
|
||||
; YM2151
|
||||
LD A, C
|
||||
AND 30H ; bits 4-5
|
||||
JR Z, NO_YM2151
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD A, C
|
||||
AND 30H
|
||||
CP 30H ; Both chips?
|
||||
JR Z, YM2151_DUAL
|
||||
LD DE, MSG_YM2151
|
||||
CALL PRTSTR
|
||||
JR YM2151_DONE
|
||||
YM2151_DUAL: LD DE, MSG_YM2151X2
|
||||
CALL PRTSTR
|
||||
YM2151_DONE: INC B
|
||||
NO_YM2151:
|
||||
; OPL2 (YM3812)
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 4, A
|
||||
JR Z, NO_OPL2
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD DE, MSG_OPL2
|
||||
CALL PRTSTR
|
||||
INC B
|
||||
NO_OPL2:
|
||||
; OPL3 (YMF262)
|
||||
LD A, (CHIP_TYPES)
|
||||
BIT 5, A
|
||||
JR Z, NO_OPL3
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD DE, MSG_OPL3
|
||||
CALL PRTSTR
|
||||
INC B
|
||||
NO_OPL3:
|
||||
; AY-3-8910
|
||||
LD A, C
|
||||
AND 0C0H ; bits 6-7
|
||||
JR Z, NO_AY
|
||||
LD A, B
|
||||
OR A
|
||||
CALL NZ, PRINT_COMMA
|
||||
LD A, C
|
||||
AND 0C0H
|
||||
CP 0C0H ; Both chips?
|
||||
JR Z, AY_DUAL
|
||||
LD DE, MSG_AY8910
|
||||
CALL PRTSTR
|
||||
JR AY_DONE
|
||||
AY_DUAL: LD DE, MSG_AY8910X2
|
||||
CALL PRTSTR
|
||||
AY_DONE: INC B
|
||||
NO_AY:
|
||||
; None
|
||||
LD A, B
|
||||
OR A
|
||||
RET NZ
|
||||
LD DE, MSG_UNKNOWN
|
||||
CALL PRTSTR
|
||||
RET
|
||||
|
||||
PRINT_COMMA: LD A, ','
|
||||
CALL PRTCHR
|
||||
LD A, ' '
|
||||
CALL PRTCHR
|
||||
RET
|
||||
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Parse CP/M command tail for debug flag (D or /D) -> sets DBG_SUM
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
PARSE_DEBUG: LD HL, BUFF ; CP/M command tail buffer
|
||||
LD A, (HL) ; length byte
|
||||
OR A
|
||||
RET Z ; empty tail, no flags
|
||||
|
||||
LD B, A ; B = remaining chars
|
||||
INC HL ; HL -> first character
|
||||
|
||||
PD_LOOP: LD A, (HL)
|
||||
CP ' ' ; skip spaces
|
||||
JR Z, PD_NEXT
|
||||
|
||||
CP '/'
|
||||
JR Z, PD_SLASH
|
||||
|
||||
CP 'D'
|
||||
JR Z, PD_SET
|
||||
CP 'd'
|
||||
JR Z, PD_SET
|
||||
JR PD_NEXT
|
||||
|
||||
PD_SLASH: ; look at next char for D/d
|
||||
INC HL
|
||||
DJNZ PD_CHECK2
|
||||
RET
|
||||
|
||||
PD_CHECK2: LD A, (HL)
|
||||
CP 'D'
|
||||
JR Z, PD_SET
|
||||
CP 'd'
|
||||
JR Z, PD_SET
|
||||
JR PD_NEXT_CONT
|
||||
|
||||
PD_NEXT: INC HL
|
||||
PD_NEXT_CONT: DJNZ PD_LOOP
|
||||
RET
|
||||
|
||||
PD_SET: LD A, 1
|
||||
LD (DBG_SUM), A
|
||||
RET
|
||||
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; 512-byte checksum over VGMBUF (simple 16-bit sum)
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
CALC_SUM512: PUSH AF
|
||||
PUSH BC
|
||||
PUSH DE
|
||||
PUSH HL
|
||||
|
||||
LD HL, VGMBUF
|
||||
LD DE, 0200H ; 512 bytes
|
||||
XOR A
|
||||
LD (SUM_LO), A
|
||||
LD (SUM_HI), A
|
||||
|
||||
SUM_LOOP: LD A, (HL)
|
||||
INC HL
|
||||
LD B, A
|
||||
LD A, (SUM_LO)
|
||||
ADD A, B
|
||||
LD (SUM_LO), A
|
||||
LD A, (SUM_HI)
|
||||
ADC A, 0
|
||||
LD (SUM_HI), A
|
||||
DEC DE
|
||||
LD A, D
|
||||
OR E
|
||||
JR NZ, SUM_LOOP
|
||||
|
||||
POP HL
|
||||
POP DE
|
||||
POP BC
|
||||
POP AF
|
||||
RET
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Print A as two hex digits
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
PRTHEX8: PUSH AF
|
||||
PUSH BC
|
||||
|
||||
LD B, A ; Save original byte in B
|
||||
SRL A
|
||||
SRL A
|
||||
SRL A
|
||||
SRL A ; High nibble
|
||||
CALL PRTHEX_NIB
|
||||
|
||||
LD A, B
|
||||
AND 0FH ; Low nibble
|
||||
CALL PRTHEX_NIB
|
||||
|
||||
POP BC
|
||||
POP AF
|
||||
RET
|
||||
|
||||
PRTHEX_NIB: CP 0AH
|
||||
JR C, HEX_DIGIT
|
||||
ADD A, 'A' - 10
|
||||
JR PRTHEX_OUT
|
||||
HEX_DIGIT: ADD A, '0'
|
||||
PRTHEX_OUT: CALL PRTCHR
|
||||
RET
|
||||
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Print string pointed to by DE (terminated by 0)
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
PRTSTR: LD A, (DE)
|
||||
OR A
|
||||
RET Z
|
||||
CALL PRTCHR
|
||||
INC DE
|
||||
JR PRTSTR
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Print character in A
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
PRTCHR: PUSH BC
|
||||
PUSH DE
|
||||
PUSH HL
|
||||
LD E, A
|
||||
LD C, 2
|
||||
CALL BDOS
|
||||
POP HL
|
||||
POP DE
|
||||
POP BC
|
||||
RET
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Print CR/LF
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
CRLF: LD A, CR
|
||||
CALL PRTCHR
|
||||
LD A, LF
|
||||
CALL PRTCHR
|
||||
RET
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Messages
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
MSG_HEADER: .DB CR, LF
|
||||
.DB "VGM Music Chip Scanner v1.1 - 06-Dec-2025", CR, LF
|
||||
.DB "(c)2025 Joao Miguel Duraes - MIT License", CR, LF
|
||||
.DB CR, LF
|
||||
.DB "Filename Chips Used", CR, LF
|
||||
.DB 0
|
||||
|
||||
MSG_DIVIDER: .DB "======== =====================", CR, LF
|
||||
.DB 0
|
||||
|
||||
MSG_NOFILES: .DB "No .VGM files found in current directory", CR, LF
|
||||
.DB 0
|
||||
|
||||
MSG_SN76489: .DB "SN76489", 0
|
||||
MSG_SN76489X2: .DB "2xSN76489", 0
|
||||
MSG_YM2612: .DB "YM2612", 0
|
||||
MSG_YM2612X2: .DB "2xYM2612", 0
|
||||
MSG_YM2151: .DB "YM2151", 0
|
||||
MSG_YM2151X2: .DB "2xYM2151", 0
|
||||
MSG_OPL2: .DB "YM3812", 0
|
||||
MSG_OPL3: .DB "YMF262", 0
|
||||
MSG_AY8910: .DB "AY-3-8910", 0
|
||||
MSG_AY8910X2: .DB "2xAY-3-8910", 0
|
||||
MSG_UNKNOWN: .DB "Unknown/None", 0
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Data area
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
; Search FCB for *.VGM
|
||||
SEARCH_FCB: .DB 0 ; Default drive
|
||||
.DB '?','?','?','?','?','?','?','?' ; Filename (wildcard)
|
||||
.DB 'V','G','M' ; Extension
|
||||
.FILL 24, 0 ; Rest of FCB
|
||||
|
||||
; FCB for opening files
|
||||
FILE_FCB: .DB 0 ; Default drive
|
||||
.FILL 35, 0 ; Rest of FCB
|
||||
|
||||
DIR_CODE: .DB 0 ; Directory code from search
|
||||
CHIP_FLAGS: .DB 0 ; Detected chip flags
|
||||
; bit0 SN76489 #1, bit1 SN76489 #2
|
||||
; bit2 YM2612 #1, bit3 YM2612 #2
|
||||
; bit4 YM2151 #1, bit5 YM2151 #2
|
||||
; bit6 AY #1, bit7 AY #2
|
||||
CHIP_TYPES: .DB 0 ; Chip types present from header
|
||||
; bit0 SN76489, bit1 YM2612
|
||||
; bit2 YM2151, bit3 AY-3-8910
|
||||
; bit4 OPL2 (YM3812), bit5 OPL3 (YMF262)
|
||||
|
||||
SUM_LO: .DB 0 ; Low byte of 16-bit checksum
|
||||
SUM_HI: .DB 0 ; High byte of 16-bit checksum
|
||||
DBG_SUM: .DB 0 ; 0=disable checksum print, non-zero=enable
|
||||
|
||||
; Buffer for VGM header + first data sector (256 bytes)
|
||||
VGMBUF: .FILL 512, 0
|
||||
|
||||
; Stack space
|
||||
.FILL 64, 0
|
||||
STACK: .DW 0
|
||||
|
||||
.END
|
||||
88
Source/Apps/VGM/vgminfo.txt
Normal file
88
Source/Apps/VGM/vgminfo.txt
Normal file
@@ -0,0 +1,88 @@
|
||||
VGM File Info Scanner for CP/M
|
||||
===============================
|
||||
|
||||
A utility that scans all .VGM files in the current directory and
|
||||
displays a table showing which audio chips each file uses.
|
||||
|
||||
Version 1.1 uses a hybrid detection approach:
|
||||
- Checks VGM header clock values to detect chip types
|
||||
- Scans VGM command stream to detect multiple instances of same chip type
|
||||
|
||||
Usage:
|
||||
------
|
||||
|
||||
Simply run the program from a directory containing VGM files:
|
||||
|
||||
VGMINFO
|
||||
|
||||
No command line arguments are needed. The program will automatically scan
|
||||
all .VGM files in the current directory.
|
||||
|
||||
Output:
|
||||
-------
|
||||
|
||||
The program displays a formatted table with two columns:
|
||||
- Filename: The name of the VGM file
|
||||
- Chips Used: A comma-separated list of audio chips used in that file
|
||||
|
||||
Supported Chips:
|
||||
----------------
|
||||
|
||||
The program can detect the following audio chips:
|
||||
- SN76489 (PSG - Programmable Sound Generator)
|
||||
- YM2612 (FM Synthesis chip used in Sega Genesis/Mega Drive)
|
||||
- YM2151 (OPM - FM Operator Type-M)
|
||||
- YM3812 (OPL2 - FM synthesis chip)
|
||||
- YMF262 (OPL3 - Enhanced FM synthesis chip)
|
||||
- AY-3-8910 (PSG used in many arcade and home computers)
|
||||
|
||||
Example Output:
|
||||
---------------
|
||||
|
||||
VGM Music Chip Scanner v1.1
|
||||
|
||||
Filename Chips Used
|
||||
======== =====================
|
||||
BGM 2xAY-3-8910
|
||||
ENDING AY-3-8910
|
||||
INCHINA YM2612
|
||||
SHIRAKAW SN76489, YM2612
|
||||
STARTDEM 2xSN76489, AY-3-8910
|
||||
WONDER01 2xSN76489
|
||||
======== =====================
|
||||
|
||||
Notes:
|
||||
------
|
||||
|
||||
- The program reads the VGM file headers and scans up to 255 commands from
|
||||
the VGM data stream for accurate chip detection.
|
||||
|
||||
- Files that don't have a valid VGM header are silently skipped.
|
||||
|
||||
- Chip detection uses a hybrid approach:
|
||||
* VGM header clock values (offsets 0x0C, 0x2C, 0x30, 0x74) determine
|
||||
which chip types are present
|
||||
* Command stream scanning detects multiple instances (e.g., "2xSN76489")
|
||||
|
||||
- AY-3-8910 clock detection respects VGM version - only checked for v1.51+
|
||||
to avoid false positives from invalid header data in older VGM versions.
|
||||
|
||||
Building:
|
||||
---------
|
||||
|
||||
To rebuild from source:
|
||||
|
||||
build_vgminfo.cmd
|
||||
|
||||
Or manually with TASM:
|
||||
|
||||
tasm -t80 -b -g3 -fFF vgminfo.asm vgminfo.com
|
||||
|
||||
Author:
|
||||
-------
|
||||
|
||||
Created for RomWBW/CP/M systems
|
||||
Based on VGM format specification from vgmrips.net
|
||||
|
||||
An AI LLM was utilized in the creation of this
|
||||
application.
|
||||
@@ -34,131 +34,175 @@ P8X180 .equ 1
|
||||
RCBUS .equ 2
|
||||
sbcecb .equ 3
|
||||
MBC .equ 4
|
||||
RCBUSMSX .equ 5 ; Ports configured as per MSX
|
||||
;
|
||||
plt_romwbw .equ 1 ; Build for ROMWBW?
|
||||
plt_type .equ sbcecb ; Select build configuration
|
||||
debug .equ 0 ; Display port, register, config info
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Platform specific definitions. If building for ROMWBW, these may be overridden
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
#IF (plt_type=custom)
|
||||
RSEL .equ 09AH ; Primary AY-3-8910 Register selection
|
||||
RDAT .equ 09BH ; Primary AY-3-8910 Register data
|
||||
RSEL2 .equ 88H ; Secondary AY-3-8910 Register selection
|
||||
RDAT2 .equ 89H ; Secondary AY-3-8910 Register data
|
||||
VGMBASE .equ $C0
|
||||
YMSEL .equ VGMBASE+00H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
YMDAT .equ VGMBASE+01H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YM2SEL .equ VGMBASE+02H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YM2DAT .equ VGMBASE+03H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
PSG1REG .equ VGMBASE+04H ; Primary SN76489
|
||||
PSG2REG .equ VGMBASE+05H ; Secondary SN76489
|
||||
YM2151_SEL1 .equ VGMBASE+08H ; Primary YM2151 register selection
|
||||
YM2151_DAT1 .equ VGMBASE+09H ; Primary YM2151 register data
|
||||
YM2151_SEL2 .equ VGMBASE+0AH ; Secondary YM2151 register selection
|
||||
YM2151_DAT2 .equ VGMBASE+0BH ; Secondary YM2151 register data
|
||||
ctcbase .equ VGMBASE+0CH ; CTC base address
|
||||
plt_cpuspd .equ 6;000000 ; Non ROMWBW cpu speed default
|
||||
FRAME_DLY .equ 10 ; Frame delay (~ 1/44100)
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=P8X180)
|
||||
RSEL .equ 82H ; Primary AY-3-8910 Register selection
|
||||
RDAT .equ 83H ; Primary AY-3-8910 Register data
|
||||
RSEL2 .equ 88H ; Secondary AY-3-8910 Register selection
|
||||
RDAT2 .equ 89H ; Secondary AY-3-8910 Register data
|
||||
PSG1REG .equ 84H ; Primary SN76489
|
||||
PSG2REG .equ 8AH ; Secondary SN76489
|
||||
YM2151_SEL1 .equ 0B0H ; Primary YM2151 register selection
|
||||
YM2151_DAT1 .equ 0B1H ; Primary YM2151 register data
|
||||
YM2151_SEL2 .equ 0B2H ; Secondary YM2151 register selection
|
||||
YM2151_DAT2 .equ 0B3H ; Secondary YM2151 register data
|
||||
ctcbase .equ 000H ; CTC base address
|
||||
YMSEL .equ 000H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
YMDAT .equ 000H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YM2SEL .equ 000H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YM2DAT .equ 000H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
FRAME_DLY .equ 48 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 20 ; Non ROMWBW cpu speed default
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=RCBUS)
|
||||
RSEL .equ 0D8H ; AYMODE_RCZ80 ; Primary AY-3-8910 Register selection
|
||||
RDAT .equ 0D0H ; AYMODE_RCZ80 ; Primary AY-3-8910 Register data
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
PSG1REG .equ 0FFH ; SNMODE_RC ! ; Primary SN76489
|
||||
PSG2REG .equ 0FBH ; SNMODE_RC ; Secondary SN76489
|
||||
YM2151_SEL1 .equ 0FEH ; ED BRINDLEY ; Primary YM2151 register selection
|
||||
YM2151_DAT1 .equ 0FFH ; ED BRINDLEY ! ; Primary YM2151 register data
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
ctcbase .equ 000H ; UNDEFINED ; CTC base address
|
||||
YMSEL .equ 000H ; UNDEFINED ; Primary YM2162 11000000 a1=0 a0=0
|
||||
YMDAT .equ 000H ; UNDEFINED ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YM2SEL .equ 000H ; UNDEFINED ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YM2DAT .equ 000H ; UNDEFINED ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
plt_cpuspd .equ 7;372800 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
FRAME_DLY .equ 12 ; Frame delay (~ 1/44100)
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=sbcecb)
|
||||
RSEL .equ 09AH ; AYMODE_SCG ; Primary AY-3-8910 Register selection
|
||||
RDAT .equ 09BH ; AYMODE_SCG ; Primary AY-3-8910 Register data
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
VGMBASE .equ $C0 ; ECB-VGM V2 base address
|
||||
YMSEL .equ VGMBASE+00H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
YMDAT .equ VGMBASE+01H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YM2SEL .equ VGMBASE+02H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YM2DAT .equ VGMBASE+03H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
PSG1REG .equ VGMBASE+06H ; SNMODE_VGM ; Primary SN76489
|
||||
PSG2REG .equ VGMBASE+07H ; SNMODE_VGM ; Secondary SN76489
|
||||
ctcbase .equ VGMBASE+0CH ; CTC base address
|
||||
YM2151_SEL1 .equ 000H ; UNDEFINED ; Primary YM2151 register selection
|
||||
YM2151_DAT1 .equ 000H ; UNDEFINED ; Primary YM2151 register data
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
plt_cpuspd .equ 8;000000 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
FRAME_DLY .equ 13 ; Frame delay (~ 1/44100)
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=MBC)
|
||||
RSEL .equ 0A0H ; AYMODE_MBC ; Primary AY-3-8910 Register selection
|
||||
RDAT .equ 0A1H ; AYMODE_MBC ; Primary AY-3-8910 Register data
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
YMSEL .equ 000H ; UNDEFINED ; Primary YM2162 11000000 a1=0 a0=0
|
||||
YMDAT .equ 000H ; UNDEFINED ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YM2SEL .equ 000H ; UNDEFINED ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YM2DAT .equ 000H ; UNDEFINED ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
PSG1REG .equ 000H ; UNDEFINED ; Primary SN76489
|
||||
PSG2REG .equ 000H ; UNDEFINED ; Secondary SN76489
|
||||
ctcbase .equ 000H ; UNDEFINED ; CTC base address
|
||||
YM2151_SEL1 .equ 000H ; UNDEFINED ; Primary YM2151 register selection
|
||||
YM2151_DAT1 .equ 000H ; UNDEFINED ; Primary YM2151 register data
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
plt_cpuspd .equ 8;000000 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
FRAME_DLY .equ 13 ; UNDEFINED ; Frame delay (~ 1/44100)
|
||||
|
||||
#ENDIF
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Configure timing loop
|
||||
; Configure timing loop
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
cpu_loop: .equ 0
|
||||
ctc_poll: .equ 1
|
||||
ctc_int: .equ 2 ; not implemented
|
||||
hbios_tmr: .equ 3 ; use hbios 50hz or 60hz timer to calculate a fdelay value (plt_romwbw must be set)
|
||||
;
|
||||
delay_type: .equ cpu_loop ; cpu timed loop or utilize ctc
|
||||
delay_type: .equ hbios_tmr ; cpu timed loop or utilize ctc
|
||||
delay_wait .equ 0 ; funny wait mode for ctc
|
||||
;
|
||||
D60 .equ 735 ; 735x60=44100 Frame delay values for ntsc
|
||||
D50 .equ 882 ; 882x50=44100 Frame delay values for pal
|
||||
|
||||
#IF (delay_type==hbios_tmr)
|
||||
#IF (plt_romwbw!=1)
|
||||
## Assembly configuration Error
|
||||
## Must have plt_romwbw set, for delay_type==hbios_tmr
|
||||
#ENDIF
|
||||
#ENDIF
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Platform specific definitions. If building for ROMWBW, these may be overridden
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
#IF (plt_type=custom)
|
||||
VGMBASE .equ $C0
|
||||
|
||||
ctcbase .equ VGMBASE+0CH ; CTC base address
|
||||
FRAME_DLY .equ 10 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 6;000000 ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ VGMBASE+04H ; Primary SN76489
|
||||
PSG2REG .equ VGMBASE+05H ; Secondary SN76489
|
||||
RDAT .equ 09BH ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 89H ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 09AH ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 88H ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ VGMBASE+09H ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ VGMBASE+0BH ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ VGMBASE+08H ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ VGMBASE+0AH ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ VGMBASE+03H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ VGMBASE+02H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ VGMBASE+01H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ VGMBASE+00H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=P8X180)
|
||||
ctcbase .equ 000H ; CTC base address
|
||||
FRAME_DLY .equ 48 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 20 ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ 84H ; Primary SN76489
|
||||
PSG2REG .equ 8AH ; Secondary SN76489
|
||||
RDAT .equ 83H ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 89H ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 82H ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 88H ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ 0B1H ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ 0B3H ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ 0B0H ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ 0B2H ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ 000H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ 000H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ 000H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ 000H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=RCBUS)
|
||||
ctcbase .equ 000H ; UNDEFINED ; CTC base address
|
||||
FRAME_DLY .equ 12 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 7;372800 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ 0FFH ; SNMODE_RC ! ; Primary SN76489
|
||||
PSG2REG .equ 0FBH ; SNMODE_RC ; Secondary SN76489
|
||||
RDAT .equ 0D0H ; AYMODE_RCZ80 ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 0D8H ; AYMODE_RCZ80 ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ 0FFH ; ED BRINDLEY ! ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ 0FEH ; ED BRINDLEY ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ 000H ; UNDEFINED ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ 000H ; UNDEFINED ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ 000H ; UNDEFINED ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ 000H ; UNDEFINED ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=sbcecb)
|
||||
VGMBASE .equ $C0 ; ECB-VGM V2 base address
|
||||
|
||||
ctcbase .equ VGMBASE+0CH ; CTC base address
|
||||
FRAME_DLY .equ 13 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 8;000000 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ VGMBASE+06H ; SNMODE_VGM ; Primary SN76489
|
||||
PSG2REG .equ VGMBASE+07H ; SNMODE_VGM ; Secondary SN76489
|
||||
RDAT .equ 09BH ; AYMODE_SCG ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 09AH ; AYMODE_SCG ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ 000H ; UNDEFINED ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ 000H ; UNDEFINED ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ VGMBASE+03H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ VGMBASE+02H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ VGMBASE+01H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ VGMBASE+00H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
;
|
||||
#IF (plt_type=MBC)
|
||||
ctcbase .equ 000H ; UNDEFINED ; CTC base address
|
||||
FRAME_DLY .equ 13 ; UNDEFINED ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 8;000000 ; CPUOSC ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ 000H ; UNDEFINED ; Primary SN76489
|
||||
PSG2REG .equ 000H ; UNDEFINED ; Secondary SN76489
|
||||
RDAT .equ 0A1H ; AYMODE_MBC ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 0A0H ; AYMODE_MBC ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 000H ; UNDEFINED ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ 000H ; UNDEFINED ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ 000H ; UNDEFINED ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ 000H ; UNDEFINED ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ 000H ; UNDEFINED ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ 000H ; UNDEFINED ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ 000H ; UNDEFINED ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ 000H ; UNDEFINED ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ 000H ; UNDEFINED ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
|
||||
#IF (plt_type=RCBUSMSX)
|
||||
VGMBASE .equ $C0
|
||||
|
||||
ctcbase .equ VGMBASE+0CH ; CTC base address
|
||||
FRAME_DLY .equ 10 ; Frame delay (~ 1/44100)
|
||||
plt_cpuspd .equ 6;000000 ; Non ROMWBW cpu speed default
|
||||
PSG1REG .equ VGMBASE+04H ; Primary SN76489
|
||||
PSG2REG .equ VGMBASE+05H ; Secondary SN76489
|
||||
RDAT .equ 0A1H ; Primary AY-3-8910 Register data
|
||||
RDAT2 .equ 0A1H ; Secondary AY-3-8910 Register data
|
||||
RSEL .equ 0A0H ; Primary AY-3-8910 Register selection
|
||||
RSEL2 .equ 0A0H ; Secondary AY-3-8910 Register selection
|
||||
YM2151_DAT1 .equ VGMBASE+09H ; Primary YM2151 register data
|
||||
YM2151_DAT2 .equ VGMBASE+0BH ; Secondary YM2151 register data
|
||||
YM2151_SEL1 .equ VGMBASE+08H ; Primary YM2151 register selection
|
||||
YM2151_SEL2 .equ VGMBASE+0AH ; Secondary YM2151 register selection
|
||||
YM2413_DAT1 .equ 7DH ; YM2413 Data Register
|
||||
YM2413_SEL1 .equ 7CH ; YM2413 Address Register
|
||||
YM2DAT .equ VGMBASE+03H ; Secondary YM2162 11000011 a1=1 a0=1
|
||||
YM2SEL .equ VGMBASE+02H ; Secondary YM2162 11000010 a1=1 a0=0
|
||||
YMDAT .equ VGMBASE+01H ; Primary YM2162 11000001 a1=0 a0=1
|
||||
YMSEL .equ VGMBASE+00H ; Primary YM2162 11000000 a1=0 a0=0
|
||||
#ENDIF
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; CTC Defaults
|
||||
@@ -239,6 +283,8 @@ VGM_W882 .equ 063H ; WAIT 882 SAMPLES (1/50TH SECOND)
|
||||
VGM_ESD .equ 066H ; END OF SOUND DATA
|
||||
VGM_YM21511_W .equ 054H ; YM2151 #1 WRITE VALUE DD
|
||||
VGM_YM21512_W .equ 0A4H ; YM2151 #2 WRITE VALUE DD
|
||||
VGM_AY .equ 0A0H ; AY-3-8910
|
||||
VGM_YM2413 .equ 051H ; YM2413, write value dd to register aa
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Generic CP/M definitions
|
||||
@@ -270,7 +316,11 @@ LF .equ 0AH ; line feed
|
||||
;
|
||||
CALL vgmsetup ; Device setup
|
||||
call welcome ; Welcome message and build debug info
|
||||
#IF (delay_type==hbios_tmr)
|
||||
call bcpu
|
||||
#ENDIF
|
||||
call vgmreadr ; read in the vgm file
|
||||
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Play loop
|
||||
@@ -288,7 +338,7 @@ MAINLOOP CALL PLAY ; Play one frame
|
||||
OR A
|
||||
JR NZ,EXIT
|
||||
NO_CHK:
|
||||
#IF (delay_type==cpu_loop)
|
||||
#IF ((delay_type==cpu_loop) | (delay_type==hbios_tmr))
|
||||
vdelay: .equ $+1
|
||||
ld hl,vdelay
|
||||
fdelay: .equ $+1
|
||||
@@ -323,7 +373,7 @@ lp3: in a,(ctcch3) ; wait for counter to reach zero
|
||||
;
|
||||
#IF (delay_type==ctc_int)
|
||||
#ENDIF
|
||||
;
|
||||
|
||||
JP MAINLOOP
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
@@ -393,7 +443,7 @@ HASEXT: LD C,OPENF ; Open File
|
||||
LD (FCBCR), A
|
||||
LD DE, VGMDATA
|
||||
LD (VGMPOS), DE
|
||||
RLOOP
|
||||
RLOOP
|
||||
; LD A,(TOPM) ; CBIOS start
|
||||
; SUB 10h ; Less BDOS = Top Memory Page
|
||||
LD A,$D6 ; Hardcoded top of memory
|
||||
@@ -452,15 +502,39 @@ PSG CP VGM_PSG1_W ; Write byte to SN76489.
|
||||
JR NEXT
|
||||
|
||||
PSG2 CP VGM_PSG2_W ; Write byte to second SN76489.
|
||||
JR NZ, AY
|
||||
JR NZ, YM2413
|
||||
LD A, (HL)
|
||||
INC HL
|
||||
OUT (PSG2REG), A
|
||||
SET 1,(IX+0)
|
||||
JR NEXT
|
||||
|
||||
; AY-3-8910 SECTION
|
||||
;
|
||||
; YM2413 (MSX-MUSIC) SECTION
|
||||
YM2413:
|
||||
CP VGM_YM2413
|
||||
JR NZ, AY
|
||||
|
||||
LD A, (HL) ; aa (register)
|
||||
|
||||
OUT (YM2413_SEL1), A
|
||||
|
||||
IN A, (YM2413_SEL1) ; wait 12 / 3.58 µs
|
||||
IN A, (YM2413_SEL1) ; "
|
||||
|
||||
INC HL
|
||||
LD A, (HL) ; dd (value)
|
||||
INC HL
|
||||
|
||||
OUT (YM2413_DAT1),A
|
||||
PUSH AF
|
||||
POP AF
|
||||
|
||||
SET 2,(IX+1) ; FLAG YM2413
|
||||
|
||||
JR NEXT
|
||||
|
||||
; AY-3-8910 SECTION
|
||||
AY CP 0A0H
|
||||
JR NZ,YM2162_1
|
||||
LD A, (HL)
|
||||
@@ -628,6 +702,15 @@ VGMDEVICES: LD DE,MSG_PO ; Played on ...
|
||||
; PUSH AF
|
||||
;
|
||||
LD A,(IX+1)
|
||||
|
||||
BIT 2, A
|
||||
JR Z, SKIPX
|
||||
|
||||
LD DE, MSG_YM2413
|
||||
CALL PRTSTR
|
||||
|
||||
|
||||
SKIPX:
|
||||
LD DE,MSG_UNK ; Unknown Device Code detected
|
||||
; CALL CHKDEV
|
||||
;
|
||||
@@ -1092,7 +1175,54 @@ SKIP3: LD A,(IX+0) ; For YM2151 ... Unimplemented
|
||||
s2151reg($27,$00)
|
||||
;
|
||||
|
||||
SKIP4 RET
|
||||
SKIP4 BIT 2,(IX+1) ; mute all channels on YM2413
|
||||
JP Z,SKIP5
|
||||
|
||||
ld de,000EH
|
||||
call YM2413_WR ; rhythm off
|
||||
ld de,0F07H
|
||||
call YM2413_WR ; max carrier release rate
|
||||
ld b,9
|
||||
ld de,0F30H
|
||||
call YM2413_FILL ; instrument 0, min volume
|
||||
ld b,9
|
||||
ld de,0010H
|
||||
call YM2413_FILL ; frequency 0
|
||||
ld b,9
|
||||
ld de,0020H
|
||||
jr YM2413_FILL ; key off
|
||||
|
||||
SKIP5:
|
||||
RET
|
||||
|
||||
; e = register
|
||||
; d = value
|
||||
; ix = this
|
||||
YM2413_WR:
|
||||
ld a,e
|
||||
out (YM2413_SEL1),a
|
||||
ld a,d
|
||||
push af
|
||||
push af
|
||||
pop af
|
||||
pop af
|
||||
out (YM2413_DAT1),a
|
||||
ret
|
||||
|
||||
|
||||
; b = count
|
||||
; e = register base
|
||||
; d = value
|
||||
; ix = this
|
||||
YM2413_FILL:
|
||||
push bc
|
||||
push de
|
||||
call YM2413_WR
|
||||
pop de
|
||||
pop bc
|
||||
inc e
|
||||
djnz YM2413_FILL
|
||||
ret
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Hardware specific routines.
|
||||
@@ -1157,8 +1287,9 @@ MSG_YM2612: .DB "xYM-2612 ",0
|
||||
MSG_SN: .DB "xSN76489 ",0
|
||||
MSG_AY: .DB "xAY-3-8910 ",0
|
||||
MSG_YM2151: .DB "xYM-2151 ",0
|
||||
MSG_YM2413: .DB "YM2413", 0
|
||||
MSG_UNK: .DB "xUnsupported device encountered", CR, LF, 0
|
||||
MSG_EXIT: .DB "FINISHED.",CR,LF,0
|
||||
MSG_EXIT: .DB CR, LF, "FINISHED.",CR,LF,0
|
||||
MSG_NOFILE: .DB "File not found", CR, LF, 0
|
||||
MSG_MEM: .DB "File to big", CR, LF, 0
|
||||
MSG_TITLE: .DB " from: ",0
|
||||
@@ -1166,12 +1297,16 @@ MSG_TRACK .DB "Playing: ",0
|
||||
MSG_CPU .DB "[cpu]",0
|
||||
MSG_CTCPOLL .DB "[ctc polled]",0
|
||||
MSG_CTCINT .DB "[ctc interrupts]",0
|
||||
MSG_HBIOSTMR .DB "[hbios timer]",0
|
||||
|
||||
MSG_ROMWBW .DB " [romwbw] ",0
|
||||
|
||||
MSG_CUSTOM .DB " [custom] ",0
|
||||
MSG_P8X180 .DB " [p8x180] ",0
|
||||
MSG_RCBUS .DB " [RCBus] ",0
|
||||
MSG_SBCECB .DB " [sbc] ",0
|
||||
MSG_MBC .DB " [mbc] ",0
|
||||
MSG_RCBUSMSX .DB " [RCBus-MSX] ",0
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Variables
|
||||
@@ -1190,7 +1325,7 @@ VGM_DEV .DB %00000000 ; IX+0 Flags for devices
|
||||
.DB %00000000 ; IX+1 Unimplemented device flags & future devices
|
||||
;
|
||||
OLDSTACK .DW 0 ; original stack pointer
|
||||
.FILL 40H ; space for stack
|
||||
.FILL 80H ; space for stack
|
||||
STACK .DW 0 ; top of stack
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
@@ -1242,7 +1377,7 @@ welcome: LD DE,MSG_WELC ; Welcome Message
|
||||
CALL PRTSTR
|
||||
#ENDIF
|
||||
;
|
||||
LD A,delay_type ; display build type
|
||||
LD A,delay_type ; display delay type
|
||||
LD DE,MSG_CPU
|
||||
CALL PRTIDXDEA
|
||||
;
|
||||
@@ -1252,7 +1387,7 @@ welcome: LD DE,MSG_WELC ; Welcome Message
|
||||
call CRLF
|
||||
;
|
||||
#IF (debug)
|
||||
#IF (delay_type==cpu_loop)
|
||||
#IF ((delay_type==cpu_loop) | (delay_type==hbios_tmr))
|
||||
ld a,'f' ; Display frame rate delay
|
||||
call PRTCHR
|
||||
call PRTDOT
|
||||
@@ -1285,6 +1420,146 @@ welcome: LD DE,MSG_WELC ; Welcome Message
|
||||
#ENDIF
|
||||
CALL CRLF
|
||||
ret
|
||||
|
||||
|
||||
#IF (delay_type==hbios_tmr)
|
||||
bcpu:
|
||||
CALL hbios_tmr_enabled
|
||||
JP z, setfdelay
|
||||
|
||||
LD DE, MSG_BENCHMARK
|
||||
CALL PRTSTR
|
||||
|
||||
; get current timer tick value
|
||||
LD BC, $F8D0 ; GET TIMER TICKS
|
||||
RST 08 ; FROM HBIOS
|
||||
; hl is current timer tick value
|
||||
; c is freq
|
||||
LD A, L
|
||||
PUSH AF
|
||||
|
||||
; sync to next timer tick
|
||||
; or timeout if there is no timer
|
||||
bc1:
|
||||
LD BC, $F8D0 ; GET TIMER TICKS
|
||||
RST 08 ; FROM HBIOS
|
||||
|
||||
POP AF
|
||||
PUSH AF
|
||||
CP L
|
||||
JR Z, bc1
|
||||
|
||||
POP AF
|
||||
LD H, L
|
||||
PUSH HL ; save current tick value
|
||||
|
||||
LD B, 0
|
||||
LD HL, 2000
|
||||
bc2:
|
||||
DJNZ $
|
||||
|
||||
DEC HL
|
||||
LD A, H
|
||||
OR L
|
||||
JR NZ, bc2
|
||||
|
||||
LD BC, $F8D0 ; GET TIMER TICKS
|
||||
RST 08 ; FROM HBIOS
|
||||
|
||||
LD A, L
|
||||
POP HL
|
||||
; h is starting timer tick
|
||||
; a is current timer tick
|
||||
|
||||
; calculate a-l
|
||||
SUB L
|
||||
#IF (debug)
|
||||
CALL CRLF
|
||||
CALL PRTDOT
|
||||
CALL PRTDECB
|
||||
CALL PRTDOT
|
||||
#ENDIF
|
||||
; c is TICKFREQ
|
||||
; conversion rates are 50Hz -> 580, 60Hz -> 697
|
||||
|
||||
LD HL, 580
|
||||
PUSH AF
|
||||
LD A, C
|
||||
CP 50
|
||||
JR Z, bc3
|
||||
LD HL, 697
|
||||
bc3:
|
||||
POP AF
|
||||
LD C, A
|
||||
CALL divide_16_by_8
|
||||
|
||||
LD A, L
|
||||
#IF (debug)
|
||||
CALL PRTDECB
|
||||
#ENDIF
|
||||
CALL CRLF
|
||||
|
||||
LD (fdelay), A
|
||||
RET
|
||||
|
||||
; determine if hbios's timer is installed
|
||||
; returns:
|
||||
; A == 0 & Z if no timer
|
||||
; A != 0 & NZ if timer
|
||||
hbios_tmr_enabled:
|
||||
LD BC, $F8D0 ; GET TIMER TICKS
|
||||
RST 08 ; FROM HBIOS
|
||||
|
||||
PUSH HL ; save current ticks
|
||||
|
||||
; loop for a bit
|
||||
LD B, 0
|
||||
LD HL, 500
|
||||
tme1:
|
||||
DJNZ $
|
||||
|
||||
DEC HL
|
||||
LD A, H
|
||||
OR L
|
||||
JR NZ, tme1
|
||||
|
||||
LD BC, $F8D0 ; GET TIMER TICKS
|
||||
RST 08 ; FROM HBIOS
|
||||
|
||||
LD A, L
|
||||
POP HL
|
||||
|
||||
; if a == l then probably no timer
|
||||
SUB L
|
||||
RET
|
||||
|
||||
; c = divisor
|
||||
; hl = dividend
|
||||
; a <- remainder
|
||||
; c <- divisor unchanged
|
||||
; hl <- quotient
|
||||
divide_16_by_8:
|
||||
XOR A
|
||||
LD B, 16
|
||||
div_loop:
|
||||
ADD HL, HL
|
||||
RLA
|
||||
JR C, div_overflow
|
||||
CP C
|
||||
JR C, div_zero
|
||||
div_overflow:
|
||||
INC L
|
||||
SUB C
|
||||
div_zero:
|
||||
DJNZ div_loop
|
||||
RET
|
||||
|
||||
MSG_BENCHMARK:
|
||||
.DB "Benchmarking CPU ...", 0
|
||||
|
||||
#ENDIF
|
||||
|
||||
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
; Probe HBIOS for devices and patch in I/O ports for devices
|
||||
@@ -1296,8 +1571,8 @@ cfgports: ret
|
||||
; Setup frame delay value - Loop count for DJNZ $ loop
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
#IF ((delay_type==cpu_loop) | (delay_type==hbios_tmr))
|
||||
setfdelay:
|
||||
#IF (delay_type==cpu_loop)
|
||||
#IF (plt_romwbw)
|
||||
LD BC,$F8F0 ; GET CPU SPEED
|
||||
RST 08 ; FROM HBIOS
|
||||
|
||||
@@ -50,6 +50,10 @@ VYEAR EQU 86
|
||||
NO EQU 0
|
||||
YES EQU NOT NO
|
||||
;
|
||||
; Add debugging code?
|
||||
;
|
||||
DEBUG EQU NO
|
||||
;
|
||||
; Define ASCII characters used
|
||||
;
|
||||
BS EQU 08H ; Backspace character
|
||||
@@ -2258,7 +2262,14 @@ RCVRPT: IF CONFUN ; Check for function key?
|
||||
CALL RECV ; Get any character received
|
||||
JC RCVSTOT ; Timeout
|
||||
;
|
||||
RCVRPTB:CPI SOH ; 'SOH' for a 128-byte block?
|
||||
RCVRPTB:
|
||||
IF DEBUG
|
||||
CALL ILPRT
|
||||
DB CR,LF,0
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
|
||||
CPI SOH ; 'SOH' for a 128-byte block?
|
||||
JZ RCVSOH ; Yes
|
||||
CPI STX ; A 1024-byte block?
|
||||
JZ RCVSTX ;
|
||||
@@ -2343,7 +2354,13 @@ DELFILE:LXI D,FCB ; Point to file
|
||||
;
|
||||
;RCVSTOT:JMP RCVSERR ; Bump error count, etc.
|
||||
; [WBW] Bypass line flush if error is timeout
|
||||
RCVSTOT:JMP RCVSER1 ; Bump error count, etc.
|
||||
RCVSTOT:
|
||||
IF DEBUG
|
||||
CALL ILPRT
|
||||
DB 'Timeout',CR,LF,0
|
||||
ENDIF
|
||||
|
||||
JMP RCVSER1 ; Bump error count, etc.
|
||||
;
|
||||
; Got SOH or STX - get block number, block number complemented
|
||||
;
|
||||
@@ -2360,10 +2377,16 @@ RCVHDR: SHLD BLKSIZ ; Store block size for later
|
||||
MVI A,1 ; Need something to store at FRSTIM
|
||||
STA FRSTIM ; Indicate first 'SOH' received
|
||||
CALL RECV ; Get record
|
||||
IF DEBUG
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
JC RCVSTOT ; Got timeout
|
||||
MOV D,A ; D=block number
|
||||
MVI B,1 ; Timeout = 1 sec
|
||||
CALL RECV ; Get complimented record number
|
||||
IF DEBUG
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
JC RCVSTOT ; Timeout
|
||||
CMA ; Calculate the complement
|
||||
CMP D ; Good record number?
|
||||
@@ -2383,6 +2406,9 @@ RCVDATA:MOV A,D ; Get record number
|
||||
;
|
||||
RCVCHR: MVI B,1 ; 1 sec timeout
|
||||
CALL RECV ; Get the character
|
||||
IF DEBUG
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
JC RCVSTOT ; Timeout
|
||||
MOV M,A ; Store the character
|
||||
INX H ; Point to next character
|
||||
@@ -2421,15 +2447,30 @@ CHKSNUM:LDA RCVRNO ; Get received
|
||||
; record, else send a NAK requesting the record be sent again.
|
||||
;
|
||||
RCVCRC: MVI E,2 ; Number of bytes to receive
|
||||
IF DEBUG
|
||||
CALL ILPRT
|
||||
DB CR,LF,0
|
||||
ENDIF
|
||||
;
|
||||
RCVCRC2:MVI B,1 ; 1 sececond timeout
|
||||
CALL RECV ; Get crc byte
|
||||
IF DEBUG
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
JC RCVSTOT ; Timeout
|
||||
DCR E ; Decrement the number of bytes
|
||||
JNZ RCVCRC2 ; Get both bytes
|
||||
IF DEBUG
|
||||
CALL ILPRT
|
||||
DB CR,LF,0
|
||||
ENDIF
|
||||
CALL CHKCRC ; Check received CRC against calc'd CRC
|
||||
ORA A ; Is CRC okay?
|
||||
JZ CHKSNUM ; Yes, go check record numbers
|
||||
IF DEBUG
|
||||
CALL ILPRT
|
||||
DB 'CRC Err',CR,LF,0
|
||||
ENDIF
|
||||
JMP RCVSERR ; Go check error limit and send NAK
|
||||
;
|
||||
; Previous record repeated, due to the last ACK being garbaged. ACK it
|
||||
@@ -4267,6 +4308,51 @@ DKIND: LDAX D ; Get the character from the string
|
||||
DKIND1: LDA KIND ; Get the kind of file back
|
||||
RET ; Finished
|
||||
ENDIF
|
||||
;
|
||||
IF DEBUG
|
||||
;
|
||||
; PRINT THE HEX BYTE VALUE IN A
|
||||
;
|
||||
PRTHEXBYTE:
|
||||
PUSH PSW
|
||||
PUSH D
|
||||
CALL HEXASCII
|
||||
MOV A,D
|
||||
CALL CTYPE
|
||||
MOV A,E
|
||||
CALL CTYPE
|
||||
POP D
|
||||
POP PSW
|
||||
RET
|
||||
|
||||
;
|
||||
; CONVERT BINARY VALUE IN A TO ASCII HEX CHARACTERS IN DE
|
||||
;
|
||||
HEXASCII:
|
||||
MOV D,A
|
||||
CALL HEXCONV
|
||||
MOV E,A
|
||||
MOV A,D
|
||||
RLC
|
||||
RLC
|
||||
RLC
|
||||
RLC
|
||||
CALL HEXCONV
|
||||
MOV D,A
|
||||
RET
|
||||
;
|
||||
; CONVERT LOW NIBBLE OF A TO ASCII HEX
|
||||
;
|
||||
HEXCONV:
|
||||
ANI 0FH ;LOW NIBBLE ONLY
|
||||
ADI 90H
|
||||
DAA
|
||||
ACI 40H
|
||||
DAA
|
||||
RET
|
||||
;
|
||||
ENDIF
|
||||
;
|
||||
;.....
|
||||
;
|
||||
;-----------------------------------------------------------------------
|
||||
@@ -4499,15 +4585,19 @@ NIBBL: ANI 0FH ; Isolate digit
|
||||
; Inline print of message, terminates with a 0
|
||||
;
|
||||
ILPRT: XTHL ; Save HL, get HL=message
|
||||
PUSH PSW ; Save accum/flags
|
||||
;
|
||||
ILPLP: MOV A,M ; Get the character
|
||||
ILPLP:
|
||||
MOV A,M ; Get the character
|
||||
INX H ; To next character
|
||||
ORA A ; End of message?
|
||||
JZ ILPRET ; Yes, return
|
||||
CALL CTYPE ; Type the message
|
||||
JMP ILPLP ; Loop
|
||||
;
|
||||
ILPRET: XTHL ; Restore HL
|
||||
ILPRET:
|
||||
POP PSW ; Restore accum/flags
|
||||
XTHL ; Restore HL
|
||||
RET ; Past message
|
||||
;
|
||||
; Exit printing message following call
|
||||
@@ -4582,6 +4672,14 @@ MOVE: MOV A,M ; Get a character
|
||||
;
|
||||
CHKCRC: PUSH H ; Check 'CRC' bytes of received message
|
||||
LHLD CRCVAL
|
||||
|
||||
IF DEBUG
|
||||
MOV A,H
|
||||
CALL PRTHEXBYTE
|
||||
MOV A,L
|
||||
CALL PRTHEXBYTE
|
||||
ENDIF
|
||||
|
||||
MOV A,H
|
||||
ORA L
|
||||
POP H
|
||||
|
||||
@@ -239,7 +239,7 @@ IDBIO:
|
||||
;
|
||||
IDBIO1:
|
||||
; Check for RomWBW (HBIOS)
|
||||
LD HL,(0FFFEH) ; HL := HBIOS ident location
|
||||
LD HL,(0FFFCH) ; HL := HBIOS ident location
|
||||
LD A,'W' ; First byte of ident
|
||||
CP (HL) ; Compare
|
||||
JR NZ,IDBIO2 ; Not HBIOS
|
||||
|
||||
@@ -180,7 +180,7 @@ IDBIO:
|
||||
;
|
||||
IDBIO1:
|
||||
; Check for RomWBW (HBIOS)
|
||||
LD HL,(0FFFEH) ; HL := HBIOS ident location
|
||||
LD HL,(0FFFCH) ; HL := HBIOS ident location
|
||||
LD A,'W' ; First byte of ident
|
||||
CP (HL) ; Compare
|
||||
JR NZ,IDBIO2 ; Not HBIOS
|
||||
|
||||
@@ -175,7 +175,7 @@ IDBIO:
|
||||
;
|
||||
IDBIO1:
|
||||
; Check for RomWBW (HBIOS)
|
||||
LD HL,(0FFFEH) ; HL := HBIOS ident location
|
||||
LD HL,(0FFFCH) ; HL := HBIOS ident location
|
||||
LD A,'W' ; First byte of ident
|
||||
CP (HL) ; Compare
|
||||
JR NZ,IDBIO2 ; Not HBIOS
|
||||
|
||||
@@ -273,7 +273,7 @@ IDBIO:
|
||||
;
|
||||
IDBIO1:
|
||||
; Check for RomWBW (HBIOS)
|
||||
LD HL,(0FFFEH) ; HL := HBIOS ident location
|
||||
LD HL,(0FFFCH) ; HL := HBIOS ident location
|
||||
LD A,'W' ; First byte of ident
|
||||
CP (HL) ; Compare
|
||||
JR NZ,IDBIO2 ; Not HBIOS
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
; overflow when the drives are finally added
|
||||
; 2025-07-19 [D?N] Support for native USB drivers
|
||||
; 2025-08-09 [WBW] Support for ESPSD driver
|
||||
; 2025-11-10 [WBW] Support for SCSI driver
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; ToDo:
|
||||
@@ -190,7 +191,7 @@ init:
|
||||
ldir ; do the copy
|
||||
;
|
||||
; determine end of CBIOS (assume HBIOS for now)
|
||||
ld hl,($FFFE) ; get proxy start address
|
||||
ld hl,($FFFC) ; get proxy start address
|
||||
ld (bioend),hl ; save as CBIOS end address
|
||||
;
|
||||
; check for UNA (UBIOS)
|
||||
@@ -2430,7 +2431,7 @@ devtbl: ; device table
|
||||
.dw dev04, dev05, dev06, dev07
|
||||
.dw dev08, dev09, dev10, dev11
|
||||
.dw dev12, dev13, dev14, dev15
|
||||
.dw dev16, dev17
|
||||
.dw dev16, dev17, dev18
|
||||
;
|
||||
devunk .db "?",0
|
||||
dev00 .db "MD",0
|
||||
@@ -2450,9 +2451,10 @@ dev13 .db "CHUSB",0
|
||||
dev14 .db "CHSD",0
|
||||
dev15 .db "USB",0
|
||||
dev16 .db "ESPSD",0
|
||||
dev17 .equ devunk
|
||||
dev17 .db "SCSI",0
|
||||
dev18 .equ devunk
|
||||
;
|
||||
devcnt .equ 18 ; 18 device types defined
|
||||
devcnt .equ 19 ; 19 device types defined
|
||||
;
|
||||
udevram .db "RAM",0
|
||||
udevrom .db "ROM",0
|
||||
@@ -2470,10 +2472,10 @@ stack .equ $ ; stack top
|
||||
; Messages
|
||||
;
|
||||
indent .db " ",0
|
||||
msgban1 .db "ASSIGN v2.2 for RomWBW CP/M ",0
|
||||
msgban1 .db "ASSIGN v2.3 for RomWBW CP/M ",0
|
||||
msg22 .db "2.2",0
|
||||
msg3 .db "3",0
|
||||
msbban2 .db ", 9-Aug-2025",0
|
||||
msbban2 .db ",10-Dec-2025",0
|
||||
msghb .db " (HBIOS Mode)",0
|
||||
msgub .db " (UBIOS Mode)",0
|
||||
msgban3 .db "Copyright 2025, Wayne Warthen, GNU GPL v3",0
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
; ----------------
|
||||
; 0.1 - Initial Version written by Mark Pruden
|
||||
; 0.2 - Added support for /v (verify) option.
|
||||
; 0.3 - refresh CP/M disk buffers after completion
|
||||
; 0.3 - Refresh CP/M disk buffers after completion
|
||||
; 0.4 - Correct slice fit within partition calculation
|
||||
; ----------------
|
||||
;
|
||||
.ORG 100H
|
||||
@@ -273,7 +274,7 @@ exit:
|
||||
; =========================================
|
||||
;
|
||||
msg_welcome:
|
||||
.DB "CopySlice v0.3 (RomWBW) March 2025 - M.Pruden", 13, 10, 0
|
||||
.DB "CopySlice v0.4 (RomWBW) December 2025 - M.Pruden", 13, 10, 0
|
||||
msg_overite_partition:
|
||||
.DB 13,10
|
||||
.DB "Warning: Copying to Slice 0 of hd512 media, "
|
||||
@@ -951,36 +952,36 @@ slicecalc3:
|
||||
|
||||
; add sps once again, to get Required (upper sector) needed
|
||||
add hl, bc
|
||||
JR NC, slicecalc4
|
||||
jr nc, slicecalc4
|
||||
inc de
|
||||
|
||||
slicecalc4:
|
||||
; DE : HL has the total Sector requirement
|
||||
|
||||
; subtract the total Media / Partition Sixe from the Capcity
|
||||
; we are not interested in the result, just the C Flag
|
||||
;
|
||||
or a ; clear cary flag
|
||||
;
|
||||
ld c, (ix + off_lbasize +0) ; capacity LSW
|
||||
ld b, (ix + off_lbasize +1) ; capacity LSW
|
||||
sbc hl, bc ; Requirement - Capacity LSW
|
||||
;
|
||||
ex de, hl ; Requirement MSW
|
||||
ld c, (ix + off_lbasize +2) ; capacity MSW
|
||||
ld b, (ix + off_lbasize +3) ; capacity MSW
|
||||
sbc hl, bc ; Requirement - Capacity MSW
|
||||
|
||||
; pop Sector Offset
|
||||
; de:hl has the required number of sectors (on media) for the slice
|
||||
push de ; save dsk_req (msw)
|
||||
push hl ; save dsk_req (lsw)
|
||||
;
|
||||
; check dsk_capacity >= cap_required, CF set on overflow
|
||||
; no need to save actual result
|
||||
or a ; clear carry for sbc
|
||||
ld l, (ix + off_lbasize + 0) ; capacity LSW
|
||||
ld h, (ix + off_lbasize + 1) ; capacity LSW
|
||||
pop bc ; required lsw
|
||||
sbc hl, bc ; capacity - required (lsw)
|
||||
ld l, (ix + off_lbasize + 2) ; capacity MSW
|
||||
ld h, (ix + off_lbasize + 3) ; capacity MSW
|
||||
pop bc ; required msw
|
||||
sbc hl, bc ; capacity - required (msw)
|
||||
;
|
||||
; restore starting offset sector
|
||||
pop de
|
||||
pop hl
|
||||
|
||||
; Require - Capacity - generates Cary if Capity > Require
|
||||
JR C, slicecalc5 ; C -> Require - Capacity : Require <= Capacity
|
||||
;
|
||||
; capacity - required -> generates no carry if capacity >= requirement
|
||||
jr nc, slicecalc5 ; if we have enough capacity
|
||||
or 0FFh ; otherwise signal not enough capacity
|
||||
RET
|
||||
ret
|
||||
|
||||
slicecalc5:
|
||||
|
||||
; add lba offset to DEHL to get slice offset, commented code above
|
||||
ld c, (ix + off_lbaoffset+0)
|
||||
ld b, (ix + off_lbaoffset+1)
|
||||
|
||||
@@ -88,6 +88,7 @@ History
|
||||
* v 0.1 Initial Release
|
||||
* v 0.2 Added the /v command option to read and verify after write
|
||||
* v 0.3 Refresh CP/M disk buffers after completion
|
||||
* v 0.4 Correct slice fit within partition calculation
|
||||
|
||||
Future
|
||||
------
|
||||
|
||||
@@ -29,7 +29,7 @@ bf_sysres_int .equ $00 ; reset hbios internal
|
||||
bf_sysres_warm .equ $01 ; warm start (restart boot loader)
|
||||
bf_sysres_cold .equ $02 ; cold start
|
||||
;
|
||||
ident .equ $FFFE ; loc of RomWBW HBIOS ident ptr
|
||||
ident .equ $FFFC ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
;=======================================================================
|
||||
;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,299 +1,299 @@
|
||||
;==============================================================================
|
||||
; REBOOT - Allows the user to Cold or Warm Boot the RomWBW System
|
||||
; Version 1.0 12-October-2024
|
||||
;==============================================================================
|
||||
;
|
||||
; Author: MartinR (October 2024)
|
||||
; Based **very heavily** on code by Wayne Warthen (wwarthen@gmail.com)
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Usage:
|
||||
; REBOOT [/C] [/W] [/?]
|
||||
; ex: REBOOT Display version and usage
|
||||
; REBOOT /? Display version and usage
|
||||
; REBOOT /C Cold boot RomWBW system
|
||||
; REBOOT /W Warm boot RomWBW system
|
||||
;
|
||||
; Operation:
|
||||
; Cold or warm boots a RomWBW system depending on the user option selected.
|
||||
;
|
||||
; This code will only execute on a Z80 CPU (or derivitive)
|
||||
;
|
||||
; This source code assembles with TASM V3.2 under Windows-11 using the
|
||||
; following command line:
|
||||
; tasm -80 -g3 -l REBOOT.ASM REBOOT.COM
|
||||
; ie: Z80 CPU; output format 'binary' named .COM (rather than .OBJ)
|
||||
; and includes a symbol table as part of the listing file.
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Change Log:
|
||||
; 2024-09-11 [WBW] Release of RomWBW CPU Speed Selector v1.0 used as the basis
|
||||
; 2024-10-12 [MR ] Initial release of version 1.0
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Include Files
|
||||
;
|
||||
#include "../../ver.inc" ; Used for building RomWBW
|
||||
#include "../../HBIOS/hbios.inc"
|
||||
|
||||
;#include "ver.inc" ; Used for testing purposes....
|
||||
;#include "hbios.inc" ; ....during code development
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
; General operational equates (should not requre adjustment)
|
||||
;
|
||||
stksiz .equ $40 ; Working stack size
|
||||
;
|
||||
restart .equ $0000 ; CP/M restart vector
|
||||
bdos .equ $0005 ; BDOS invocation vector
|
||||
;
|
||||
bf_sysreset .equ $F0 ; restart system
|
||||
bf_sysres_int .equ $00 ; reset hbios internal
|
||||
bf_sysres_warm .equ $01 ; warm start (restart boot loader)
|
||||
bf_sysres_cold .equ $02 ; cold start
|
||||
;
|
||||
ident .equ $FFFE ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
.org $0100 ; standard CP/M TPA executable
|
||||
;
|
||||
; setup stack (save old value)
|
||||
ld (stksav),sp ; save stack
|
||||
ld sp,stack ; set new stack
|
||||
;
|
||||
call crlf
|
||||
ld de,str_banner ; banner
|
||||
call prtstr
|
||||
;
|
||||
; initialization
|
||||
call init ; initialize
|
||||
jr nz,exit ; abort if init fails
|
||||
;
|
||||
call main ; do the real work
|
||||
;
|
||||
exit:
|
||||
; clean up and return to command processor
|
||||
call crlf ; formatting
|
||||
ld sp,(stksav) ; restore stack
|
||||
jp restart ; return to CP/M via restart
|
||||
;
|
||||
;
|
||||
;===============================================================================
|
||||
; Main Program
|
||||
;===============================================================================
|
||||
;
|
||||
; Initialization
|
||||
;
|
||||
init:
|
||||
; check for UNA (UBIOS)
|
||||
ld a,($FFFD) ; fixed location of UNA API vector
|
||||
cp $C3 ; jp instruction?
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
ld hl,($FFFE) ; get jp address
|
||||
ld a,(hl) ; get byte at target address
|
||||
cp $FD ; first byte of UNA push ix instruction
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
inc hl ; point to next byte
|
||||
ld a,(hl) ; get next byte
|
||||
cp $E5 ; second byte of UNA push ix instruction
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
jp err_una ; UNA not supported
|
||||
;
|
||||
initwbw:
|
||||
; get location of config data and verify integrity
|
||||
ld hl,(ident) ; HL := adr or RomWBW HBIOS ident
|
||||
ld a,(hl) ; get first byte of RomWBW marker
|
||||
cp 'W' ; match?
|
||||
jp nz,err_inv ; abort with invalid config block
|
||||
inc hl ; next byte (marker byte 2)
|
||||
ld a,(hl) ; load it
|
||||
cp ~'W' ; match?
|
||||
jp nz,err_inv ; abort with invalid config block
|
||||
inc hl ; next byte (major/minor version)
|
||||
ld a,(hl) ; load it
|
||||
cp rmj << 4 | rmn ; match?
|
||||
jp nz,err_ver ; abort with invalid os version
|
||||
;
|
||||
initz:
|
||||
; initialization complete
|
||||
xor a ; signal success
|
||||
ret ; return
|
||||
;
|
||||
;
|
||||
;
|
||||
main:
|
||||
; skip to start of first command line parameter
|
||||
ld ix,$0081 ; point to start of parm area (past length byte)
|
||||
call nonblank ; skip to next non-blank char
|
||||
cp '/' ; option prefix?
|
||||
jr nz,usage ; display help info & exit if nothing to do
|
||||
;
|
||||
; process any options
|
||||
inc ix ; fetch next character and process
|
||||
ld a,(ix)
|
||||
call upcase ; ensure it's an upper case character
|
||||
cp 'C' ; if it's a 'C' then
|
||||
jr z,cboot ; do a cold boot.
|
||||
cp 'W' ; if it's a 'W' then
|
||||
jr z,wboot ; do a warm boot.
|
||||
cp '?' ; if it's a '?' then
|
||||
jr z,usage ; display usage info and exit.
|
||||
jr err_parm ; or not a recognised option, so report and exit.
|
||||
;
|
||||
; Handle Usage Information
|
||||
;
|
||||
usage:
|
||||
call crlf2 ; display the options for this utility
|
||||
ld de,str_usage
|
||||
call prtstr
|
||||
or $FF
|
||||
ret ; exit back out to CP/M CCP
|
||||
;
|
||||
; Handle Warm Boot
|
||||
;
|
||||
wboot:
|
||||
ld de,str_warmboot ; message
|
||||
call prtstr ; display it
|
||||
ld b,bf_sysreset ; system restart
|
||||
ld c,bf_sysres_warm ; warm start
|
||||
call $fff0 ; call hbios
|
||||
;
|
||||
; Handle Cold Boot
|
||||
;
|
||||
cboot:
|
||||
ld de,str_coldboot ; message
|
||||
call prtstr ; display it
|
||||
ld b,bf_sysreset ; system restart
|
||||
ld c,bf_sysres_cold ; cold start
|
||||
call $fff0 ; call hbios
|
||||
;
|
||||
;===============================================================================
|
||||
; Error Handlers
|
||||
;===============================================================================
|
||||
;
|
||||
err_una:
|
||||
ld de,str_err_una
|
||||
jr err_ret
|
||||
err_inv:
|
||||
ld de,str_err_inv
|
||||
jr err_ret
|
||||
err_ver:
|
||||
ld de,str_err_ver
|
||||
jr err_ret
|
||||
err_parm:
|
||||
ld de,str_err_parm
|
||||
jr err_ret
|
||||
|
||||
;
|
||||
err_ret:
|
||||
call crlf2
|
||||
call prtstr
|
||||
or $FF ; signal error
|
||||
ret
|
||||
;
|
||||
;===============================================================================
|
||||
; Utility Routines
|
||||
;===============================================================================
|
||||
;
|
||||
; Print character in A without destroying any registers
|
||||
;
|
||||
prtchr:
|
||||
push af
|
||||
push bc ; save registers
|
||||
push de
|
||||
push hl
|
||||
ld e,a ; character to print in E
|
||||
ld c,$02 ; BDOS function to output a character
|
||||
call bdos ; do it
|
||||
pop hl ; restore registers
|
||||
pop de
|
||||
pop bc
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; Start a new line
|
||||
;
|
||||
crlf2:
|
||||
call crlf ; two of them
|
||||
crlf:
|
||||
push af ; preserve AF
|
||||
ld a,13 ; <CR>
|
||||
call prtchr ; print it
|
||||
ld a,10 ; <LF>
|
||||
call prtchr ; print it
|
||||
pop af ; restore AF
|
||||
ret
|
||||
;
|
||||
; Print a zero terminated string at (de) without destroying any registers
|
||||
;
|
||||
prtstr:
|
||||
push af
|
||||
push de
|
||||
;
|
||||
prtstr1:
|
||||
ld a,(de) ; get next char
|
||||
or a
|
||||
jr z,prtstr2
|
||||
call prtchr
|
||||
inc de
|
||||
jr prtstr1
|
||||
;
|
||||
prtstr2:
|
||||
pop de ; restore registers
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; Get the next non-blank character from (ix)
|
||||
;
|
||||
nonblank:
|
||||
ld a,(ix) ; load next character
|
||||
or a ; string ends with a null
|
||||
ret z ; if null, return pointing to null
|
||||
cp ' ' ; check for blank
|
||||
ret nz ; return if not blank
|
||||
inc ix ; if blank, increment character pointer
|
||||
jr nonblank ; and loop
|
||||
;
|
||||
; Convert character in A to uppercase
|
||||
;
|
||||
upcase:
|
||||
cp 'a' ; if below 'a'
|
||||
ret c ; ... do nothing and return
|
||||
cp 'z' + 1 ; if above 'z'
|
||||
ret nc ; ... do nothing and return
|
||||
res 5,a ; clear bit 5 to make lower case -> upper case
|
||||
ret ; and return
|
||||
;
|
||||
;===============================================================================
|
||||
; Constants
|
||||
;===============================================================================
|
||||
;
|
||||
str_banner .db "RomWBW Reboot Utility, Version 1.0, 12-Oct-2024\r\n"
|
||||
.db " Wayne Warthen (wwarthen@gmail.com) & MartinR",0
|
||||
;
|
||||
str_warmboot .db "\r\n\r\nWarm booting...\r\n",0
|
||||
str_coldboot .db "\r\n\r\nCold booting...\r\n",0
|
||||
;
|
||||
str_err_una .db " ERROR: UNA not supported by application",0
|
||||
str_err_inv .db " ERROR: Invalid BIOS (signature missing)",0
|
||||
str_err_ver .db " ERROR: Unexpected HBIOS version",0
|
||||
str_err_parm .db " ERROR: Parameter error (REBOOT /? for usage)",0
|
||||
;
|
||||
str_usage .db " Usage: REBOOT /? - Display this help info.\r\n"
|
||||
.db " REBOOT /W - Warm boot system\r\n"
|
||||
.db " REBOOT /C - Cold boot system\r\n"
|
||||
.db " Options are case insensitive.\r\n",0
|
||||
;
|
||||
;===============================================================================
|
||||
; Working data
|
||||
;===============================================================================
|
||||
;
|
||||
stksav .dw 0 ; stack pointer saved at start
|
||||
.fill stksiz,0 ; stack
|
||||
stack .equ $ ; stack top
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
;==============================================================================
|
||||
; REBOOT - Allows the user to Cold or Warm Boot the RomWBW System
|
||||
; Version 1.0 12-October-2024
|
||||
;==============================================================================
|
||||
;
|
||||
; Author: MartinR (October 2024)
|
||||
; Based **very heavily** on code by Wayne Warthen (wwarthen@gmail.com)
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Usage:
|
||||
; REBOOT [/C] [/W] [/?]
|
||||
; ex: REBOOT Display version and usage
|
||||
; REBOOT /? Display version and usage
|
||||
; REBOOT /C Cold boot RomWBW system
|
||||
; REBOOT /W Warm boot RomWBW system
|
||||
;
|
||||
; Operation:
|
||||
; Cold or warm boots a RomWBW system depending on the user option selected.
|
||||
;
|
||||
; This code will only execute on a Z80 CPU (or derivitive)
|
||||
;
|
||||
; This source code assembles with TASM V3.2 under Windows-11 using the
|
||||
; following command line:
|
||||
; tasm -80 -g3 -l REBOOT.ASM REBOOT.COM
|
||||
; ie: Z80 CPU; output format 'binary' named .COM (rather than .OBJ)
|
||||
; and includes a symbol table as part of the listing file.
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Change Log:
|
||||
; 2024-09-11 [WBW] Release of RomWBW CPU Speed Selector v1.0 used as the basis
|
||||
; 2024-10-12 [MR ] Initial release of version 1.0
|
||||
;______________________________________________________________________________
|
||||
;
|
||||
; Include Files
|
||||
;
|
||||
#include "../../ver.inc" ; Used for building RomWBW
|
||||
#include "../../HBIOS/hbios.inc"
|
||||
|
||||
;#include "ver.inc" ; Used for testing purposes....
|
||||
;#include "hbios.inc" ; ....during code development
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
; General operational equates (should not requre adjustment)
|
||||
;
|
||||
stksiz .equ $40 ; Working stack size
|
||||
;
|
||||
restart .equ $0000 ; CP/M restart vector
|
||||
bdos .equ $0005 ; BDOS invocation vector
|
||||
;
|
||||
bf_sysreset .equ $F0 ; restart system
|
||||
bf_sysres_int .equ $00 ; reset hbios internal
|
||||
bf_sysres_warm .equ $01 ; warm start (restart boot loader)
|
||||
bf_sysres_cold .equ $02 ; cold start
|
||||
;
|
||||
ident .equ $FFFC ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
.org $0100 ; standard CP/M TPA executable
|
||||
;
|
||||
; setup stack (save old value)
|
||||
ld (stksav),sp ; save stack
|
||||
ld sp,stack ; set new stack
|
||||
;
|
||||
call crlf
|
||||
ld de,str_banner ; banner
|
||||
call prtstr
|
||||
;
|
||||
; initialization
|
||||
call init ; initialize
|
||||
jr nz,exit ; abort if init fails
|
||||
;
|
||||
call main ; do the real work
|
||||
;
|
||||
exit:
|
||||
; clean up and return to command processor
|
||||
call crlf ; formatting
|
||||
ld sp,(stksav) ; restore stack
|
||||
jp restart ; return to CP/M via restart
|
||||
;
|
||||
;
|
||||
;===============================================================================
|
||||
; Main Program
|
||||
;===============================================================================
|
||||
;
|
||||
; Initialization
|
||||
;
|
||||
init:
|
||||
; check for UNA (UBIOS)
|
||||
ld a,($FFFD) ; fixed location of UNA API vector
|
||||
cp $C3 ; jp instruction?
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
ld hl,($FFFE) ; get jp address
|
||||
ld a,(hl) ; get byte at target address
|
||||
cp $FD ; first byte of UNA push ix instruction
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
inc hl ; point to next byte
|
||||
ld a,(hl) ; get next byte
|
||||
cp $E5 ; second byte of UNA push ix instruction
|
||||
jr nz,initwbw ; if not, not UNA
|
||||
jp err_una ; UNA not supported
|
||||
;
|
||||
initwbw:
|
||||
; get location of config data and verify integrity
|
||||
ld hl,(ident) ; HL := adr or RomWBW HBIOS ident
|
||||
ld a,(hl) ; get first byte of RomWBW marker
|
||||
cp 'W' ; match?
|
||||
jp nz,err_inv ; abort with invalid config block
|
||||
inc hl ; next byte (marker byte 2)
|
||||
ld a,(hl) ; load it
|
||||
cp ~'W' ; match?
|
||||
jp nz,err_inv ; abort with invalid config block
|
||||
inc hl ; next byte (major/minor version)
|
||||
ld a,(hl) ; load it
|
||||
cp rmj << 4 | rmn ; match?
|
||||
jp nz,err_ver ; abort with invalid os version
|
||||
;
|
||||
initz:
|
||||
; initialization complete
|
||||
xor a ; signal success
|
||||
ret ; return
|
||||
;
|
||||
;
|
||||
;
|
||||
main:
|
||||
; skip to start of first command line parameter
|
||||
ld ix,$0081 ; point to start of parm area (past length byte)
|
||||
call nonblank ; skip to next non-blank char
|
||||
cp '/' ; option prefix?
|
||||
jr nz,usage ; display help info & exit if nothing to do
|
||||
;
|
||||
; process any options
|
||||
inc ix ; fetch next character and process
|
||||
ld a,(ix)
|
||||
call upcase ; ensure it's an upper case character
|
||||
cp 'C' ; if it's a 'C' then
|
||||
jr z,cboot ; do a cold boot.
|
||||
cp 'W' ; if it's a 'W' then
|
||||
jr z,wboot ; do a warm boot.
|
||||
cp '?' ; if it's a '?' then
|
||||
jr z,usage ; display usage info and exit.
|
||||
jr err_parm ; or not a recognised option, so report and exit.
|
||||
;
|
||||
; Handle Usage Information
|
||||
;
|
||||
usage:
|
||||
call crlf2 ; display the options for this utility
|
||||
ld de,str_usage
|
||||
call prtstr
|
||||
or $FF
|
||||
ret ; exit back out to CP/M CCP
|
||||
;
|
||||
; Handle Warm Boot
|
||||
;
|
||||
wboot:
|
||||
ld de,str_warmboot ; message
|
||||
call prtstr ; display it
|
||||
ld b,bf_sysreset ; system restart
|
||||
ld c,bf_sysres_warm ; warm start
|
||||
call $fff0 ; call hbios
|
||||
;
|
||||
; Handle Cold Boot
|
||||
;
|
||||
cboot:
|
||||
ld de,str_coldboot ; message
|
||||
call prtstr ; display it
|
||||
ld b,bf_sysreset ; system restart
|
||||
ld c,bf_sysres_cold ; cold start
|
||||
call $fff0 ; call hbios
|
||||
;
|
||||
;===============================================================================
|
||||
; Error Handlers
|
||||
;===============================================================================
|
||||
;
|
||||
err_una:
|
||||
ld de,str_err_una
|
||||
jr err_ret
|
||||
err_inv:
|
||||
ld de,str_err_inv
|
||||
jr err_ret
|
||||
err_ver:
|
||||
ld de,str_err_ver
|
||||
jr err_ret
|
||||
err_parm:
|
||||
ld de,str_err_parm
|
||||
jr err_ret
|
||||
|
||||
;
|
||||
err_ret:
|
||||
call crlf2
|
||||
call prtstr
|
||||
or $FF ; signal error
|
||||
ret
|
||||
;
|
||||
;===============================================================================
|
||||
; Utility Routines
|
||||
;===============================================================================
|
||||
;
|
||||
; Print character in A without destroying any registers
|
||||
;
|
||||
prtchr:
|
||||
push af
|
||||
push bc ; save registers
|
||||
push de
|
||||
push hl
|
||||
ld e,a ; character to print in E
|
||||
ld c,$02 ; BDOS function to output a character
|
||||
call bdos ; do it
|
||||
pop hl ; restore registers
|
||||
pop de
|
||||
pop bc
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; Start a new line
|
||||
;
|
||||
crlf2:
|
||||
call crlf ; two of them
|
||||
crlf:
|
||||
push af ; preserve AF
|
||||
ld a,13 ; <CR>
|
||||
call prtchr ; print it
|
||||
ld a,10 ; <LF>
|
||||
call prtchr ; print it
|
||||
pop af ; restore AF
|
||||
ret
|
||||
;
|
||||
; Print a zero terminated string at (de) without destroying any registers
|
||||
;
|
||||
prtstr:
|
||||
push af
|
||||
push de
|
||||
;
|
||||
prtstr1:
|
||||
ld a,(de) ; get next char
|
||||
or a
|
||||
jr z,prtstr2
|
||||
call prtchr
|
||||
inc de
|
||||
jr prtstr1
|
||||
;
|
||||
prtstr2:
|
||||
pop de ; restore registers
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; Get the next non-blank character from (ix)
|
||||
;
|
||||
nonblank:
|
||||
ld a,(ix) ; load next character
|
||||
or a ; string ends with a null
|
||||
ret z ; if null, return pointing to null
|
||||
cp ' ' ; check for blank
|
||||
ret nz ; return if not blank
|
||||
inc ix ; if blank, increment character pointer
|
||||
jr nonblank ; and loop
|
||||
;
|
||||
; Convert character in A to uppercase
|
||||
;
|
||||
upcase:
|
||||
cp 'a' ; if below 'a'
|
||||
ret c ; ... do nothing and return
|
||||
cp 'z' + 1 ; if above 'z'
|
||||
ret nc ; ... do nothing and return
|
||||
res 5,a ; clear bit 5 to make lower case -> upper case
|
||||
ret ; and return
|
||||
;
|
||||
;===============================================================================
|
||||
; Constants
|
||||
;===============================================================================
|
||||
;
|
||||
str_banner .db "RomWBW Reboot Utility, Version 1.0, 12-Oct-2024\r\n"
|
||||
.db " Wayne Warthen (wwarthen@gmail.com) & MartinR",0
|
||||
;
|
||||
str_warmboot .db "\r\n\r\nWarm booting...\r\n",0
|
||||
str_coldboot .db "\r\n\r\nCold booting...\r\n",0
|
||||
;
|
||||
str_err_una .db " ERROR: UNA not supported by application",0
|
||||
str_err_inv .db " ERROR: Invalid BIOS (signature missing)",0
|
||||
str_err_ver .db " ERROR: Unexpected HBIOS version",0
|
||||
str_err_parm .db " ERROR: Parameter error (REBOOT /? for usage)",0
|
||||
;
|
||||
str_usage .db " Usage: REBOOT /? - Display this help info.\r\n"
|
||||
.db " REBOOT /W - Warm boot system\r\n"
|
||||
.db " REBOOT /C - Cold boot system\r\n"
|
||||
.db " Options are case insensitive.\r\n",0
|
||||
;
|
||||
;===============================================================================
|
||||
; Working data
|
||||
;===============================================================================
|
||||
;
|
||||
stksav .dw 0 ; stack pointer saved at start
|
||||
.fill stksiz,0 ; stack
|
||||
stack .equ $ ; stack top
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
.end
|
||||
File diff suppressed because it is too large
Load Diff
@@ -68,7 +68,7 @@ bf_sysreset .equ $F0 ; restart system
|
||||
bf_sysres_int .equ $00 ; reset hbios internal
|
||||
bf_sysres_warm .equ $01 ; warm start (restart boot loader)
|
||||
;
|
||||
ident .equ $FFFE ; loc of RomWBW HBIOS ident ptr
|
||||
ident .equ $FFFC ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
sigbyte1 .equ $A5 ; 1st sig byte boot info sector (bb_sig)
|
||||
sigbyte2 .equ $5A ; 2nd sig byte boot info sector (bb_sig)
|
||||
|
||||
@@ -1,399 +1,399 @@
|
||||
;===============================================================================
|
||||
; STARTUP - Application run automatically at OS startup
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
; Author: Wayne Warthen (wwarthen@gmail.com)
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; Usage:
|
||||
; MODE [/?]
|
||||
;
|
||||
; Operation:
|
||||
; Determines if STARTUP.CMD exists on startup drive, user 0. If it is
|
||||
; found, it is run via SUBMIT.
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; Change Log:
|
||||
; 2017-12-01 [WBW] Initial release
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; ToDo:
|
||||
; 1) Detect OS type (CP/M or ZSYS) and run different batch files as a result.
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
;===============================================================================
|
||||
; Definitions
|
||||
;===============================================================================
|
||||
;
|
||||
stksiz .equ $40 ; Working stack size
|
||||
;
|
||||
restart .equ $0000 ; CP/M restart vector
|
||||
bdos .equ $0005 ; BDOS invocation vector
|
||||
;
|
||||
ident .equ $FFFE ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
rmj .equ 2 ; intended CBIOS version - major
|
||||
rmn .equ 9 ; intended CBIOS version - minor
|
||||
;
|
||||
bf_cioinit .equ $04 ; HBIOS: CIOINIT function
|
||||
bf_cioquery .equ $05 ; HBIOS: CIOQUERY function
|
||||
bf_ciodevice .equ $06 ; HBIOS: CIODEVICE function
|
||||
bf_sysget .equ $F8 ; HBIOS: SYSGET function
|
||||
;
|
||||
;===============================================================================
|
||||
; Code Section
|
||||
;===============================================================================
|
||||
;
|
||||
.org $100
|
||||
;
|
||||
; setup stack (save old value)
|
||||
ld (stksav),sp ; save stack
|
||||
ld sp,stack ; set new stack
|
||||
;
|
||||
; initialization
|
||||
call init ; initialize
|
||||
jr nz,exit ; abort if init fails
|
||||
;
|
||||
; process
|
||||
call process ; do main processing
|
||||
jr nz,exit ; abort on error
|
||||
;
|
||||
exit: ; clean up and return to command processor
|
||||
call crlf ; formatting
|
||||
ld sp,(stksav) ; restore stack
|
||||
;jp restart ; return to CP/M via restart
|
||||
ret ; return to CP/M w/o restart
|
||||
;
|
||||
; Initialization
|
||||
;
|
||||
init:
|
||||
;
|
||||
initx
|
||||
; initialization complete
|
||||
xor a ; signal success
|
||||
ret ; return
|
||||
;
|
||||
; Process
|
||||
;
|
||||
process:
|
||||
; skip to start of first parm
|
||||
ld ix,$81 ; point to start of parm area (past len byte)
|
||||
call nonblank ; skip to next non-blank char
|
||||
jp z,runcmd ; no parms, do command processing
|
||||
;
|
||||
process1:
|
||||
; process options (if any)
|
||||
cp '/' ; option prefix?
|
||||
jp nz,erruse ; invalid option introducer
|
||||
call option ; process option
|
||||
ret nz ; some options mean we are done (e.g., "/?")
|
||||
inc ix ; skip option character
|
||||
call nonblank ; skip whitespace
|
||||
jr nz,process1 ; continue option checking
|
||||
jp runcmd ; end of parms, do cmd processing
|
||||
;
|
||||
;
|
||||
;
|
||||
runcmd:
|
||||
call ldfil ; load executable
|
||||
ret nz ; abort on error
|
||||
;
|
||||
xor a
|
||||
ret
|
||||
;
|
||||
; Load file for execution
|
||||
;
|
||||
ldfil:
|
||||
ld c,15 ; BDOS function: Open File
|
||||
ld de,fcb ; pointer to FCB
|
||||
call bdos ; do it
|
||||
inc a ; check for err, 0xFF --> 0x00
|
||||
jp z,errfil ; handle file not found err
|
||||
;
|
||||
ld c,16 ; BDOS function: Close File
|
||||
ld de,fcb ; pointer to FCB
|
||||
call bdos ; do it
|
||||
inc a ; check for err, 0xFF --> 0x00
|
||||
jp z,errfil ; handle file close err
|
||||
;
|
||||
xor a ; signal success
|
||||
ret ; done
|
||||
|
||||
|
||||
;
|
||||
; Handle options
|
||||
;
|
||||
option:
|
||||
;
|
||||
inc ix ; next char
|
||||
ld a,(ix) ; get it
|
||||
cp '?' ; is it a '?' as expected?
|
||||
jp z,usage ; yes, display usage
|
||||
jp errprm ; anything else is an error
|
||||
;
|
||||
; Display usage
|
||||
;
|
||||
usage:
|
||||
;
|
||||
call crlf ; formatting
|
||||
ld de,msgban ; point to version message part 1
|
||||
call prtstr ; print it
|
||||
call crlf2 ; blank line
|
||||
ld de,msguse ; point to usage message
|
||||
call prtstr ; print it
|
||||
or $FF ; signal no action performed
|
||||
ret ; and return
|
||||
;
|
||||
; Print character in A without destroying any registers
|
||||
;
|
||||
prtchr:
|
||||
push bc ; save registers
|
||||
push de
|
||||
push hl
|
||||
ld e,a ; character to print in E
|
||||
ld c,$02 ; BDOS function to output a character
|
||||
call bdos ; do it
|
||||
pop hl ; restore registers
|
||||
pop de
|
||||
pop bc
|
||||
ret
|
||||
;
|
||||
prtdot:
|
||||
;
|
||||
; shortcut to print a dot preserving all regs
|
||||
push af ; save af
|
||||
ld a,'.' ; load dot char
|
||||
call prtchr ; print it
|
||||
pop af ; restore af
|
||||
ret ; done
|
||||
;
|
||||
; Print a zero terminated string at (DE) without destroying any registers
|
||||
;
|
||||
prtstr:
|
||||
push de
|
||||
;
|
||||
prtstr1:
|
||||
ld a,(de) ; get next char
|
||||
or a
|
||||
jr z,prtstr2
|
||||
call prtchr
|
||||
inc de
|
||||
jr prtstr1
|
||||
;
|
||||
prtstr2:
|
||||
pop de ; restore registers
|
||||
ret
|
||||
;
|
||||
; Print the value in A in hex without destroying any registers
|
||||
;
|
||||
prthex:
|
||||
push af ; save AF
|
||||
push de ; save DE
|
||||
call hexascii ; convert value in A to hex chars in DE
|
||||
ld a,d ; get the high order hex char
|
||||
call prtchr ; print it
|
||||
ld a,e ; get the low order hex char
|
||||
call prtchr ; print it
|
||||
pop de ; restore DE
|
||||
pop af ; restore AF
|
||||
ret ; done
|
||||
;
|
||||
; print the hex word value in bc
|
||||
;
|
||||
prthexword:
|
||||
push af
|
||||
ld a,b
|
||||
call prthex
|
||||
ld a,c
|
||||
call prthex
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; print the hex dword value in de:hl
|
||||
;
|
||||
prthex32:
|
||||
push bc
|
||||
push de
|
||||
pop bc
|
||||
call prthexword
|
||||
push hl
|
||||
pop bc
|
||||
call prthexword
|
||||
pop bc
|
||||
ret
|
||||
;
|
||||
; Convert binary value in A to ascii hex characters in DE
|
||||
;
|
||||
hexascii:
|
||||
ld d,a ; save A in D
|
||||
call hexconv ; convert low nibble of A to hex
|
||||
ld e,a ; save it in E
|
||||
ld a,d ; get original value back
|
||||
rlca ; rotate high order nibble to low bits
|
||||
rlca
|
||||
rlca
|
||||
rlca
|
||||
call hexconv ; convert nibble
|
||||
ld d,a ; save it in D
|
||||
ret ; done
|
||||
;
|
||||
; Convert low nibble of A to ascii hex
|
||||
;
|
||||
hexconv:
|
||||
and $0F ; low nibble only
|
||||
add a,$90
|
||||
daa
|
||||
adc a,$40
|
||||
daa
|
||||
ret
|
||||
;
|
||||
; Print value of A or HL in decimal with leading zero suppression
|
||||
; Use prtdecb for A or prtdecw for HL
|
||||
;
|
||||
prtdecb:
|
||||
push hl
|
||||
ld h,0
|
||||
ld l,a
|
||||
call prtdecw ; print it
|
||||
pop hl
|
||||
ret
|
||||
;
|
||||
prtdecw:
|
||||
push af
|
||||
push bc
|
||||
push de
|
||||
push hl
|
||||
call prtdec0
|
||||
pop hl
|
||||
pop de
|
||||
pop bc
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
prtdec0:
|
||||
ld e,'0'
|
||||
ld bc,-10000
|
||||
call prtdec1
|
||||
ld bc,-1000
|
||||
call prtdec1
|
||||
ld bc,-100
|
||||
call prtdec1
|
||||
ld c,-10
|
||||
call prtdec1
|
||||
ld e,0
|
||||
ld c,-1
|
||||
prtdec1:
|
||||
ld a,'0' - 1
|
||||
prtdec2:
|
||||
inc a
|
||||
add hl,bc
|
||||
jr c,prtdec2
|
||||
sbc hl,bc
|
||||
cp e
|
||||
ret z
|
||||
ld e,0
|
||||
call prtchr
|
||||
ret
|
||||
;
|
||||
; Start a new line
|
||||
;
|
||||
crlf2:
|
||||
call crlf ; two of them
|
||||
crlf:
|
||||
push af ; preserve AF
|
||||
ld a,13 ; <CR>
|
||||
call prtchr ; print it
|
||||
ld a,10 ; <LF>
|
||||
call prtchr ; print it
|
||||
pop af ; restore AF
|
||||
ret
|
||||
;
|
||||
; Get the next non-blank character from (HL).
|
||||
;
|
||||
nonblank:
|
||||
ld a,(ix) ; load next character
|
||||
or a ; string ends with a null
|
||||
ret z ; if null, return pointing to null
|
||||
cp ' ' ; check for blank
|
||||
ret nz ; return if not blank
|
||||
inc ix ; if blank, increment character pointer
|
||||
jr nonblank ; and loop
|
||||
;
|
||||
; Convert character in A to uppercase
|
||||
;
|
||||
ucase:
|
||||
cp 'a' ; if below 'a'
|
||||
ret c ; ... do nothing and return
|
||||
cp 'z' + 1 ; if above 'z'
|
||||
ret nc ; ... do nothing and return
|
||||
res 5,a ; clear bit 5 to make lower case -> upper case
|
||||
ret ; and return
|
||||
;
|
||||
; Add the value in A to HL (HL := HL + A)
|
||||
;
|
||||
addhl:
|
||||
add a,l ; A := A + L
|
||||
ld l,a ; Put result back in L
|
||||
ret nc ; if no carry, we are done
|
||||
inc h ; if carry, increment H
|
||||
ret ; and return
|
||||
;
|
||||
; Jump indirect to address in HL
|
||||
;
|
||||
jphl:
|
||||
jp (hl)
|
||||
;
|
||||
; Errors
|
||||
;
|
||||
erruse: ; command usage error (syntax)
|
||||
ld de,msguse
|
||||
jr err
|
||||
;
|
||||
errprm: ; command parameter error (syntax)
|
||||
ld de,msgprm
|
||||
jr err
|
||||
;
|
||||
errfil: ; STARTUP.CMD file not present
|
||||
ld de,msgfil
|
||||
jr err
|
||||
;
|
||||
err: ; print error string and return error signal
|
||||
call crlf ; print newline
|
||||
;
|
||||
err1: ; without the leading crlf
|
||||
call prtstr ; print error string
|
||||
;
|
||||
err2: ; without the string
|
||||
; call crlf ; print newline
|
||||
or $FF ; signal error
|
||||
ret ; done
|
||||
;
|
||||
;===============================================================================
|
||||
; Storage Section
|
||||
;===============================================================================
|
||||
;
|
||||
fcb .db 0 ; Drive code, 0 = current drive
|
||||
.db "START " ; File name, 8 chars
|
||||
.db "COM" ; File type, 3 chars
|
||||
.fill 36-($-fcb),0 ; zero fill remainder of fcb
|
||||
;
|
||||
cmdblk .db cmdlen ; length
|
||||
cmdtxt .db " B:SUBMIT START"
|
||||
.db 0 ; null terminator
|
||||
cmdlen .equ $ - cmdtxt
|
||||
cmdend .equ $
|
||||
;
|
||||
stksav .dw 0 ; stack pointer saved at start
|
||||
.fill stksiz,0 ; stack
|
||||
stack .equ $ ; stack top
|
||||
;
|
||||
; Messages
|
||||
;
|
||||
msgban .db "STARTUP v1.0, 01-Dec-2017",13,10
|
||||
.db "Copyright (C) 2017, Wayne Warthen, GNU GPL v3",0
|
||||
msguse .db "Usage: STARTUP [/?]",0
|
||||
msgprm .db "Parameter error (STARTUP /? for usage)",0
|
||||
msgfil .db "STARTUP.CMD file missing",0
|
||||
;
|
||||
.end
|
||||
;===============================================================================
|
||||
; STARTUP - Application run automatically at OS startup
|
||||
;
|
||||
;===============================================================================
|
||||
;
|
||||
; Author: Wayne Warthen (wwarthen@gmail.com)
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; Usage:
|
||||
; MODE [/?]
|
||||
;
|
||||
; Operation:
|
||||
; Determines if STARTUP.CMD exists on startup drive, user 0. If it is
|
||||
; found, it is run via SUBMIT.
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; Change Log:
|
||||
; 2017-12-01 [WBW] Initial release
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
; ToDo:
|
||||
; 1) Detect OS type (CP/M or ZSYS) and run different batch files as a result.
|
||||
;_______________________________________________________________________________
|
||||
;
|
||||
;===============================================================================
|
||||
; Definitions
|
||||
;===============================================================================
|
||||
;
|
||||
stksiz .equ $40 ; Working stack size
|
||||
;
|
||||
restart .equ $0000 ; CP/M restart vector
|
||||
bdos .equ $0005 ; BDOS invocation vector
|
||||
;
|
||||
ident .equ $FFFC ; loc of RomWBW HBIOS ident ptr
|
||||
;
|
||||
rmj .equ 2 ; intended CBIOS version - major
|
||||
rmn .equ 9 ; intended CBIOS version - minor
|
||||
;
|
||||
bf_cioinit .equ $04 ; HBIOS: CIOINIT function
|
||||
bf_cioquery .equ $05 ; HBIOS: CIOQUERY function
|
||||
bf_ciodevice .equ $06 ; HBIOS: CIODEVICE function
|
||||
bf_sysget .equ $F8 ; HBIOS: SYSGET function
|
||||
;
|
||||
;===============================================================================
|
||||
; Code Section
|
||||
;===============================================================================
|
||||
;
|
||||
.org $100
|
||||
;
|
||||
; setup stack (save old value)
|
||||
ld (stksav),sp ; save stack
|
||||
ld sp,stack ; set new stack
|
||||
;
|
||||
; initialization
|
||||
call init ; initialize
|
||||
jr nz,exit ; abort if init fails
|
||||
;
|
||||
; process
|
||||
call process ; do main processing
|
||||
jr nz,exit ; abort on error
|
||||
;
|
||||
exit: ; clean up and return to command processor
|
||||
call crlf ; formatting
|
||||
ld sp,(stksav) ; restore stack
|
||||
;jp restart ; return to CP/M via restart
|
||||
ret ; return to CP/M w/o restart
|
||||
;
|
||||
; Initialization
|
||||
;
|
||||
init:
|
||||
;
|
||||
initx
|
||||
; initialization complete
|
||||
xor a ; signal success
|
||||
ret ; return
|
||||
;
|
||||
; Process
|
||||
;
|
||||
process:
|
||||
; skip to start of first parm
|
||||
ld ix,$81 ; point to start of parm area (past len byte)
|
||||
call nonblank ; skip to next non-blank char
|
||||
jp z,runcmd ; no parms, do command processing
|
||||
;
|
||||
process1:
|
||||
; process options (if any)
|
||||
cp '/' ; option prefix?
|
||||
jp nz,erruse ; invalid option introducer
|
||||
call option ; process option
|
||||
ret nz ; some options mean we are done (e.g., "/?")
|
||||
inc ix ; skip option character
|
||||
call nonblank ; skip whitespace
|
||||
jr nz,process1 ; continue option checking
|
||||
jp runcmd ; end of parms, do cmd processing
|
||||
;
|
||||
;
|
||||
;
|
||||
runcmd:
|
||||
call ldfil ; load executable
|
||||
ret nz ; abort on error
|
||||
;
|
||||
xor a
|
||||
ret
|
||||
;
|
||||
; Load file for execution
|
||||
;
|
||||
ldfil:
|
||||
ld c,15 ; BDOS function: Open File
|
||||
ld de,fcb ; pointer to FCB
|
||||
call bdos ; do it
|
||||
inc a ; check for err, 0xFF --> 0x00
|
||||
jp z,errfil ; handle file not found err
|
||||
;
|
||||
ld c,16 ; BDOS function: Close File
|
||||
ld de,fcb ; pointer to FCB
|
||||
call bdos ; do it
|
||||
inc a ; check for err, 0xFF --> 0x00
|
||||
jp z,errfil ; handle file close err
|
||||
;
|
||||
xor a ; signal success
|
||||
ret ; done
|
||||
|
||||
|
||||
;
|
||||
; Handle options
|
||||
;
|
||||
option:
|
||||
;
|
||||
inc ix ; next char
|
||||
ld a,(ix) ; get it
|
||||
cp '?' ; is it a '?' as expected?
|
||||
jp z,usage ; yes, display usage
|
||||
jp errprm ; anything else is an error
|
||||
;
|
||||
; Display usage
|
||||
;
|
||||
usage:
|
||||
;
|
||||
call crlf ; formatting
|
||||
ld de,msgban ; point to version message part 1
|
||||
call prtstr ; print it
|
||||
call crlf2 ; blank line
|
||||
ld de,msguse ; point to usage message
|
||||
call prtstr ; print it
|
||||
or $FF ; signal no action performed
|
||||
ret ; and return
|
||||
;
|
||||
; Print character in A without destroying any registers
|
||||
;
|
||||
prtchr:
|
||||
push bc ; save registers
|
||||
push de
|
||||
push hl
|
||||
ld e,a ; character to print in E
|
||||
ld c,$02 ; BDOS function to output a character
|
||||
call bdos ; do it
|
||||
pop hl ; restore registers
|
||||
pop de
|
||||
pop bc
|
||||
ret
|
||||
;
|
||||
prtdot:
|
||||
;
|
||||
; shortcut to print a dot preserving all regs
|
||||
push af ; save af
|
||||
ld a,'.' ; load dot char
|
||||
call prtchr ; print it
|
||||
pop af ; restore af
|
||||
ret ; done
|
||||
;
|
||||
; Print a zero terminated string at (DE) without destroying any registers
|
||||
;
|
||||
prtstr:
|
||||
push de
|
||||
;
|
||||
prtstr1:
|
||||
ld a,(de) ; get next char
|
||||
or a
|
||||
jr z,prtstr2
|
||||
call prtchr
|
||||
inc de
|
||||
jr prtstr1
|
||||
;
|
||||
prtstr2:
|
||||
pop de ; restore registers
|
||||
ret
|
||||
;
|
||||
; Print the value in A in hex without destroying any registers
|
||||
;
|
||||
prthex:
|
||||
push af ; save AF
|
||||
push de ; save DE
|
||||
call hexascii ; convert value in A to hex chars in DE
|
||||
ld a,d ; get the high order hex char
|
||||
call prtchr ; print it
|
||||
ld a,e ; get the low order hex char
|
||||
call prtchr ; print it
|
||||
pop de ; restore DE
|
||||
pop af ; restore AF
|
||||
ret ; done
|
||||
;
|
||||
; print the hex word value in bc
|
||||
;
|
||||
prthexword:
|
||||
push af
|
||||
ld a,b
|
||||
call prthex
|
||||
ld a,c
|
||||
call prthex
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
; print the hex dword value in de:hl
|
||||
;
|
||||
prthex32:
|
||||
push bc
|
||||
push de
|
||||
pop bc
|
||||
call prthexword
|
||||
push hl
|
||||
pop bc
|
||||
call prthexword
|
||||
pop bc
|
||||
ret
|
||||
;
|
||||
; Convert binary value in A to ascii hex characters in DE
|
||||
;
|
||||
hexascii:
|
||||
ld d,a ; save A in D
|
||||
call hexconv ; convert low nibble of A to hex
|
||||
ld e,a ; save it in E
|
||||
ld a,d ; get original value back
|
||||
rlca ; rotate high order nibble to low bits
|
||||
rlca
|
||||
rlca
|
||||
rlca
|
||||
call hexconv ; convert nibble
|
||||
ld d,a ; save it in D
|
||||
ret ; done
|
||||
;
|
||||
; Convert low nibble of A to ascii hex
|
||||
;
|
||||
hexconv:
|
||||
and $0F ; low nibble only
|
||||
add a,$90
|
||||
daa
|
||||
adc a,$40
|
||||
daa
|
||||
ret
|
||||
;
|
||||
; Print value of A or HL in decimal with leading zero suppression
|
||||
; Use prtdecb for A or prtdecw for HL
|
||||
;
|
||||
prtdecb:
|
||||
push hl
|
||||
ld h,0
|
||||
ld l,a
|
||||
call prtdecw ; print it
|
||||
pop hl
|
||||
ret
|
||||
;
|
||||
prtdecw:
|
||||
push af
|
||||
push bc
|
||||
push de
|
||||
push hl
|
||||
call prtdec0
|
||||
pop hl
|
||||
pop de
|
||||
pop bc
|
||||
pop af
|
||||
ret
|
||||
;
|
||||
prtdec0:
|
||||
ld e,'0'
|
||||
ld bc,-10000
|
||||
call prtdec1
|
||||
ld bc,-1000
|
||||
call prtdec1
|
||||
ld bc,-100
|
||||
call prtdec1
|
||||
ld c,-10
|
||||
call prtdec1
|
||||
ld e,0
|
||||
ld c,-1
|
||||
prtdec1:
|
||||
ld a,'0' - 1
|
||||
prtdec2:
|
||||
inc a
|
||||
add hl,bc
|
||||
jr c,prtdec2
|
||||
sbc hl,bc
|
||||
cp e
|
||||
ret z
|
||||
ld e,0
|
||||
call prtchr
|
||||
ret
|
||||
;
|
||||
; Start a new line
|
||||
;
|
||||
crlf2:
|
||||
call crlf ; two of them
|
||||
crlf:
|
||||
push af ; preserve AF
|
||||
ld a,13 ; <CR>
|
||||
call prtchr ; print it
|
||||
ld a,10 ; <LF>
|
||||
call prtchr ; print it
|
||||
pop af ; restore AF
|
||||
ret
|
||||
;
|
||||
; Get the next non-blank character from (HL).
|
||||
;
|
||||
nonblank:
|
||||
ld a,(ix) ; load next character
|
||||
or a ; string ends with a null
|
||||
ret z ; if null, return pointing to null
|
||||
cp ' ' ; check for blank
|
||||
ret nz ; return if not blank
|
||||
inc ix ; if blank, increment character pointer
|
||||
jr nonblank ; and loop
|
||||
;
|
||||
; Convert character in A to uppercase
|
||||
;
|
||||
ucase:
|
||||
cp 'a' ; if below 'a'
|
||||
ret c ; ... do nothing and return
|
||||
cp 'z' + 1 ; if above 'z'
|
||||
ret nc ; ... do nothing and return
|
||||
res 5,a ; clear bit 5 to make lower case -> upper case
|
||||
ret ; and return
|
||||
;
|
||||
; Add the value in A to HL (HL := HL + A)
|
||||
;
|
||||
addhl:
|
||||
add a,l ; A := A + L
|
||||
ld l,a ; Put result back in L
|
||||
ret nc ; if no carry, we are done
|
||||
inc h ; if carry, increment H
|
||||
ret ; and return
|
||||
;
|
||||
; Jump indirect to address in HL
|
||||
;
|
||||
jphl:
|
||||
jp (hl)
|
||||
;
|
||||
; Errors
|
||||
;
|
||||
erruse: ; command usage error (syntax)
|
||||
ld de,msguse
|
||||
jr err
|
||||
;
|
||||
errprm: ; command parameter error (syntax)
|
||||
ld de,msgprm
|
||||
jr err
|
||||
;
|
||||
errfil: ; STARTUP.CMD file not present
|
||||
ld de,msgfil
|
||||
jr err
|
||||
;
|
||||
err: ; print error string and return error signal
|
||||
call crlf ; print newline
|
||||
;
|
||||
err1: ; without the leading crlf
|
||||
call prtstr ; print error string
|
||||
;
|
||||
err2: ; without the string
|
||||
; call crlf ; print newline
|
||||
or $FF ; signal error
|
||||
ret ; done
|
||||
;
|
||||
;===============================================================================
|
||||
; Storage Section
|
||||
;===============================================================================
|
||||
;
|
||||
fcb .db 0 ; Drive code, 0 = current drive
|
||||
.db "START " ; File name, 8 chars
|
||||
.db "COM" ; File type, 3 chars
|
||||
.fill 36-($-fcb),0 ; zero fill remainder of fcb
|
||||
;
|
||||
cmdblk .db cmdlen ; length
|
||||
cmdtxt .db " B:SUBMIT START"
|
||||
.db 0 ; null terminator
|
||||
cmdlen .equ $ - cmdtxt
|
||||
cmdend .equ $
|
||||
;
|
||||
stksav .dw 0 ; stack pointer saved at start
|
||||
.fill stksiz,0 ; stack
|
||||
stack .equ $ ; stack top
|
||||
;
|
||||
; Messages
|
||||
;
|
||||
msgban .db "STARTUP v1.0, 01-Dec-2017",13,10
|
||||
.db "Copyright (C) 2017, Wayne Warthen, GNU GPL v3",0
|
||||
msguse .db "Usage: STARTUP [/?]",0
|
||||
msgprm .db "Parameter error (STARTUP /? for usage)",0
|
||||
msgfil .db "STARTUP.CMD file missing",0
|
||||
;
|
||||
.end
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,8 +10,9 @@ call BuildZRC || exit /b
|
||||
call BuildZ1RCC || exit /b
|
||||
call BuildZZRCC || exit /b
|
||||
call BuildZRC512 || exit /b
|
||||
call BuildFZ80 || exit /b
|
||||
call BuildSZ80 || exit /b
|
||||
call BuildEZ512 || exit /b
|
||||
call BuildMSX || exit /b
|
||||
|
||||
if "%1" == "dist" (
|
||||
call Clean || exit /b
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
pushd FZ80 && call Build || exit /b & popd
|
||||
4
Source/BuildMSX.cmd
Normal file
4
Source/BuildMSX.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
pushd MSX && call Build || exit /b & popd
|
||||
4
Source/BuildSZ80.cmd
Normal file
4
Source/BuildSZ80.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
pushd SZ80 && call Build || exit /b & popd
|
||||
@@ -3408,7 +3408,7 @@ DEVTBL: ; DEVICE TABLE
|
||||
.DW DEV04, DEV05, DEV06, DEV07
|
||||
.DW DEV08, DEV09, DEV10, DEV11
|
||||
.DW DEV12, DEV13, DEV14, DEV15
|
||||
.DW DEV16, DEV17
|
||||
.DW DEV16, DEV17, DEV18
|
||||
;
|
||||
DEVUNK .DB "???$"
|
||||
DEV00 .DB "MD$"
|
||||
@@ -3428,7 +3428,8 @@ DEV13 .DB "CHUSB$"
|
||||
DEV14 .DB "CHSD$"
|
||||
DEV15 .DB "USB$"
|
||||
DEV16 .DB "ESPSD$"
|
||||
DEV17 .EQU DEVUNK
|
||||
DEV17 .DB "SCSI$"
|
||||
DEV18 .EQU DEVUNK
|
||||
;
|
||||
#ENDIF
|
||||
;
|
||||
|
||||
@@ -26,3 +26,5 @@ pushd Doc && call Clean & popd
|
||||
pushd ZRC && call Clean & popd
|
||||
pushd Z1RCC && call Clean & popd
|
||||
pushd ZZRCC && call Clean & popd
|
||||
pushd MSX && call Clean & popd
|
||||
pushd EZ512 && call Clean & popd
|
||||
|
||||
@@ -330,8 +330,8 @@ and display the contents in hexadecimal.
|
||||
|
||||
**`K`** - Echo any key-presses from the terminal. Press 'ESC' key
|
||||
to quit. This facility provides that any key stroke sent to
|
||||
the computer will be echoed back to the terminal. File down
|
||||
loads will be echoed as well while this facility is ‘on’.
|
||||
the computer will be echoed back to the terminal. File downloads
|
||||
will be echoed as well while this facility is ‘on’.
|
||||
|
||||
#### Load Hex
|
||||
|
||||
@@ -364,7 +364,7 @@ Use clip leaded LEDs to confirm the data written.
|
||||
#### Program Memory
|
||||
|
||||
**`P xxxx`** - Program memory location xxxx. This routine will
|
||||
allow you to program a hexadecimal value 'into memory starting
|
||||
allow you to program a hexadecimal value into memory starting
|
||||
at location xxxx. Press 'Enter' on a blank line to
|
||||
return to the Monitor prompt.
|
||||
|
||||
@@ -496,14 +496,14 @@ A comprehensive instruction manual is available in the Doc/Contrib directory.
|
||||
|
||||
TastyBASIC offers a minimal implementation of BASIC that is only 2304
|
||||
bytes in size. It originates from Li-Chen Wang's Palo Alto Tiny BASIC
|
||||
from around 1976. It's small size is suited the tiny memory capacities of
|
||||
from around 1976. It's small size suited the tiny memory capacities of
|
||||
the time. This implementation is by Dimitri Theulings and his original
|
||||
source can be found at <https://github.com/dimitrit/tastybasic>.
|
||||
|
||||
### Features / Limitations
|
||||
|
||||
- Integer arithmetic, numbers -32767 to 32767
|
||||
- Singles letter variables A-Z
|
||||
- Single letter variables A-Z
|
||||
- 1-dimensional array support
|
||||
- Strings are not supported
|
||||
|
||||
@@ -587,12 +587,12 @@ Extensions and changes to this implementation compared to the original distribut
|
||||
|
||||
| Word | Syntax | Description |
|
||||
|------|----------------------------|-------------------------------|
|
||||
| D+ | d1 d2 -- d1+d2 | Add double numbers |
|
||||
| 2>R | d -- | 2 to R |
|
||||
| 2R> | d -- | fetch 2 from R |
|
||||
| M*/ | d1 n2 u3 -- d=(d1*n2)/u3 | double precision mult. div |
|
||||
| SVC | hl de bc n -- hl de bc af | Execute a RomWBW function |
|
||||
| P! | n p -- | Write a byte to a I/O port |
|
||||
| D+ | d1 d2 -- d1+d2 | Add double numbers |
|
||||
| 2>R | d -- | 2 to R |
|
||||
| 2R> | d -- | fetch 2 from R |
|
||||
| M\*/ | d1 n2 u3 -- d=(d1\*n2)/u3 | double precision mult. div |
|
||||
| SVC | hl de bc n -- hl de bc af | Execute a RomWBW function |
|
||||
| P! | n p -- | Write a byte to a I/O port |
|
||||
| P@ | p -- n | Read a byte from and I/O port |
|
||||
|
||||
## Play a Game (2048)
|
||||
@@ -721,10 +721,10 @@ character-input/output device is to be used as the serial device for transfer.
|
||||
|
||||
When your console is the serial device used for the transfer, no progress
|
||||
information is displayed as this would disrupt the x-modem file transfer.
|
||||
If you use an alternate character-input/output devices as the serial device
|
||||
If you use an alternate character-input/output device as the serial device
|
||||
for the transfer then progress information will be displayed on the console device.
|
||||
|
||||
Due to different platform processor speeds, serials speeds and flow
|
||||
Due to different platform processor speeds, serial speeds and flow
|
||||
control capabilities the default console or serial device speed may
|
||||
need to be reduced for a successful transfer and flash to occur.
|
||||
The **Set Console Interface/Baud code** option at the Boot Loader can
|
||||
@@ -758,14 +758,14 @@ Option ( < ) - Revert to Original Baud Rate
|
||||
|
||||
Option ( U ) - Begin Update
|
||||
|
||||
The will begin the update process. The updater will expect to start receiving
|
||||
This will begin the update process. The updater will expect to start receiving
|
||||
an x-modem file on the serial device unit.
|
||||
|
||||
X-modem sends the file in packets of 128 bytes. The updater will cache 32
|
||||
packets which is 1 flash sector and then write that sector to the
|
||||
flash device.
|
||||
|
||||
If using separate console, bank and sector progress information will shown
|
||||
If using separate console, bank and sector progress information will be shown
|
||||
|
||||
```
|
||||
BANK 00 s00 s01 s02 s03 s04 s05 s06 s06 s07
|
||||
@@ -819,7 +819,7 @@ Option ( 3 ) - Calculate and display CRC32 of a 1024k (2x512Kb) ROM.
|
||||
|
||||
Can be used to verify if a ROM image has been transferred and flashed
|
||||
correctly. Refer to the Tera Term section below for details on
|
||||
configuring the automatic display of a files CRC after it has been
|
||||
configuring the automatic display of a file's CRC after it has been
|
||||
transferred.
|
||||
|
||||
In Windows, right clicking on a file should also give you a context
|
||||
@@ -837,7 +837,7 @@ process could be worthwhile if you are:
|
||||
* Doing development on RomWBW drivers
|
||||
|
||||
Macros can be used to automate sending ROM updates or images and
|
||||
for my own purposed I have set up a separate macro for transferring
|
||||
for my own purpose I have set up a separate macro for transferring
|
||||
each of the standard build ROM, my own custom configuration ROM
|
||||
and update ROM.
|
||||
|
||||
@@ -883,7 +883,6 @@ Feedback to the RomWBW developers on these guidelines would be appreciated.
|
||||
|
||||
### Notes
|
||||
|
||||
Notes
|
||||
* All testing was done with Tera Term x-modem, Forcing checksum mode
|
||||
using macros was found to give the most reliable transfer.
|
||||
* Partial writes can be completed with 39SF040 chips. Other chips
|
||||
@@ -925,7 +924,7 @@ Users should not remove this check from the templated code.
|
||||
If required, the user application may make use of the Z80 interrupt system
|
||||
but if the user application wishes to rely on HBIOS functionality then it
|
||||
must adhere to the HBIOS framework for managing interupts. Alternatively,
|
||||
if the user appliction has no need for the HBIOS then it may use its own
|
||||
if the user application has no need for the HBIOS then it may use its own
|
||||
custom code for handling interrupts. In that case, a hard reset, rather
|
||||
than an HBIOS warm start, would be necessary to return control to RomWBW.
|
||||
|
||||
@@ -989,6 +988,7 @@ included within RomWBW may be found within the Binary/Apps directory.
|
||||
| TIMER | Yes | Yes |
|
||||
| TUNE | No | Yes |
|
||||
| VGMPLAY | No | Yes |
|
||||
| VGMINFO | No | Yes |
|
||||
| WDATE | No | Yes |
|
||||
| XM | Yes | Yes |
|
||||
| ZMD | No | Yes |
|
||||
@@ -1020,9 +1020,9 @@ Disk-based CP/M:
|
||||
|
||||
For systems starting CP/M from a disk created from an image file, there are a small number
|
||||
of additional applications stored in the ```USER 2``` area of the disk. These applications
|
||||
do not form part of CP/M, but rather are small utilities used for test purposes during develpment work.
|
||||
They may, or may not, fuction correctly with any given hardware or software configuration.
|
||||
Documentation for these untilities is very limited, though the source files maybe found
|
||||
do not form part of CP/M, but rather are small utilities used for test purposes during development work.
|
||||
They may, or may not, function correctly with any given hardware or software configuration.
|
||||
Documentation for these utilities is very limited, though the source files may be found
|
||||
in the /Source folder. Note that these utiltites are not available when starting CP/M
|
||||
from the ROM image or from a floppy disk.
|
||||
|
||||
@@ -1332,6 +1332,11 @@ Use `CLRDIR` with caution as changes made to disks by `CLRDIR` cannot be undone.
|
||||
If `CLRDIR` is used on disk containing data then the directory area will be
|
||||
reinitialised and the data previously stored will be lost.
|
||||
|
||||
**WARNING**: Earlier versions of the `CLRDIR` application do not
|
||||
appear to check for disk errors when it runs. If you attempt to run
|
||||
`CLRDIR` on a drive that is mapped to a slice that does not actually fit
|
||||
on the physical disk, it may behave erratically.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## CPUSPD (CPU Speed)
|
||||
@@ -1349,13 +1354,15 @@ The functionality is highly dependent on the capabilities of your system.
|
||||
|
||||
#### Syntax
|
||||
|
||||
| `CPUSPD [`*`<speed>`*`[,[`*`<memws>`*`][,[`*`<iows>`*`]]]`
|
||||
| `CPUSPD [`*\<speed\>*`[,[`*\<memws\>*`][,[`*\<iows\>*`]]]`
|
||||
| `CPUSPD (W)armBoot`
|
||||
| `CPUSPD (C)oldBoot`
|
||||
|
||||
*`<speed>`* is one of (H)alf, (F)ull, (D)ouble, or (Q)uad.
|
||||
*`<memws>`* is a number specifying the desired memory wait states.
|
||||
*`<iows>`* is a number specifying the desired I/O wait states.
|
||||
*\<speed\>* is one of (H)alf, (F)ull, (D)ouble, or (Q)uad.
|
||||
|
||||
*\<memws\>* is a number specifying the desired memory wait states.
|
||||
|
||||
*\<iows\>* is a number specifying the desired I/O wait states.
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -1364,7 +1371,7 @@ and wait state information of the running system. Wait state
|
||||
information is not available for all systems.
|
||||
|
||||
To modify the running speed of a system, you can specify the
|
||||
`*`<speed>`*` parameter. To modify either or both of the wait
|
||||
*\<speed\>* parameter. To modify either or both of the wait
|
||||
states, you can enter the desired number. Either or both of the wait
|
||||
state parameters may be omitted and the current wait state settings
|
||||
will remain in effect.
|
||||
@@ -1431,20 +1438,20 @@ The source code is provided in the RomWBW distribution.
|
||||
The purpose of this utility is to allow the copying of whole disk slices
|
||||
from one disk slice to another slice
|
||||
|
||||
This tool is only supported by RomWBW HBIOS, it uses HDIOS for all its
|
||||
This tool is only supported by RomWBW HBIOS; it uses HBIOS for all its
|
||||
disk IO. UNA UBIOS is not supported by this tool.
|
||||
|
||||
This tool is running on CP/M 2.2 or 3.0 and has access to full 64kb of
|
||||
RAM, with a minimum of 48kb TPA
|
||||
|
||||
This tool only works with hard disk devices, other media types like
|
||||
This tool only works with hard disk devices; other media types like
|
||||
floppy, are not supported at this time. This tool works across different
|
||||
hard disk device types, even of different physical type
|
||||
|
||||
Both hd1k and hd512 are fully supported, however copying from one layout
|
||||
type to the other is not supported.
|
||||
|
||||
During operation data is copied in a single read/write pass, data is not
|
||||
During operation, data is copied in a single read/write pass; data is not
|
||||
verified by default. If there is a write error, it will be reported, and
|
||||
operation will stop.
|
||||
|
||||
@@ -1472,7 +1479,7 @@ V - Verify. Does an additional read and verify after write.
|
||||
|
||||
#### Usage
|
||||
|
||||
When run COPYSL will perform command line argument validation and display
|
||||
When run, COPYSL will perform command line argument validation and display
|
||||
an error if they are illegal. Also any disk IO errors will cause COPYSL
|
||||
to exit.
|
||||
|
||||
@@ -1724,7 +1731,7 @@ to format and test floppy disk media.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`FDU`
|
||||
| `FDU`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -1761,7 +1768,7 @@ provided in the RomWBW distribution.
|
||||
| Disk-based |Yes|
|
||||
|
||||
Most of the hardware platforms that run RomWBW support the use of
|
||||
EEPROMs -- Electronically Erasable Programmable ROMs. The `FLASH`
|
||||
EEPROMs -- Electrically Erasable Programmable ROMs. The `FLASH`
|
||||
application can be used to reprogram such ROMS in-situ (in-place),
|
||||
thus making it possible to upgrade ROMs without a programmer or even
|
||||
removing the ROM from your system.
|
||||
@@ -1794,7 +1801,7 @@ Options:
|
||||
#### Usage
|
||||
|
||||
To program your EEPROM ROM chip, first transfer the file to your
|
||||
RomWBW system. Then use the command `FLASH WRITE *`<filename>`*. The
|
||||
RomWBW system. Then use the command `FLASH WRITE `*\<filename\>*. The
|
||||
application will auto-detect the type of EEPROM chip you have,
|
||||
program it, and verify it.
|
||||
|
||||
@@ -1845,7 +1852,7 @@ make it simpler to format media including floppy disks.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`FORMAT`
|
||||
| `FORMAT`
|
||||
|
||||
#### Notes
|
||||
|
||||
@@ -1872,16 +1879,16 @@ against HBIOS Character Units.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`HTALK COMn:`
|
||||
| `HTALK `*<unit>*
|
||||
|
||||
#### Usage
|
||||
|
||||
`HTALK` operates at the HBIOS level.
|
||||
|
||||
The parameter to `TALK` refers to a HBIOS character unit. Upon
|
||||
execution all characters typed at the console will be sent to the
|
||||
device specified and all characters received by the specified device
|
||||
will be echoed on the console.
|
||||
The *<unit>* parameter to `TALK` is a single number referring to an HBIOS
|
||||
character unit. Upon execution all characters typed at the console will
|
||||
be sent to the device specified and all characters received by the
|
||||
specified device will be echoed on the console.
|
||||
|
||||
Press Control+Z on the console to terminate the application.
|
||||
|
||||
@@ -1908,8 +1915,8 @@ ports dynamically.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`MODE /?`
|
||||
`MODE COM`*`<n>`*`: [`*`<baud>`*`[,`*`<parity>`*`[,`*`<databits>`*`[,`*`<stopbits>`*`]]]] [/P]`
|
||||
| `MODE /?`
|
||||
| `MODE COM`*`<n>`*`: [`*`<baud>`*`[,`*`<parity>`*`[,`*`<databits>`*`[,`*`<stopbits>`*`]]]] [/P]`
|
||||
|
||||
`/?` displays command usage and version information
|
||||
|
||||
@@ -2024,7 +2031,7 @@ and set the time and registers of the RTC.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`RTC`
|
||||
| `RTC`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -2076,14 +2083,14 @@ support most of the hardware variations included with RomWBW.
|
||||
|
||||
Display or change the label of a disk slice.
|
||||
|
||||
The label applied is only used as informational purposes, displayed by RomWBW
|
||||
The label applied is only used for informational purposes, displayed by RomWBW
|
||||
when an OS is booted. It has no correlation with any OS volume label scheme
|
||||
that may exist. i.e. It does not affect the CP/M 3 disk label as applied by
|
||||
the `SET` command
|
||||
|
||||
#### Syntax
|
||||
|
||||
`SLABEL [unit.slice=label] [/?]`
|
||||
| `SLABEL [unit.slice=label] [/?]`
|
||||
|
||||
`unit.slice` the disk unit and slice number to apply the new label to. This
|
||||
is in the same format as when booting the system to a disk
|
||||
@@ -2108,7 +2115,7 @@ This will only display labels for the first 64 slices of any device. Slices
|
||||
higher than this are currently ignored.
|
||||
|
||||
Only bootable RomWBW disk images have a label, which is defined by the OS
|
||||
which is booted. i.e. NZ-COM has a label of "ZSDOS 1.1" since that is the
|
||||
that is booted. i.e. NZ-COM has a label of "ZSDOS 1.1" since that is the
|
||||
booted OS. Prior to RomWBW 3.5 all disk images were defined with the label
|
||||
"Unlabeled".
|
||||
|
||||
@@ -2164,7 +2171,7 @@ discover ports that are 'write-only'.
|
||||
| Disk-based |Yes|
|
||||
|
||||
System Configuration (`SYSCONF`) is a utility that allows system configuration to
|
||||
be set, dynamically and stored in NVRAM provided by an RTC chip.
|
||||
be set dynamically and stored in NVRAM provided by an RTC chip.
|
||||
|
||||
(`SYSCONF`) is both a ROM utility ('W' Menu option), and a CP/M application.
|
||||
Noting however the CP/M application is not included on an disk image, it is found in
|
||||
@@ -2200,7 +2207,6 @@ Commands:
|
||||
(H)elp [{SW}] - This help menu, or help on a switch
|
||||
e(X)it - Exit Configuration
|
||||
|
||||
$
|
||||
```
|
||||
|
||||
When you run (`SYSCONF`) for the first time the NVRAM will be uninitialised, and can
|
||||
@@ -2220,7 +2226,7 @@ To exit from the application use the (Q)uit command.
|
||||
|
||||
#### Commands and Syntax
|
||||
|
||||
The following are the accepted commands, unless otherwise specified a "Space"
|
||||
The following are the accepted commands, unless otherwise specified. A "Space"
|
||||
character is used to delimit parameters in the command.
|
||||
|
||||
| Command | Argument(s) | Description |
|
||||
@@ -2254,7 +2260,7 @@ Making changes to auto boot has no affect until the next reboot.
|
||||
| Type | Arguments | Description |
|
||||
|----------|------------|--------------------------------------------------------|
|
||||
| Enable | 'E' | Auto Boot. eg. "E,10" will auto boot, after 10 seconds |
|
||||
| | Timout | Timeout in seconds in the range 0-15, 0 = immediate |
|
||||
| | Timeout | Timeout in seconds in the range 0-15, 0 = immediate |
|
||||
| Disabled | 'D' | No Auto Boot. e.g. "D" will disable autoboot |
|
||||
|
||||
**Examples**
|
||||
@@ -2360,7 +2366,7 @@ considered its own operating system. Each slice can be made bootable
|
||||
with its own system tracks.
|
||||
|
||||
`SYSCOPY` uses drive letters to specify where to read/write the system
|
||||
boot images. However, at startup, the boot loaded will require you to
|
||||
boot images. However, at startup, the boot(?) loaded will require you to
|
||||
enter the actual disk device and slice to boot from. So, you need to
|
||||
be careful to pay attention to the device and slice that is assigned
|
||||
to a drive letter so you will know what to enter at the boot loader
|
||||
@@ -2372,10 +2378,10 @@ not currently assigned to a drive letter, you will need to assign a
|
||||
drive letter first.
|
||||
|
||||
Not all disk formats include space for system tracks. Such disk
|
||||
formats cannot contains a system boot image and, therefore, cannot be
|
||||
formats cannot contain a system boot image and, therefore, cannot be
|
||||
made bootable. The best example of such disk formats are the ROM and
|
||||
RAM disks. To maximize usable file space on these drives, they do not
|
||||
have system tracks. Obviously, ROM operating system is supported by
|
||||
have system tracks. Obviously, the ROM operating system is supported by
|
||||
choosing a ROM operating system at the boot loader prompt. Any attempt
|
||||
to write a system boot image to disk media with no system tracks will
|
||||
cause SYSCOPY to fail with an error message.
|
||||
@@ -2411,7 +2417,7 @@ shown on your console. The `TALK` application does this.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`TALK [TTY:|CRT:|BAT:UC1:]`
|
||||
| `TALK [TTY:|CRT:|BAT:|UC1:]`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -2448,7 +2454,7 @@ Z80 port of Palo Alto Tiny Basic.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`TBASIC` [*\<filename\>*]
|
||||
| `TBASIC` [*\<filename\>*]
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -2479,19 +2485,22 @@ displays the value of the counter.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`TIMER`
|
||||
`TIMER /?`
|
||||
`TIMER /C`
|
||||
| `TIMER`
|
||||
| `TIMER /?`
|
||||
| `TIMER /C`
|
||||
| `TIMER /Z`
|
||||
|
||||
#### Usage
|
||||
|
||||
Use `TIMER` to display the current value of the counter.
|
||||
|
||||
Use `TIMER /C` to display the value of the counter continuously.
|
||||
Use `TIMER /C` to display the value of the counter continuously. Press any key to exit.
|
||||
|
||||
Use `TIMER /Z` to zero the seconds counter.
|
||||
|
||||
The display of the counter will be something like this:
|
||||
|
||||
`13426 Ticks 268.52 Seconds`
|
||||
`2859 Ticks 24.18 Seconds 0:00:24.18 HH:MM:SS`
|
||||
|
||||
The first number is the total number of ticks since system startup, where
|
||||
there are 50 ticks per second. The second number is the total number of
|
||||
@@ -2499,15 +2508,18 @@ seconds since system startup. Numbers are displayed in decimal format.
|
||||
|
||||
#### Notes
|
||||
|
||||
The seconds value is displayed with a fractional value which is not a
|
||||
an actual fraction, but rather the number of ticks past the seconds
|
||||
rollover. All values are in hex.
|
||||
Not all systems will have a system timer. In this case, the
|
||||
`TIMER` command will output 0 for both ticks and seconds and never
|
||||
increment.
|
||||
|
||||
The resolution of the timer is determined by the system timer
|
||||
frequency which is typically 50Hz. This means that the seconds
|
||||
fraction will increment 0.02 seconds with each timer tick.
|
||||
|
||||
The primary use of the `TIMER` application is to test the system
|
||||
timer functionality of your system.
|
||||
|
||||
In theory, you could capture the value before and after some process
|
||||
you want to time.
|
||||
timer functionality of your system. However, it can be used to
|
||||
capture the value before and after some process you want to measure
|
||||
the elapsed runtime of.
|
||||
|
||||
#### Etymology
|
||||
|
||||
@@ -2527,12 +2539,12 @@ If your RomWBW system has a sound card based on either an AY-3-8190 or
|
||||
YM2149F sound chip, you can use the `TUNE` application to play PT or
|
||||
MYM sound files.
|
||||
|
||||
Note: TUNE will detect an AY-3-8910/YM2149 Sound Module re-gardless of
|
||||
Note: TUNE will detect an AY-3-8910/YM2149 Sound Module regardless of
|
||||
whether support for it is included in the RomWBW HBIOS configuration
|
||||
|
||||
#### Syntax
|
||||
|
||||
`TUNE `*`<filename>`* `*`<options>`*`
|
||||
| `TUNE `*`<filename>`* `*`<options>`*`
|
||||
|
||||
*`<filename>`* is the name of a sound file ending in .PT2, .PT3, or
|
||||
.MYM
|
||||
@@ -2629,6 +2641,67 @@ The source code is provided in the RomWBW distribution.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## VGMINFO (Video Game Music File Information)
|
||||
|
||||
| VGMPLAY | |
|
||||
| --------------------|---|
|
||||
| ROM-based |No |
|
||||
| Disk-based |Yes|
|
||||
|
||||
A utility that scans all .VGM files in the current directory and
|
||||
displays a table showing which audio chips each file uses.
|
||||
|
||||
Version 1.1 uses a hybrid detection approach:
|
||||
|
||||
- Checks VGM header clock values to detect chip types
|
||||
- Scans VGM command stream to detect multiple instances of same chip type
|
||||
|
||||
#### Syntax
|
||||
|
||||
| `VGMINFO`
|
||||
|
||||
#### Usage
|
||||
|
||||
No command line arguments are needed. The program will automatically scan
|
||||
all .VGM files in the current directory.
|
||||
|
||||
The program displays a formatted table with two columns:
|
||||
|
||||
- Filename: The name of the VGM file
|
||||
- Chips Used: A comma-separated list of audio chips used in that file
|
||||
|
||||
The program can detect the following audio chips:
|
||||
|
||||
- SN76489 (PSG - Programmable Sound Generator)
|
||||
- YM2612 (FM Synthesis chip used in Sega Genesis/Mega Drive)
|
||||
- YM2151 (OPM - FM Operator Type-M)
|
||||
- YM3812 (OPL2 - FM synthesis chip)
|
||||
- YMF262 (OPL3 - Enhanced FM synthesis chip)
|
||||
- AY-3-8910 (PSG used in many arcade and home computers)
|
||||
|
||||
#### Notes
|
||||
|
||||
- The program reads the VGM file headers and scans up to 255 commands from
|
||||
the VGM data stream for accurate chip detection.
|
||||
|
||||
- Files that don't have a valid VGM header are silently skipped.
|
||||
|
||||
- Chip detection uses a hybrid approach:
|
||||
* VGM header clock values (offsets 0x0C, 0x2C, 0x30, 0x74) determine
|
||||
which chip types are present
|
||||
* Command stream scanning detects multiple instances (e.g., "2xSN76489")
|
||||
|
||||
- AY-3-8910 clock detection respects VGM version - only checked for v1.51+
|
||||
to avoid false positives from invalid header data in older VGM versions.
|
||||
|
||||
#### Etymology
|
||||
|
||||
The `VGMINFO` application was written and contributed to RomWBW by
|
||||
Joao Miguel Duraes. An AI LLM was utilized in the creation of this
|
||||
application.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## VGMPLAY (Video Game Music Play)
|
||||
|
||||
| VGMPLAY | |
|
||||
@@ -2667,7 +2740,7 @@ chips.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`VGMPLAY `*`<filename>`*
|
||||
| `VGMPLAY `*`<filename>`*
|
||||
|
||||
*`<filename>`* is the name of a sound file ending in .VGM
|
||||
|
||||
@@ -2818,6 +2891,7 @@ files between systems using a serial port.
|
||||
| `XM R `*`<filename>`*
|
||||
|
||||
The following may be added to the action codes:
|
||||
|
||||
| `S`: Send a file
|
||||
| `L`: Send a file from a library
|
||||
| `R`: Receive a file
|
||||
@@ -2854,7 +2928,7 @@ the following:
|
||||
to be sent.
|
||||
|
||||
2. On your host computer, specify the name to assign to the received
|
||||
file and initiate and XModem receive operation.
|
||||
file and initiate an XModem receive operation.
|
||||
|
||||
Please refer to the documentation of your host computer's terminal
|
||||
emulation software for specific instructions on how to use XModem.
|
||||
@@ -2910,7 +2984,7 @@ to Z-System compatibility.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`ZMD` *\<mode\>\<protocol\>\<unit\>* [*\<filename\>*]
|
||||
| `ZMD` *\<mode\>\<protocol\>\<unit\>* [*\<filename\>*]
|
||||
|
||||
where *\<mode\>* can be:\
|
||||
**` S -`** Send file from BBS \
|
||||
@@ -2935,7 +3009,7 @@ To transfer a file from your host computer to your RomWBW computer, do
|
||||
the following:
|
||||
|
||||
1. Enter one of the `ZMD` receive commands specifying the name you want
|
||||
to give to the received file (no filename required for ZModem transfers).
|
||||
to give to the received file (no filename required for ZModem transfers).["ZMD does not do ZModem transfers"]
|
||||
|
||||
2. On your host computer select a file to send and initiate an XModem or
|
||||
YModem send operation.
|
||||
@@ -2954,17 +3028,17 @@ emulation software for specific instructions on how to use XModem.
|
||||
|
||||
#### Notes
|
||||
|
||||
The ZMP adaptation that comes with RomWBW will default to using
|
||||
The ZMD adaptation that comes with RomWBW will default to using
|
||||
the current HBIOS console port for transfers. Note that if you
|
||||
change your console port at the OS level (e.g., STAT CON:=UC1:),
|
||||
this does not change the HBIOS console.
|
||||
|
||||
`ZMP` attempts to determine the best way to drive the serial port based
|
||||
`ZMD` attempts to determine the best way to drive the serial port based
|
||||
on your hardware configuration. When possible, it will bypass the
|
||||
HBIOS for faster operation. However, in many cases, it will use HBIOS
|
||||
so that flow control can be used.
|
||||
|
||||
`ZMP` is dependent on a reliable communications channel. You must
|
||||
`ZMD` is dependent on a reliable communications channel. You must
|
||||
ensure that the serial port can be serviced fast enough by either
|
||||
using a baud rate that is low enough or ensuring that hardware flow
|
||||
control is fully functional (end to end).
|
||||
@@ -2990,7 +3064,7 @@ that is independent of the console running `ZMP`.
|
||||
|
||||
#### Syntax
|
||||
|
||||
`ZMD` *[\<unit\>]*
|
||||
| `ZMD` *[\<unit\>]*
|
||||
|
||||
*\<unit\>* can specify a single digit (0-9) indicating
|
||||
the RomWBW Character Unit to use for the modem port.
|
||||
|
||||
@@ -729,6 +729,7 @@ distribution. Some provide command line help themselves. Some are fairly obvio
|
||||
| `CRUNCH28.CFG` | | ZCNFG configuration file for CRUNCH & UNCR |
|
||||
| `DDTZ.COM` | | Z80 debug tool (modified to use RST 6) |
|
||||
| `DDTZ.DOC` | | Documentation for DDTZ |
|
||||
| `DOWNLOAD.COM` | Grant Searle | Grant Searle's DOWNLOAD, used by File Packager |
|
||||
| `EX.COM` | | Batch file processor (alternative to DRI SUBMIT) |
|
||||
| `FIND.COM` | Jay Cotton | Search all drives for a file () |
|
||||
| `GENHEX.COM` | | Generates an Intel Hex file from the input file |
|
||||
@@ -977,6 +978,7 @@ The following files are found in
|
||||
| `TSTDSKNG.COM` | DSKY NEXT GENERATION TEST APPLICATION |
|
||||
| `VDCONLY.COM` | COLOR VDU TEST |
|
||||
| `VDCTEST.COM` | COLOR VDU TEST |
|
||||
| `Z80TYPE.COM` | Z80 Chip Variant Detection |
|
||||
| `ZEXALL.COM` | Z80 Instruction Set Exerciser |
|
||||
| `ZEXDOC.COM` | Z80 Instruction Set Exerciser |
|
||||
|
||||
@@ -1432,15 +1434,15 @@ The following files are found in
|
||||
| `TURBO.OVR` | Part of TURBO Pascal |
|
||||
| `TURBOMSG.OVR` | Part of TURBO Pascal |
|
||||
|
||||
## WordStar 4 (Word processor)
|
||||
## Word Processing
|
||||
|
||||
| Floppy Disk Image: **fd_ws4.img**
|
||||
| Hard Disk Image: **hd_ws4.img**
|
||||
| Floppy Disk Image: **fd_wp.img**
|
||||
| Hard Disk Image: **hd_wp.img**
|
||||
| Combo Disk Image: **Slice 5**
|
||||
|
||||
The following files are found in
|
||||
|
||||
* /Source/Images/d_ws4
|
||||
* /Source/Images/d_wp
|
||||
|
||||
| **File** | **Description** |
|
||||
|----------------|-----------------|
|
||||
|
||||
@@ -28,6 +28,7 @@ including RC26, RC40, RC80, and BP80.
|
||||
|
||||
| **Description** | **Bus** | **ROM Image File** | **Baud Rate** |
|
||||
|-------------------------------------------------------------|---------|------------------------------|--------------:|
|
||||
| [RC2014 Z80 CPU Module], 512K RAM/ROM | RCBus | RC2014_std.rom | 115200 |
|
||||
| [RCBus Z80 CPU Module], 512K RAM/ROM | RCBus | RCZ80_std.rom | 115200 |
|
||||
| [RCBus Z80 CPU Module (KIO)], 512K w/KIO | RCBus | RCZ80_kio_std.rom | 115200 |
|
||||
| [RCBus Z180 CPU Module (External)] | RCBus | RCZ180_ext_std.rom | 115200 |
|
||||
@@ -116,9 +117,12 @@ Others
|
||||
| [eZ80 for RCBus Module]^8^, 512K RAM/ROM | RCBus | RCEZ80_std.rom | 115200 |
|
||||
| [Genesis Z180 System]^7^ | STD | GMZ180_std.rom | 115200 |
|
||||
| [Heath H8 Z80 System]^5^ | H8 | HEATH_std.rom | 115200 |
|
||||
| [MSX]^9^ | MSX | MSX_std.rom | 115200 |
|
||||
| [N8 PC]^10^ | ISA | N8PC_std.rom | 38400 |
|
||||
| [NABU w/ RomWBW Option Board]^5^ | NABU | NABU_std.rom | 115200 |
|
||||
| [S100 Computers Z180 SBC]^4^ | S100 | S100_std.rom | 57600 |
|
||||
| [S100 Computers FPGA Z80 SBC]^4^ | S100 | FZ80_std.rom | 9600 |
|
||||
| [S100 Computers Z180 SBC]^4^ | S100 | SZ180_std.rom | 57600 |
|
||||
| [S100 Computers Z80 CPU]^4^ | S100 | SZ80_std.rom | 19200 |
|
||||
| [S100 Computers T35 FPGA Z80 SBC]^4^ | S100 | SZ80_t35_std.rom | 9600 |
|
||||
| [UNA Hardware BIOS]^1^ | - | UNA_std.rom | - |
|
||||
| [Z80-Retro SBC]^3^ | - | Z80RETRO_std.rom | 38400 |
|
||||
| [Z180 Mark IV SBC]^1^ | ECB | MK4_std.rom | 38400 |
|
||||
@@ -131,6 +135,8 @@ Others
|
||||
| ^6^Designed by Alan Cox
|
||||
| ^7^Designed by Doug Jackson
|
||||
| ^8^Designed by Dean Netherton
|
||||
| ^9^MSX Port by Henk Berends
|
||||
| ^10^Designed by Dan Werner
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
@@ -414,14 +420,16 @@ of the SIO ports, for ease of use with modern computers.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## S100 Computers FPGA Z80 SBC
|
||||
## S100 Computers
|
||||
|
||||
An FPGA Z80 based S100 SBC
|
||||
### S100 Computers Z80 CPU
|
||||
|
||||
* Creator: John Monahan |
|
||||
* Website: [S100 Computers FPGA Z80 SBC](http://www.s100computers.com/My%20System%20Pages/FPGA%20Z80%20SBC/FPGA%20Z80%20SBC.htm)
|
||||
Z80-based S100 Modular System
|
||||
|
||||
#### ROM Image File: FZ80_std.rom
|
||||
* Creator: John Monahan
|
||||
* Website: [S100 Computers Z80 CPU](http://www.s100computers.com/My%20System%20Pages/Z80%20Board/Z80%20CPU%20Board.htm)
|
||||
|
||||
#### ROM Image File: SZ80_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
@@ -429,17 +437,70 @@ An FPGA Z80 based S100 SBC
|
||||
| Default CPU Speed | 8.000 MHz |
|
||||
| Interrupts | None |
|
||||
| System Timer | None |
|
||||
| Serial Default | 9600 Baud |
|
||||
| Serial Default | 19200 Baud |
|
||||
| Memory Manager | SZ80 |
|
||||
| ROM Size | 0 KB |
|
||||
| RAM Size | 1024 KB |
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- FP: LEDIO=5
|
||||
- DLPSER: IO=172
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL A
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL B
|
||||
- SCON: IO=0
|
||||
- ESPSD: IO=128, PRIMARY
|
||||
- ESPSD: IO=128, SECONDARY
|
||||
- MD: TYPE=RAM
|
||||
- PPIDE: MODE=S100A, IO=48, MASTER
|
||||
- PPIDE: MODE=S100A, IO=48, SLAVE
|
||||
- PPIDE: MODE=S100B, IO=48, MASTER
|
||||
- PPIDE: MODE=S100B, IO=48, SLAVE
|
||||
|
||||
#### Notes:
|
||||
|
||||
- Initial console will depend on the IOBYTE dip switch settings.
|
||||
See website for dip switch settings.
|
||||
|
||||
- Version 6.0 or greater of the S100 Z80 Monitor ROM is required to
|
||||
load and run RomWBW.
|
||||
|
||||
- RomWBW is loaded by the S100 monitor from either CF Card or SD Card.
|
||||
The CF/SD Card should be imaged using SZ80_std_hd1k_combo.img which
|
||||
includes RomWBW.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
### S100 Computers T35 FPGA Z80 SBC
|
||||
|
||||
A T35 FPGA Z80 based S100 SBC
|
||||
|
||||
* Creator: John Monahan
|
||||
* Website: [S100 Computers FPGA Z80 SBC](http://www.s100computers.com/My%20System%20Pages/FPGA%20Z80%20SBC/FPGA%20Z80%20SBC.htm)
|
||||
|
||||
#### ROM Image File: SZ80_t35_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
| Bus | S100 |
|
||||
| Default CPU Speed | 8.000 MHz |
|
||||
| Interrupts | None |
|
||||
| System Timer | None |
|
||||
| Serial Default | 19200 Baud |
|
||||
| Memory Manager | Z2 |
|
||||
| ROM Size | 0 KB |
|
||||
| RAM Size | 512 KB |
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- FP: LEDIO=255
|
||||
- DS5RTC: RTCIO=104, IO=104
|
||||
- SSER: IO=52
|
||||
- LPT: MODE=S100, IO=199
|
||||
- FV: IO=192, KBD MODE=FV, KBD IO=3
|
||||
- TSER: IO=53
|
||||
- DLPSER: IO=172
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL A
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL B
|
||||
- LPT: MODE=T35, IO=199
|
||||
- TVGA: IO=192, KBD MODE=T35, KBD IO=3
|
||||
- KBD: ENABLED
|
||||
- SCON: IO=0
|
||||
- ESPSD: IO=128, PRIMARY
|
||||
@@ -451,11 +512,24 @@ An FPGA Z80 based S100 SBC
|
||||
- PPIDE: MODE=S100A, IO=56, SLAVE
|
||||
- PPIDE: MODE=S100B, IO=56, MASTER
|
||||
- PPIDE: MODE=S100B, IO=56, SLAVE
|
||||
- SD: MODE=FZ80, IO=108, UNITS=2
|
||||
- SD: MODE=T35, IO=108, UNITS=2
|
||||
|
||||
|
||||
#### Notes:
|
||||
|
||||
- Requires matching FPGA code
|
||||
- This RomWBW build is specifically for the Trion T35 based module on
|
||||
the S100 Z80 FPGA board. The Waveshare FPGA module is not supported
|
||||
at this time.
|
||||
|
||||
- Requires matching FPGA code, see
|
||||
[S100 Projects RomWBW T35 Project](https://github.com/s100projects/ROMWBW_T35).
|
||||
|
||||
- Initial console will depend on the IOBYTE dip switch settings.
|
||||
See website for dip switch settings.
|
||||
|
||||
- RomWBW is loaded by the S100 monitor from either CF Card or SD Card.
|
||||
The CF/SD Card should be imaged using SZ80_t35_std_hd1k_combo.img which
|
||||
includes RomWBW.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
@@ -582,6 +656,47 @@ It also has an interface to the RetroBrew bus (ECB) for access to additional per
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## MSX
|
||||
|
||||
Support for standard MSX hardware by Henk Berends
|
||||
|
||||
The default configuration is for a European MSX 2 (PAL) with international keyboard and 512KB RAM Mapper extension.
|
||||
|
||||
#### ROM Image File: MSX_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
| Bus | MSX |
|
||||
| Default CPU Speed | 3.579 MHz |
|
||||
| Interrupts | Mode 1 |
|
||||
| System Timer | TMS |
|
||||
| Serial Default | 115200 Baud |
|
||||
| Memory Manager | MSX |
|
||||
| ROM Size | 0 KB |
|
||||
| RAM Size | 448 KB |
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- RP5C01: IO=180
|
||||
- UART: IO=128
|
||||
- UART: IO=136
|
||||
- TMS: MODE=MSXMKY, IO=152, SCREEN=80X24, KEYBOARD=MKY, INTERRUPTS ENABLED
|
||||
- MKY: IO=168
|
||||
- MD: TYPE=RAM
|
||||
- IDE: MODE=RC, IO=16, MASTER
|
||||
- IDE: MODE=RC, IO=16, SLAVE
|
||||
- PPIDE: MODE=MSX_BEER, IO=48, MASTER
|
||||
- PPIDE: MODE=MSX_BEER, NO SLAVE
|
||||
- AY38910: MODE=MSX, IO=160, CLOCK=1789772 HZ
|
||||
|
||||
#### Notes:
|
||||
|
||||
- MSX 1 can be used with the TMS VDP set to 40 columns mode.
|
||||
- Storage options are the BEER IDE and SODA IDE interfaces.
|
||||
- Serial option is a 16550 UART interface.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## NABU w/ RomWBW Option Board
|
||||
|
||||
No modifications to the NABU motherboard needed. Leave the standard NABU ROM in its socket
|
||||
@@ -817,8 +932,101 @@ This configuration is for the N8-2312 and latter (4314) revisions
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## N8 PC
|
||||
|
||||
This is a variant of the N8 computer.
|
||||
|
||||
* Creator: Dan Werner
|
||||
* Project GitHub: [N8 PC](https://github.com/danwerner21/N8PC)
|
||||
|
||||
#### ROM Image File: N8PC_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
| Bus | ISA |
|
||||
| Default CPU Speed | 9.216 MHz |
|
||||
| Interrupts | None |
|
||||
| System Timer | Z180 |
|
||||
| Serial Default | 38400 Baud |
|
||||
| Memory Manager | N8 |
|
||||
| ROM Size | 512 KB |
|
||||
| RAM Size | 512 KB |
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- PKD: IO=132, SIZE=8X1
|
||||
- M6242RTC: IO=160
|
||||
- ASCI: IO=64
|
||||
- ASCI: IO=65
|
||||
- TMS: MODE=N8PC, IO=152, SCREEN=80X24, KEYBOARD=KBD
|
||||
- KBD: ENABLED
|
||||
- MD: TYPE=RAM
|
||||
- MD: TYPE=ROM
|
||||
- FD: MODE=N8, IO=140, DRIVE 0, TYPE=3.5" HD
|
||||
- FD: MODE=N8, IO=140, DRIVE 1, TYPE=3.5" HD
|
||||
- PPIDE: MODE=STD, IO=132, MASTER
|
||||
- PPIDE: MODE=STD, IO=132, SLAVE
|
||||
- AY38910: MODE=N8, IO=156, CLOCK=3579545 HZ
|
||||
|
||||
#### Notes:
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## RCBus Z80
|
||||
|
||||
The RC2014 ROM is for the official RC2014 Kits by Spencer Owen.
|
||||
|
||||
* Creator: Spencer Owen
|
||||
* Google Groups: [RC2014-Z80](https://groups.google.com/g/rc2014-z80)
|
||||
* Github: [RC2014](https://github.com/RC2014Z80/RC2014)
|
||||
|
||||
### RC2014 Z80 CPU Module
|
||||
|
||||
Generic Rom Image.
|
||||
|
||||
#### ROM Image File: RC2014_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
| Bus | RCBus |
|
||||
| Default CPU Speed | 7.372 MHz |
|
||||
| Interrupts | Mode 1 |
|
||||
| System Timer | None |
|
||||
| Serial Default | 115200 Baud |
|
||||
| Memory Manager | Z2 |
|
||||
| ROM Size | 512 KB |
|
||||
| RAM Size | 512 KB |
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- FP: LEDIO=0, SWIO=0
|
||||
- LCD: IO=218, SIZE=20X4
|
||||
- DSRTC: MODE=STD, IO=192
|
||||
- UART: IO=128
|
||||
- UART: IO=136
|
||||
- UART: IO=160
|
||||
- UART: IO=168
|
||||
- SIO MODE=RC, IO=128, CHANNEL A, INTERRUPTS ENABLED
|
||||
- SIO MODE=RC, IO=128, CHANNEL B, INTERRUPTS ENABLED
|
||||
- SIO MODE=RC, IO=132, CHANNEL A, INTERRUPTS ENABLED
|
||||
- SIO MODE=RC, IO=132, CHANNEL B, INTERRUPTS ENABLED
|
||||
- ACIA: IO=128, INTERRUPTS ENABLED
|
||||
- CH: IO=62
|
||||
- CH: IO=60
|
||||
- CHUSB: IO=62
|
||||
- CHUSB: IO=60
|
||||
- MD: TYPE=RAM
|
||||
- MD: TYPE=ROM
|
||||
- FD: MODE=RCWDC, IO=80, DRIVE 0, TYPE=3.5" HD
|
||||
- FD: MODE=RCWDC, IO=80, DRIVE 1, TYPE=3.5" HD
|
||||
- IDE: MODE=RC, IO=16, MASTER
|
||||
- IDE: MODE=RC, IO=16, SLAVE
|
||||
- PPIDE: IO=32, MASTER
|
||||
- PPIDE: IO=32, SLAVE
|
||||
- SD: MODE=PIO, IO=105, UNITS=1
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
### RCBus Z80 CPU Module
|
||||
|
||||
Generic Rom Image.
|
||||
@@ -1141,7 +1349,8 @@ It is designed specifically for ROM-less RomWBW. HBIOS is loaded from disk at bo
|
||||
Eazy80-512 is Eazy80 rev2 pc board configured with 512K RAM to run RomWBW.
|
||||
The design was derived from modifications to Eazy80 Rev1 that supported RomWBW.
|
||||
|
||||
HBIOS is loaded from disk at boot by ROM monitor
|
||||
HBIOS is loaded from disk at boot by ROM monitor or via a a compressed
|
||||
ROM image.
|
||||
|
||||
(Not to be confused with EasyZ80)
|
||||
|
||||
@@ -1150,7 +1359,7 @@ HBIOS is loaded from disk at boot by ROM monitor
|
||||
* Retrobrew Wiki: [Eazy80 Rev2, Glue-less Configuration](https://www.retrobrewcomputers.org/doku.php?id=builderpages:plasmo:eazy80:eazy80rev2:eazy80rev2home)
|
||||
* Google Groups: [EaZy80, A Simple80 with KIO](https://groups.google.com/g/retro-comp/c/0cUDbZspHyQ)
|
||||
|
||||
#### ROM Image File: RCZ80_ez512_std.rom
|
||||
#### ROM Image File: RCZ80_ez512_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
@@ -1163,6 +1372,41 @@ HBIOS is loaded from disk at boot by ROM monitor
|
||||
| ROM Size | 0 KB |
|
||||
| RAM Size | 512 KB |
|
||||
|
||||
#### Compressed ROM Image File: RCZ80_ez512_std_64k.rom
|
||||
|
||||
The RomWBW utility program 'compress' is designed to squeeze the
|
||||
compiled RomWBW 128K file 'RCZ80_ez512_std.upd' into a 64K ROM. As there
|
||||
are many areas in RomWBW with repeating bytes of the same value, it is
|
||||
possible to compress the 128K file to fit into a 64K ROM.
|
||||
|
||||
The compression program looks for two or more consecutive bytes of the
|
||||
same value (any values of $00 to $FF). If it finds duplicates, it leaves
|
||||
two of the duplicate bytes followed by a byte count, n-1 (n <= $FF),
|
||||
where n is the total number of duplicates. If the program succeeds in
|
||||
compressing the input file to fit into the available space, the file
|
||||
'RCZ80_ez512_std_64k.rom' is constructed, along with a short Z80
|
||||
decompression program that will be stored in the last 256 bytes of the
|
||||
ROM. The constructed 64K file is saved and the unused storage space is
|
||||
output in bytes. Should compression fail to fit the input file into
|
||||
available space, only an error message and the overrun in bytes is
|
||||
output.
|
||||
|
||||
The decompression program, located at $FF00, is executed at startup via
|
||||
the 3-byte jump at location $0000, decompressing the stored code in ROM
|
||||
into the computer's RAM. When decompression finishes, control is passed
|
||||
to RAM location $0000, which in turn starts execution of RomWBW.
|
||||
|
||||
The 64K ROM Layout:
|
||||
|
||||
* The first 3 bytes are always $C3 $00 $FF, a jump to the Z80
|
||||
decompression code located at $FF00 in the ROM.
|
||||
|
||||
* Locations $0003 up to, and including, $FEFF are available to store
|
||||
the compressed 128K input file.
|
||||
|
||||
* Location $FF00 up to, and including, $FFFF, is where the Z80
|
||||
decompression program is stored.
|
||||
|
||||
#### Supported Hardware
|
||||
|
||||
- DSRTC: MODE=STD, IO=192
|
||||
@@ -1749,7 +1993,7 @@ as defined by the IEEE-696 specs.
|
||||
* Creator: John Monahan |
|
||||
* Website: [S100 Computers Z180 SBC](http://www.s100computers.com/My%20System%20Pages/Z180%20SBC/Z180%20SBC.htm)
|
||||
|
||||
#### ROM Image File: S100_std.rom
|
||||
#### ROM Image File: SZ180_std.rom
|
||||
|
||||
| | |
|
||||
|-------------------|---------------|
|
||||
@@ -1765,19 +2009,21 @@ as defined by the IEEE-696 specs.
|
||||
#### Supported Hardware
|
||||
|
||||
- INTRTC: ENABLED
|
||||
- DLPSER: IO=172
|
||||
- ASCI: IO=192, INTERRUPTS ENABLED
|
||||
- ASCI: IO=193, INTERRUPTS ENABLED
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL A
|
||||
- SCC MODE=SZ80, IO=160, CHANNEL B
|
||||
- SCON: IO=0
|
||||
- MD: TYPE=RAM
|
||||
- MD: TYPE=ROM
|
||||
- SD: MODE=SC, IO=12, UNITS=1
|
||||
- ESPSD: IO=128, PRIMARY
|
||||
- ESPSD: IO=128, SECONDARY
|
||||
- ESPSD occupies 995 bytes.
|
||||
- MD: TYPE=RAM
|
||||
- MD: TYPE=ROM
|
||||
- PPIDE: MODE=S100A, IO=48, MASTER
|
||||
- PPIDE: MODE=S100A, IO=48, SLAVE
|
||||
- PPIDE: MODE=S100B, IO=48, MASTER
|
||||
- PPIDE: MODE=S100B, IO=48, SLAVE
|
||||
- SD: MODE=SC, IO=12, UNITS=1
|
||||
|
||||
#### Notes:
|
||||
|
||||
@@ -2093,7 +2339,7 @@ Z180 CPU (eg. SC722) with 1MB linear memory (eg. SC721)
|
||||
- PPIDE: IO=32, SLAVE
|
||||
- SD: MODE=SC, IO=12, UNITS=1
|
||||
|
||||
\clearpage`{=latex}
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## Z80-Retro SBC
|
||||
|
||||
@@ -2239,8 +2485,11 @@ may be discovered by RomWBW in your system.
|
||||
| PPPCON | ParPortProp Serial Console Interface |
|
||||
| PRPCON | PropIO Serial Console Interface |
|
||||
| SCON | S100 Console |
|
||||
| SIO | Zilog Serial Port Interface |
|
||||
| SIO | Zilog Serial Input/Output Controller (SIO) |
|
||||
| SCC | Zilog Serial Communications Controller (SCC) |
|
||||
| SSER | Simple Serial Interface |
|
||||
| TSER | Trion FPGA Serial Interface |
|
||||
| DLPSER | DLP USB Serial Interface |
|
||||
| UART | 16C550 Family Serial Interface |
|
||||
| USB-FIFO | FT232H-based ECB USB FIFO |
|
||||
| Z2U | Zilog Z280 CPU Built-in Serial Ports |
|
||||
@@ -2250,16 +2499,20 @@ discovers for the initial console. The following character devices are
|
||||
scanned in the order shown. The available character devices depend on
|
||||
the active platform and configuration.
|
||||
|
||||
#. SSER: Simple Serial Interface
|
||||
#. ASCI: Zilog Z180 CPU Built-in Serial Ports
|
||||
#. Z2U: Zilog Z280 CPU Built-in Serial Ports
|
||||
#. UART: 16C550 Family Serial Interface
|
||||
#. DUART: SCC2681 or compatible Dual UART
|
||||
#. SIO: Zilog Serial Port Interface
|
||||
#. SIO: Zilog Serial Port Interface (SIO)
|
||||
#. SCC: Zilog Serial Port Interface (SCC)
|
||||
#. EZ80UART: eZ80 Serial Port Interface
|
||||
#. ACIA: MC68B50 Asynchronous Communications Interface Adapter
|
||||
#. SSER: Simple Serial Interface
|
||||
#. TSER: Trion FPGA Serial Interface
|
||||
#. DLPSER: DLP USB Serial Interface
|
||||
#. USB-FIFO: FT232H-based ECB USB FIFO
|
||||
|
||||
|
||||
## Disk
|
||||
|
||||
| **ID** | **Description** |
|
||||
@@ -2279,6 +2532,7 @@ the active platform and configuration.
|
||||
| SD | SD Card Interface |
|
||||
| SYQ | Iomega SparQ Drive on PPI |
|
||||
| ESPSD | S100 ESP32-based SD Card Interface |
|
||||
| SCSI | 5380 SCSI Interface |
|
||||
|
||||
## Video
|
||||
|
||||
@@ -2286,10 +2540,10 @@ the active platform and configuration.
|
||||
|-----------|--------------------------------------------------------|
|
||||
| CVDU | MC8563-based Video Display Controller |
|
||||
| EF | EF9345 Video Display Controller |
|
||||
| FV | S100 FPGA Z80 Onboard VGA/Keyboard |
|
||||
| TVGA | S100 Trion FPGA Onboard VGA/Keyboard |
|
||||
| GDC | uPD7220 Video Display Controller |
|
||||
| TMS | TMS9918/38/58 Video Display Controller |
|
||||
| VDU | MC6845 Family Video Display Controller (*) |
|
||||
| VDU | MC6845 Family Video Display Controller (\*) |
|
||||
| VGA | HD6445CP4-based Video Display Controller |
|
||||
| VRC | VGARC Video Display Controller |
|
||||
| XOSERA | XOSERA FPGA-based Video Display Controller |
|
||||
@@ -2335,6 +2589,9 @@ Note:
|
||||
| PCF | PCF8584-based I2C Real-Time Clock |
|
||||
| RP5C01 | Ricoh RPC01A Real-Time Clock w/ NVRAM |
|
||||
| SIMRTC | SIMH Simulator Real-Time Clock |
|
||||
| MMRTC | NS MM58167B Real-Time Clock (no NVRAM) |
|
||||
| DS12RTC | Dallas Semiconductor DS1288x Real-Time Clock w/ NVRAM |
|
||||
| M6242 | MSM6242 Real-Time Clock (no NVRAM) |
|
||||
|
||||
## DsKy (DiSplay KeYpad)
|
||||
|
||||
@@ -2359,6 +2616,7 @@ Note:
|
||||
| KIO | Zilog Serial/ Parallel Counter/Timer (Z84C90) |
|
||||
| PPP | ParPortProp Host Interface Controller |
|
||||
| PRP | PropIO Host Interface Controller |
|
||||
| SCTIM | SC737 50Hz System Timer |
|
||||
|
||||
# UNA Hardware BIOS
|
||||
|
||||
@@ -2418,3 +2676,4 @@ for more information on UNA.
|
||||
CP/M 3, ZPM3, and p-System.
|
||||
|
||||
- Some of the RomWBW-specific applications are not UNA compatible.
|
||||
|
||||
|
||||
@@ -342,6 +342,14 @@ please let me know if I missed you!
|
||||
* Marshall Gates has contriubed sample program source files for all
|
||||
of the language disk images.
|
||||
|
||||
* Randy Merkel provided the ZSDOS Programmer's Manual as translated
|
||||
by Wayne Hortensius.
|
||||
|
||||
* Henk Berends added support for the MSX platform.
|
||||
|
||||
* Jay Cotton provided the SCSI transport code upon which the SCSI
|
||||
driver is based.
|
||||
|
||||
`\clearpage`{=latex}
|
||||
|
||||
## Related Projects
|
||||
|
||||
@@ -659,8 +659,10 @@ latter version of the SBC.
|
||||
On systems with RTC devices (that have Non-Volatile RAM), RomWBW supports storing
|
||||
some limited configuration option options inside this RAM.
|
||||
|
||||
Several configuration options are currently supported; these are known as Switches.
|
||||
The following switch ID's are defined, and described in sections below.
|
||||
Several configuration options are currently supported; these are
|
||||
referred to as Switches. In this case the term Switches refers to "soft"
|
||||
switches stored in NVRAM, not physical panel switches. The following
|
||||
switch ID's are defined, and described in sections below.
|
||||
|
||||
| Switch Number | Name | Description |
|
||||
|---------------|--------------|-----------------------------------------------|
|
||||
@@ -683,6 +685,11 @@ the bytes in NVRAM to check for authenticity before using the configuration.
|
||||
The above data is copied into the HBIOS Configuration Block (HCB) at startup at
|
||||
the location starting at CB_SWITCHES.
|
||||
|
||||
Although the switch data is stored in NVRAM, it is intended that you
|
||||
use [SYSGET Subfunction 0xC0 -- Get Switches (SWITCH)] or
|
||||
[SYSSET Subfunction 0xC0 -- Set Switches (SWITCH)] to read or write
|
||||
the switch values described here.
|
||||
|
||||
### Boot Options (NVSW_BOOTOPTS)
|
||||
|
||||
16 bit Switch defining the ROM application or Disk device to boot if
|
||||
@@ -705,13 +712,15 @@ automatic booting is enabled.
|
||||
|
||||
### Status Reset (0xFF)
|
||||
|
||||
The Status Reset switch is not a general purpose switch, it is a control mechanism
|
||||
to allow the global status of all switches to be determined. The meaning of the switch
|
||||
is different for Read (Get Status) and Write (Reset NVRAM)
|
||||
The Status Reset switch is a virtual switch that does not have a
|
||||
corresponding stored value. It is a control mechanism to allow the
|
||||
global status of all switches to be determined. The meaning of the
|
||||
switch is different for Read (Get Status) and Write (Reset NVRAM)
|
||||
|
||||
#### GET (Get Status)
|
||||
|
||||
The read Get Status of switches. This returns very specific values from the function call.
|
||||
When the switch number 0xFF is read (using the Get Switches function),
|
||||
the status of the NVRAM switches will be returned as follows:
|
||||
|
||||
| Status | A Register | Z / NZ Flag |
|
||||
|----------------------------------------------|------------|--------------|
|
||||
@@ -721,8 +730,10 @@ The read Get Status of switches. This returns very specific values from the func
|
||||
|
||||
#### SET (Reset NVRAM)
|
||||
|
||||
Reset NVRAM to default values. This will wipe any existing data and set default
|
||||
values into NVRAM.
|
||||
When the switch number 0xFF is written (using the Set Switches
|
||||
function), the stored values of all switches will be reset to their
|
||||
default values. This will wipe any existing data and set default values
|
||||
into NVRAM.
|
||||
|
||||
# Driver Model
|
||||
|
||||
@@ -1090,6 +1101,7 @@ below enumerates their values.
|
||||
| DIODEV_CHSD | 0x0E | CH375/376 SD Card | ch.asm |
|
||||
| DIODEV_USB | 0x0F | CH376 Native USB Device | ch376.asm |
|
||||
| DIODEV_ESPSD | 0x10 | S100 ESP32 SD Card | espsd.asm |
|
||||
| DIODEV_SCSI | 0x11 | 5380 SCSI Interface | scsi.asm |
|
||||
|
||||
A fixed set of media types are defined. The currently defined media
|
||||
types identifiers are listed below. Each driver will support one or
|
||||
@@ -1197,8 +1209,8 @@ point, all disk drivers support both LBA and CHS addressing.
|
||||
| E: Sector Count | |
|
||||
| HL: Buffer Address | |
|
||||
|
||||
Read Sector Count (E) sectors into the buffer located in Buffer Bank ID (D)
|
||||
at Buffer Address (HL) starting at the Current Sector. The returned
|
||||
Read Sector Count (E) sectors into the buffer located in Buffer Bank ID
|
||||
(D) at Buffer Address (HL) starting at the Current Sector. The returned
|
||||
Status (A) is a standard HBIOS result code.
|
||||
|
||||
The Current Sector is established by a prior DIOSEEK function call;
|
||||
@@ -1208,18 +1220,21 @@ successfully read. On error, the Current Sector will be the sector where
|
||||
the error occurred. Sectors Read (E) indicates the number of sectors
|
||||
successfully read.
|
||||
|
||||
A Sector Count of zero will result in no sectors being read and a
|
||||
status of success. The buffer will not be modified.
|
||||
|
||||
For buffers in the bottom 32KB ram, the Bank ID is used to identify the
|
||||
bank to use for the buffer. If the buffer is located in your current
|
||||
active bank, you will need to provide the current Bank ID, which can be
|
||||
obtained using [Function 0xF3 -- System Get Bank (SYSGETBNK)]. For
|
||||
buffers in the top 32K of memory the Bank ID is not strictly required as
|
||||
this memory is always mapped to the common bank.
|
||||
|
||||
The caller must ensure that the Buffer Address is large enough to
|
||||
contain all sectors requested. Disk data transfers will be faster if
|
||||
the buffer resides in the top 32K of memory because it avoids a
|
||||
double buffer copy.
|
||||
|
||||
Also for buffers in the top 32K of memory the Bank ID is not
|
||||
strictly required as this memory is alway mapped to the common bank.
|
||||
For buffers in the bottom 32KB ram, the Bank ID is used to identify
|
||||
the bank to use for the buffer. If you do not wih to use banked memory
|
||||
you will need to provide the current Bank ID, which can be obtained
|
||||
using [Function 0xF3 -- System Get Bank (SYSGETBNK)]
|
||||
|
||||
### Function 0x14 -- Disk Write (DIOWRITE)
|
||||
|
||||
| **Entry Parameters** | **Returned Values** |
|
||||
@@ -1230,9 +1245,9 @@ using [Function 0xF3 -- System Get Bank (SYSGETBNK)]
|
||||
| E: Sector Count | |
|
||||
| HL: Buffer Address | |
|
||||
|
||||
Write Sector Count (E) sectors from the buffer located in Buffer Bank ID (D)
|
||||
at Buffer Address (HL) starting at the Current Sector. The returned
|
||||
Status (A) is a standard HBIOS result code.
|
||||
Write Sector Count (E) sectors from the buffer located in Buffer Bank ID
|
||||
(D) at Buffer Address (HL) starting at the Current Sector. The
|
||||
returned Status (A) is a standard HBIOS result code.
|
||||
|
||||
The Current Sector is established by a prior DIOSEEK function call;
|
||||
however, multiple read/write/verify function calls can be made after a
|
||||
@@ -1241,6 +1256,16 @@ successfully written. On error, the Current Sector will be the sector
|
||||
where the error occurred. Sectors Written (E) indicates the number of
|
||||
sectors successfully written.
|
||||
|
||||
A Sector Count of zero will result in no sectors being written and a
|
||||
status of success. The buffer will not be modified.
|
||||
|
||||
For buffers in the bottom 32KB ram, the Bank ID is used to identify the
|
||||
bank to use for the buffer. If the buffer is located in your current
|
||||
active bank, you will need to provide the current Bank ID, which can be
|
||||
obtained using [Function 0xF3 -- System Get Bank (SYSGETBNK)]. For
|
||||
buffers in the top 32K of memory the Bank ID is not strictly required as
|
||||
this memory is always mapped to the common bank.
|
||||
|
||||
Disk data transfers will be faster if the buffer resides in the top 32K
|
||||
of memory because it avoids a double copy.
|
||||
|
||||
@@ -1419,6 +1444,8 @@ unit. The table below enumerates these values.
|
||||
| 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 |
|
||||
| RTCDEV_MM | 0x09 | NS MM58167B RTC (no NVRAM) | mmrtc.asm |
|
||||
| RTCDEV_DS12 | 0x0A | DS1288x RTC w/NVRAM | ds12rtc.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
|
||||
@@ -1530,9 +1557,9 @@ Work in progress, documentation required...
|
||||
Returns device information for the RTC unit. The Status (A) is a
|
||||
standard HBIOS result code.
|
||||
|
||||
Device Attribute (C) values are not yet defined. Device Type (D)
|
||||
indicates the specific hardware driver that handles the specified
|
||||
character unit. Values are listed at the start of this section. Device
|
||||
Device Attributes (C) values are not yet defined. Device Type (D)
|
||||
indicates the specific hardware driver that handles the RTC unit.
|
||||
Values are listed at the start of this section. Device
|
||||
Number (E) indicates the physical device number assigned per driver
|
||||
which is always 0 for RTC.
|
||||
|
||||
@@ -1776,7 +1803,7 @@ below enumerates their values.
|
||||
| VDADEV_VGA | 0x04 | HD6445CP4-based Video Display Controller | vga.asm |
|
||||
| VDADEV_VRC | 0x05 | VGARC | vrc.asm |
|
||||
| VDADEV_EF | 0x06 | EF9345 | ef.asm |
|
||||
| VDADEV_FV | 0x07 | S100 FPGA VGA | fv.asm |
|
||||
| VDADEV_TVGA | 0x07 | S100 TRION FPGA VGA | tvga.asm |
|
||||
| VDADEV_XOSERA | 0x08 | Xosera FPGA-based Video Display Controller | xosera.asm |
|
||||
|
||||
Depending on the capabilities of the hardware, the use of colors and
|
||||
@@ -2583,14 +2610,14 @@ The hardware Platform (L) is identified as follows:
|
||||
| PLT_MBC | 13 | NHYODYNE MULTI-BOARD COMPUTER |
|
||||
| PLT_RPH | 14 | RHYOPHYRE GRAPHICS SBC |
|
||||
| PLT_Z80RETRO | 15 | Z80 RETRO COMPUTER |
|
||||
| PLT_S100 | 16 | S100 COMPUTERS Z180 |
|
||||
| PLT_SZ180 | 16 | S100 COMPUTERS Z180 |
|
||||
| PLT_DUO | 17 | DUODYNE Z80 SYSTEM |
|
||||
| PLT_HEATH | 18 | HEATHKIT H8 Z80 SYSTEM |
|
||||
| PLT_EPITX | 19 | Z180 MINI-ITX |
|
||||
| PLT_MON | 20 | MONSPUTER (DEPRECATED) |
|
||||
| PLT_GMZ180 | 21 | GENESIS Z180 SYSTEM |
|
||||
| PLT_NABU | 22 | NABU PC W/ ROMWBW OPTION BOARD |
|
||||
| PLT_FZ80 | 23 | S100 FPGA Z80 |
|
||||
| PLT_SZ80 | 23 | S100 COMPUTERS Z80 |
|
||||
| PLT_RCEZ80 | 24 | RCBUS W/ eZ80 |
|
||||
|
||||
For more information on these platforms see $doc_hardware$
|
||||
@@ -2960,7 +2987,7 @@ HBIOS result code.
|
||||
|
||||
This function returns information about the active CPU environment. The
|
||||
Z80 CPU Variant (H) will be one of: 0=Z80, 1=Z180, 2=Z180-K, 3=Z180-N,
|
||||
4=Z280. The current CPU speed is provided as both CPU Speed MHz (L) and
|
||||
4=Z280, 5=eZ80. The current CPU speed is provided as both CPU Speed MHz (L) and
|
||||
CPU Speed KHz (DE). The raw oscillator speed is provided as Oscillator
|
||||
Speed KHz (BC). The returned Status (A) is a standard HBIOS result
|
||||
code.
|
||||
@@ -3123,6 +3150,9 @@ performed. It includes the Boot Bank ID (L), the Boot Disk Unit (D),
|
||||
and the Boot Disk Slice (E). The returned Status (A) is a standard
|
||||
HBIOS result code.
|
||||
|
||||
This information is recorded in the HCB. HCB_BOOTBID is set to the Boot
|
||||
Bank ID (L) and HCB_BOOTVOL is set to the BootDisk Unit/Slice (DE).
|
||||
|
||||
#### SYSSET Subfunction 0xF3 -- Set CPU Speed (CPUSPD)
|
||||
|
||||
| **Entry Parameters** | **Returned Values** |
|
||||
|
||||
@@ -1117,100 +1117,6 @@ starting the operating system. Even better, you can use an auto-submit
|
||||
batch file to customzie the assignments at startup without any user
|
||||
intervention.
|
||||
|
||||
## Disk Operations/Commands
|
||||
|
||||
With some understanding of how RomWBW presents disk space to the
|
||||
operating systems, we need to go over the options for actually setting
|
||||
up your disk(s) with content.
|
||||
|
||||
### Preparing Media for First Use
|
||||
|
||||
You can initialize the media in-place using your RomWBW system.
|
||||
Essentially, this means you are creating a set of blank directories on
|
||||
your disk so that files can be saved there.
|
||||
This is somewhat analogous to partitioning of a hard disk
|
||||
or doing a low level format of a floppy disk.
|
||||
|
||||
Initilizing a Floppy disk is covered in the section [Floppy Disk Formatting],
|
||||
or for a Hard disk the section [Hard Disk Preparation] covers the steps to
|
||||
manually setup a hard disk for first use.
|
||||
|
||||
### Clearing (Formatting) Drives
|
||||
|
||||
This is somewhat analogous to doing a FORMAT operation on other systems.
|
||||
|
||||
With RomWBW you use the `CLRDIR` command to do this.
|
||||
This command is merely "clearing out" the directory space of the drive
|
||||
referred to by a drive letter and setting up the new empty directory.
|
||||
|
||||
Refer to $doc_apps$ for more information on use of the `CLRDIR` command.
|
||||
|
||||
Since `CLRDIR` works on drive letters, make
|
||||
absolutely sure you know what media and slice are assigned to that
|
||||
drive letter before using `CLRDIR` because `CLRDIR` will wipe out any
|
||||
pre-existing contents of the slice.
|
||||
|
||||
After `CLRDIR` completes, the slice should be ready to use by the operating
|
||||
system via the drive letter assigned.
|
||||
Start by using the `DIR` command on the drive.
|
||||
This should return without error, but list no files.
|
||||
|
||||
Here is an example of using `CLRDIR`. In this example, the `ASSIGN`
|
||||
command is used to show the current drive letter assignments. Then
|
||||
the `CLRDIR` command is used to initialize the directory of drive 'G'
|
||||
which is slice 2 of hard disk device IDE0 ("IDE0:2").
|
||||
|
||||
```
|
||||
B>ASSIGN
|
||||
|
||||
A:=MD0:0
|
||||
B:=MD1:0
|
||||
C:=FD0:0
|
||||
D:=FD1:0
|
||||
E:=IDE0:0
|
||||
F:=IDE0:1
|
||||
G:=IDE0:2
|
||||
H:=IDE0:3
|
||||
|
||||
B>CLDIR G:
|
||||
CLRDIR Version 1.2B May 2024 by Max Scane
|
||||
|
||||
Warning - this utility will overwrite the directory sectors of Drive: G
|
||||
Type CAPITAL Y to proceed, any key other key to exit. Y
|
||||
Directory cleared.
|
||||
B>
|
||||
```
|
||||
|
||||
### Checking Disk Layout
|
||||
|
||||
If you are not sure which disk layout is used for your existing
|
||||
media, you can use the CP/M 2.2 `STAT` command to display information
|
||||
including the number of "32 Byte Directory Entries"
|
||||
for a drive letter on the corresponding hard disk.
|
||||
|
||||
- If it indicates 512, your disk layout is Classic (hd512).
|
||||
- If it indicates 1024, your disk layout is Modern (hd1k).
|
||||
|
||||
Here is an example of checking the disk layout.
|
||||
|
||||
```
|
||||
B>STAT E:DSK:
|
||||
|
||||
E: Drive Characteristics
|
||||
65408: 128 Byte Record Capacity
|
||||
8176: Kilobyte Drive Capacity
|
||||
1024: 32 Byte Directory Entries
|
||||
0: Checked Directory Entries
|
||||
256: Records/ Extent
|
||||
32: Records/ Block
|
||||
64: Sectors/ Track
|
||||
2: Reserved Tracks
|
||||
```
|
||||
|
||||
It is critical that you include `DSK:` after the drive letter in the
|
||||
`STAT` command line. The important line to look at is labeled "32 Byte
|
||||
Directory Entries".
|
||||
|
||||
# Disk Types
|
||||
|
||||
## RAM & ROM Disks
|
||||
@@ -1500,7 +1406,9 @@ There are two approaches to preparing disks for use by RomWBW.
|
||||
including files to a disk.
|
||||
|
||||
This section of the document describes the manual process of preparing
|
||||
empty disks that are ready for use by an operating system.
|
||||
empty disks that are ready for use by an operating system.
|
||||
This is somewhat analogous to partitioning and formatting of a hard disk
|
||||
or doing a low level format of a floppy disk.
|
||||
|
||||
Alternatively, you can use the pre-built RomWBW disk images to quickly
|
||||
create disk media that already has a large selection of files and
|
||||
@@ -1728,12 +1636,7 @@ You need to initialize each slice for CP/M to use it.
|
||||
This is somewhat analogous to doing a FORMAT operation on other systems,
|
||||
and is done using the `CLRDIR` command.
|
||||
|
||||
This is covered in the section [Clearing (Formatting) Drives]
|
||||
|
||||
**WARNING**: Earlier versions of the `CLRDIR` application do not
|
||||
appear to check for disk errors when it runs. If you attempt to run
|
||||
`CLRDIR` on a drive that is mapped to a slice that does not actually fit
|
||||
on the physical disk, it may behave erratically.
|
||||
This is covered in the next section [Clearing (Formatting) Drives]
|
||||
|
||||
Assuming you want to use additional slices, you should initialize them
|
||||
using the same process. You may need to reassign drive letters to
|
||||
@@ -1742,11 +1645,57 @@ You can use the `ASSIGN` command to handle this.
|
||||
|
||||
## Post Disk Preparation
|
||||
|
||||
Once a disk (either floppy or hard disk) has been initialised and
|
||||
formattted you may optionally;
|
||||
Once a disk has been initialised you may need to do one or more of the following;
|
||||
* Clear (Format) the drive
|
||||
* Make the disk bootable
|
||||
* Copy system (or other) files to the disk
|
||||
|
||||
### Clearing (Formatting) Drives
|
||||
|
||||
This is somewhat analogous to doing a FORMAT operation on other systems.
|
||||
|
||||
With RomWBW you use the `CLRDIR` command to do this.
|
||||
This command is merely "clearing out" the directory space of the drive
|
||||
referred to by a drive letter and setting up the new empty directory.
|
||||
|
||||
Refer to $doc_apps$ for more information on use of the `CLRDIR` command.
|
||||
|
||||
Since `CLRDIR` works on drive letters, make
|
||||
absolutely sure you know what media and slice are assigned to that
|
||||
drive letter before using `CLRDIR` because `CLRDIR` will wipe out any
|
||||
pre-existing contents of the slice.
|
||||
|
||||
After `CLRDIR` completes, the drive should be ready to use by the operating
|
||||
system via the drive letter assigned.
|
||||
Start by using the `DIR` command on the drive.
|
||||
This should return without error, but list no files.
|
||||
|
||||
Here is an example of using `CLRDIR`. In this example, the `ASSIGN`
|
||||
command is used to show the current drive letter assignments. Then
|
||||
the `CLRDIR` command is used to initialize the directory of drive 'G'
|
||||
which is slice 2 of hard disk device IDE0 ("IDE0:2").
|
||||
|
||||
```
|
||||
B>ASSIGN
|
||||
|
||||
A:=MD0:0
|
||||
B:=MD1:0
|
||||
C:=FD0:0
|
||||
D:=FD1:0
|
||||
E:=IDE0:0
|
||||
F:=IDE0:1
|
||||
G:=IDE0:2
|
||||
H:=IDE0:3
|
||||
|
||||
B>CLDIR G:
|
||||
CLRDIR Version 1.2B May 2024 by Max Scane
|
||||
|
||||
Warning - this utility will overwrite the directory sectors of Drive: G
|
||||
Type CAPITAL Y to proceed, any key other key to exit. Y
|
||||
Directory cleared.
|
||||
B>
|
||||
```
|
||||
|
||||
### Making a Disk Bootable
|
||||
|
||||
To make a disk bootable you will need to follow the specific instructions
|
||||
@@ -1777,6 +1726,38 @@ system and application files to your disks.
|
||||
Refer to [Transferring Files] for more information on getting
|
||||
files onto your disks.
|
||||
|
||||
### Checking Disk Layout
|
||||
|
||||
If you are not sure which disk layout is used for your existing
|
||||
media, you can use the CP/M 2.2 `STAT` command to display information
|
||||
including the number of "32 Byte Directory Entries"
|
||||
for a drive letter on the corresponding hard disk.
|
||||
|
||||
Note: For CP/M 3 the command is `SHOW [DRIVE]`
|
||||
|
||||
- If it indicates 512, your disk layout is Classic (hd512).
|
||||
- If it indicates 1024, your disk layout is Modern (hd1k).
|
||||
|
||||
Here is an example of checking the disk layout.
|
||||
|
||||
```
|
||||
B>STAT E:DSK:
|
||||
|
||||
E: Drive Characteristics
|
||||
65408: 128 Byte Record Capacity
|
||||
8176: Kilobyte Drive Capacity
|
||||
1024: 32 Byte Directory Entries
|
||||
0: Checked Directory Entries
|
||||
256: Records/ Extent
|
||||
32: Records/ Block
|
||||
64: Sectors/ Track
|
||||
2: Reserved Tracks
|
||||
```
|
||||
|
||||
It is critical that you include `DSK:` after the drive letter in the
|
||||
`STAT` command line. The important line to look at is labeled "32 Byte
|
||||
Directory Entries".
|
||||
|
||||
# Disk Images
|
||||
|
||||
Since it would be quite a bit of work to transfer over all the files you
|
||||
@@ -1813,7 +1794,7 @@ The following table shows the disk images available.
|
||||
| xxx_nzcom.img | NZCOM ZCPR 3.4 Operating System | Yes |
|
||||
| xxx_qpm.img | QPM Operating System | Yes |
|
||||
| xxx_tpascal.img | Borland Turbo Pascal Compiler | No |
|
||||
| xxx_ws4.img | WordStar v4 & ZDE Applications | No |
|
||||
| xxx_wp.img | WordStar v4 & ZDE Applications | No |
|
||||
| xxx_z80asm.img | Relocating macro assembler for CP/M | No |
|
||||
| xxx_zpm3.img | ZPM3 Operating System | Yes |
|
||||
| xxx_zsdos.img | ZCPR-DJ & ZSDOS 1.1 Operating System | Yes |
|
||||
@@ -2493,6 +2474,7 @@ via the NZ-COM adaptation (see below).
|
||||
* [ZCPR Manual]($doc_root$/CPM/ZCPR Manual.pdf)
|
||||
* [ZCPR-DJ]($doc_root$/CPM/ZCPR-DJ.doc)
|
||||
* [ZSDOS Manual]($doc_root$/CPM/ZSDOS Manual.pdf)
|
||||
* [ZSDOS Programmer's Manual]($doc_root$/CPM/ZSDOS Programmers Manual.pdf)
|
||||
|
||||
#### Boot Disk
|
||||
|
||||
@@ -2573,6 +2555,7 @@ Manual.pdf" document in order to use this operating system effectively.
|
||||
* [NZCOM Users Manual]($doc_root$/CPM/NZCOM Users Manual.pdf)
|
||||
* [Z-System Users Guide]($doc_root$/CPM/Z-System Users Guide.pdf)
|
||||
* [ZCPR3.3 User Guide]($doc_root$/CPM/ZCPR3.3 User Guide.pdf)
|
||||
* [ZSDOS Programmer's Manual]($doc_root$/CPM/ZSDOS Programmers Manual.pdf)
|
||||
|
||||
#### Boot Disk
|
||||
|
||||
|
||||
@@ -3,9 +3,13 @@ setlocal
|
||||
|
||||
set TOOLS=../../Tools
|
||||
|
||||
set PATH=%TOOLS%\srecord;%PATH%
|
||||
set PATH=%TOOLS%\zxcc;%TOOLS%\srecord;%TOOLS%\compress;%PATH%
|
||||
|
||||
for %%f in (..\..\Binary\RCZ80_ez512_*.rom) do call :build %%~nf
|
||||
set CPMDIR80=%TOOLS%/cpm/
|
||||
|
||||
zxcc z80asm -decomp/HL
|
||||
|
||||
for %%f in (..\..\Binary\RCZ80_ez512_*.upd) do call :build %%~nf
|
||||
|
||||
goto :eof
|
||||
|
||||
@@ -21,6 +25,17 @@ srec_cat temp.dat -binary -exclude 0x1F000 0x20000 ez512_mon.bin -binary -offset
|
||||
srec_cat temp.dat -binary -exclude 0x24000 0xA4000 ..\..\Binary\%1.rom -binary -offset 0x24000 -o temp.dat -binary
|
||||
move temp.dat ..\..\Binary\%1_hd1k_prefix.dat
|
||||
|
||||
copy /b ..\..\Binary\%1_hd1k_prefix.dat + ..\..\Binary\hd1k_cpm22.img + ..\..\Binary\hd1k_zsdos.img + ..\..\Binary\hd1k_nzcom.img + ..\..\Binary\hd1k_cpm3.img + ..\..\Binary\hd1k_zpm3.img + ..\..\Binary\hd1k_ws4.img ..\..\Binary\%1_hd1k_combo.img || exit /b
|
||||
copy /b ..\..\Binary\%1_hd1k_prefix.dat + ..\..\Binary\hd1k_cpm22.img + ..\..\Binary\hd1k_zsdos.img + ..\..\Binary\hd1k_nzcom.img + ..\..\Binary\hd1k_cpm3.img + ..\..\Binary\hd1k_zpm3.img + ..\..\Binary\hd1k_wp.img ..\..\Binary\%1_hd1k_combo.img || exit /b
|
||||
|
||||
::
|
||||
:: The following lines produce a 64K ROM that can be used in the EaZy80-512.
|
||||
:: In order to fit in the required 64K, TastyBASIC and the Game components
|
||||
:: are removed from the ROM. If the layout of the ROM components
|
||||
:: changes (see ..\Source\layout.inc), the address range that is carved
|
||||
:: out below may need to be adjusted.
|
||||
::
|
||||
srec_cat ..\..\Binary\%1.upd -binary -exclude 0x13700 0x14A00 -fill 0xC9 0x13700 0x14A00 -o temp.upd -binary
|
||||
compress temp.upd
|
||||
srec_cat decomp.hex -intel temp.upd.cmp -binary -offset 3 -o ..\..\Binary\%1_64k.rom -binary
|
||||
|
||||
goto :eof
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if exist *.upd del *.upd
|
||||
if exist *.cmp del *.cmp
|
||||
if exist *.hex del *.hex
|
||||
if exist *.lst del *.lst
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
DEST=../../Binary
|
||||
OTHERS=*.hex *.upd *.cmp
|
||||
|
||||
HD1KIMGS = $(DEST)/hd1k_cpm22.img $(DEST)/hd1k_zsdos.img $(DEST)/hd1k_nzcom.img \
|
||||
$(DEST)/hd1k_cpm3.img $(DEST)/hd1k_zpm3.img $(DEST)/hd1k_ws4.img
|
||||
$(DEST)/hd1k_cpm3.img $(DEST)/hd1k_zpm3.img $(DEST)/hd1k_wp.img
|
||||
|
||||
ROMS := $(wildcard $(DEST)/RCZ80_ez512_*.rom)
|
||||
ROMS := $(patsubst $(DEST)/%.rom,%,$(ROMS))
|
||||
ROMS := $(wildcard $(DEST)/RCZ80_ez512_*.upd)
|
||||
ROMS := $(patsubst $(DEST)/%.upd,%,$(ROMS))
|
||||
|
||||
OBJECTS := $(patsubst %,%_hd1k_prefix.dat,$(ROMS))
|
||||
OBJECTS += $(patsubst %,%_hd1k_combo.img,$(ROMS))
|
||||
OBJECTS += $(patsubst %,%_64k.rom,$(ROMS))
|
||||
|
||||
TOOLS = ../../Tools
|
||||
|
||||
@@ -25,3 +27,14 @@ DIFFPATH = $(DIFFTO)/Binary
|
||||
|
||||
%_hd1k_combo.img: %_hd1k_prefix.dat $(HD1KIMGS)
|
||||
cat $^ > $@
|
||||
|
||||
# The following recipe produces a 64K ROM that can be used in the EaZy80-512.
|
||||
# In order to fit in the required 64K, TastyBASIC and the Game components
|
||||
# are removed from the ROM. If the layout of the ROM components
|
||||
# changes (see ..\Source\layout.inc), the address range that is carved
|
||||
# out below may need to be adjusted.
|
||||
|
||||
%_64k.rom: $(DEST)/%.upd decomp.hex
|
||||
srec_cat $< -binary -exclude 0x13700 0x14A00 -fill 0xC9 0x13700 0x14A00 -o temp.upd -binary
|
||||
$(COMPRESS) temp.upd
|
||||
srec_cat decomp.hex -intel temp.upd.cmp -binary -offset 3 -o $@ -binary
|
||||
|
||||
151
Source/EZ512/decomp.z80
Normal file
151
Source/EZ512/decomp.z80
Normal file
@@ -0,0 +1,151 @@
|
||||
; 251003 decomp_rom_v1.1
|
||||
; Mark Pruden: Fix for omitted Bank 4
|
||||
;
|
||||
; 250208 decomp_rom v1.0
|
||||
; Paul de Bak: Renamed and used in RomWBW utility program 'compress_upd.c'
|
||||
; to compress *.upd binary files
|
||||
;
|
||||
;1/17/25
|
||||
;decompress RomWBW v1.0 - Original version by Bill Shen
|
||||
;Routine in ROM that decompress RomWBW data file into RAM and jump to it.
|
||||
;copy data file to RAM starting from bank 0, addr 0.
|
||||
;when encountered two consecutive bytes of same values, the tird byte following the consecutive values
|
||||
; describe how many more identical bytes need to be added.
|
||||
;decompression ends when 3 banks (96KB) are expanded
|
||||
;compressed data is stored from address $3 to below $FF00
|
||||
;decompress program is located at $FF00
|
||||
|
||||
;register usage
|
||||
;regC points to bankreg
|
||||
;regB is ROM source ($20)
|
||||
;regD is RAM destination bank
|
||||
;regE is previous value
|
||||
;regHL is destination pointer
|
||||
;regIX is source pointer
|
||||
;regIY points to byte count
|
||||
|
||||
bankreg equ 0ch ;PIO port C is 512K RAM bank register
|
||||
SIOAData equ 8h ;location of SIO chan A data
|
||||
SIOACmd equ 9h ;location of SIO ch A command/status reg
|
||||
SIOBData equ 0ah ;location of SIO chan B data
|
||||
SIOBCmd equ 0bh ;location of SIO ch B command/status reg
|
||||
PORTCData equ 0ch ;PIA port C data
|
||||
PORTCCmd equ 0dh ;PIA port C command
|
||||
|
||||
org 0
|
||||
jp 0ff00h ;do program at top of memory
|
||||
dataRomWBW:
|
||||
;compressed RomWBW data appended here
|
||||
org 0ff00h
|
||||
ld a,09h ;write to KIO command reg first, enable PIA mux
|
||||
out (0eh),a ; SIO-CTC-PIO priority daisy chain
|
||||
|
||||
ld hl,0ff00h ;copy self into RAM
|
||||
ld de,0ff00h
|
||||
ld bc,100h
|
||||
ldir
|
||||
|
||||
xor a ;PortC are all outputs. This will cause both RAM and ROM
|
||||
out (PORTCCmd),a ; to be enabled until following OUT instruction, since RAM and
|
||||
; ROM have same contents, this won't cause contention
|
||||
ld a,00100010b ; ROM enable, RAM disable, bank$2, nRTSA, nRTSB enabled
|
||||
out (PORTCData),a
|
||||
;register usage
|
||||
;regC points to bankreg
|
||||
;regB is ROM source ($20)
|
||||
;regD is RAM destination bank
|
||||
;regE is previous value
|
||||
;regHL is destination pointer
|
||||
;regIX is source pointer
|
||||
;regIY points to byte count
|
||||
ld c,bankreg ;regC points to bank register IO address
|
||||
ld e,0 ;make sure regE is not the same as very first byte which is 0xC3
|
||||
ld b,20h ;regB is ROM source
|
||||
ld d,80h ;regD is RAM destination
|
||||
ld hl,0 ;destination starts from bank 0, address 0
|
||||
ld ix,dataRomWBW ;regIX points to compressed RomWBW
|
||||
ld iy,cSame ;regIY points to the count of same value
|
||||
start:
|
||||
out (c),b ;read data from ROM
|
||||
;these two lines are executing program in ROM which has same program as RAM
|
||||
ld a,(ix) ;read from source
|
||||
out (c),d
|
||||
;running in RAM
|
||||
ld (hl),a ;write to destination
|
||||
cp e ;two consecutive same values?
|
||||
jp z,decomp
|
||||
ld e,a ;update the 'previous' value
|
||||
inc ix ;next value in ROM
|
||||
inc hl ;next destination value
|
||||
ld a,h
|
||||
cp 80h ;check for address greater than 32KB
|
||||
jp z,nxtDbank
|
||||
jp start
|
||||
nxtDbank:
|
||||
ld hl,0
|
||||
inc d ;next bank
|
||||
ld a,d
|
||||
;; cp 83h ;compare to bank 3
|
||||
cp 84h ;MP compare to bank 4
|
||||
jp z,decompDone
|
||||
jp start
|
||||
decomp:
|
||||
out (c),b ;read data from ROM
|
||||
;running in ROM
|
||||
inc ix ;point to byte count of same value
|
||||
ld a,(ix) ;get the count value
|
||||
out (c),d ;switch to RAM bank
|
||||
;running in RAM
|
||||
dec a ;reduce by 1 because one byte is already written
|
||||
ld (iy),a ;store count to cSame pointed by regIY
|
||||
jp z,DoDecomp2 ;just two consecutive values
|
||||
DoDecomp:
|
||||
inc hl ;next destination value
|
||||
ld a,h
|
||||
cp 80h
|
||||
jp z,nxtDbank1
|
||||
DoDecomp1:
|
||||
ld (hl),e ;write previous value (in regE) to destination
|
||||
dec (iy)
|
||||
jp nz,DoDecomp
|
||||
DoDecomp2:
|
||||
;done with block decompression, get ready to start over
|
||||
out (c),b
|
||||
;running in ROM
|
||||
inc ix ;point to next data in ROM
|
||||
ld e,(ix)
|
||||
dec e ;make sure previous value does not match, in case of large
|
||||
; block (>256) of same values
|
||||
out (c),d
|
||||
;running in RAM
|
||||
inc hl
|
||||
ld a,h
|
||||
cp 80h ;check for address grater than 32KB
|
||||
jp z,nxtDbank2
|
||||
jp start
|
||||
nxtDbank1:
|
||||
ld hl,0
|
||||
inc d ;next bank
|
||||
ld a,d
|
||||
cp 83h ;compare to bank3
|
||||
jp z,decompDone
|
||||
out (c),d ;update bank before continuing
|
||||
jp DoDecomp1
|
||||
nxtDbank2:
|
||||
ld hl,0
|
||||
inc d ;next bank
|
||||
ld a,d
|
||||
cp 83h ;compare to bank 3
|
||||
jp z,decompDone
|
||||
jp start
|
||||
decompDone:
|
||||
;decompression is done, reaching 96KB of data
|
||||
ld a,80h ;ROM disable, RAM enable, bank$0, nRTSA, nRTSB enabled
|
||||
out (c),a
|
||||
jp 0 ;execute RomWBW
|
||||
|
||||
cSame: db 0 ;count of the same value
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
FPGA Z80 has no real ROM. It has a single 512K RAM chip.
|
||||
|
||||
The ROMless startup mode treats the entire 512KB as RAM. 384KB of RAM
|
||||
must be preloaded by the FPGA Monitor CF Loader. There will be no ROM
|
||||
disk available under RomWBW. There will be a RAM Disk and it's initial
|
||||
contents will be seeded by the image loaded by the CF Loader.
|
||||
|
||||
Bank Contents Description
|
||||
-------- -------- -----------
|
||||
0x0 BIOS HBIOS Bank (operating)
|
||||
0x1 IMG0 ROM Loader, Monitor, ROM OSes
|
||||
0x2 IMG1 ROM Applications
|
||||
0x3 IMG2 Reserved
|
||||
0x4-0xB RAMD RAM Disk Banks
|
||||
0xC BUF OS Buffers (CP/M3)
|
||||
0xD AUX Aux Bank (CP/M 3, BPBIOS, etc.)
|
||||
0xE USR User Bank (CP/M TPA, etc.)
|
||||
0xF COM Common Bank, Upper 32KB
|
||||
@@ -71,7 +71,7 @@ Bank ID Usage
|
||||
0x82 User TPA
|
||||
0x83 Common
|
||||
|
||||
ROMless Standard Bank Layout (512K): ZRC, ZRC512, EZ512, Z1RCC, ZZRCC, FZ80
|
||||
ROMless Standard Bank Layout (512K): ZRC, ZRC512, EZ512, Z1RCC, ZZRCC
|
||||
|
||||
Bank ID Usage
|
||||
------- ------
|
||||
|
||||
@@ -108,10 +108,10 @@ tasm -t%CPUType% -g3 -fFF -dCPM sysconf.asm sysconf.com sysconf_com.lst || exit
|
||||
|
||||
:: Create platform specific hardware monitor
|
||||
|
||||
if %Platform%==S100 (
|
||||
zxcc slr180 -s100mon/fh || exit /b
|
||||
zxcc mload25 -s100mon || exit /b
|
||||
set HwMon=s100mon.com
|
||||
if %Platform%==SZ180 (
|
||||
zxcc slr180 -sz180mon/fh || exit /b
|
||||
zxcc mload25 -sz180mon || exit /b
|
||||
set HwMon=sz180mon.com
|
||||
) else (
|
||||
call :asm hwmon || exit /b
|
||||
set HwMon=hwmon.bin
|
||||
@@ -233,9 +233,11 @@ call Build MBC std || exit /b
|
||||
call Build ZETA std || exit /b
|
||||
call Build ZETA2 std || exit /b
|
||||
call Build N8 std || exit /b
|
||||
call Build N8PC std || exit /b
|
||||
call Build MK4 std || exit /b
|
||||
call Build RCZ80 std || exit /b
|
||||
call Build RC2014 std || exit /b
|
||||
call Build RCEZ80 std || exit /b
|
||||
call Build RCZ80 std || exit /b
|
||||
call Build RCZ80 kio_std || exit /b
|
||||
call Build EZZ80 easy_std || exit /b
|
||||
call Build EZZ80 tiny_std || exit /b
|
||||
@@ -263,13 +265,15 @@ call Build GMZ180 std || exit /b
|
||||
call Build DYNO std || exit /b
|
||||
call Build RPH std || exit /b
|
||||
call Build Z80RETRO std || exit /b
|
||||
call Build S100 std || exit /b
|
||||
call Build SZ180 std || exit /b
|
||||
call Build DUO std || exit /b
|
||||
call Build HEATH std || exit /b
|
||||
call Build EPITX std || exit /b
|
||||
:: call Build MON std || exit /b
|
||||
call Build NABU std || exit /b
|
||||
call Build FZ80 std || exit /b
|
||||
call Build SZ80 std || exit /b
|
||||
call Build SZ80 t35_std || exit /b
|
||||
call Build UNA std || exit /b
|
||||
call Build MSX std || exit /b
|
||||
|
||||
goto :eof
|
||||
|
||||
@@ -27,8 +27,8 @@ $ErrorAction = 'Stop'
|
||||
# UNA BIOS is simply imbedded, it is not built here.
|
||||
#
|
||||
|
||||
$PlatformListZ80 = "SBC", "MBC", "ZETA", "ZETA2", "RCZ80", "EZZ80", "Z80RETRO", "DUO", "UNA", "HEATH", "MON", "NABU", "FZ80", "RCEZ80"
|
||||
$PlatformListZ180 = "N8", "MK4", "RCZ180", "SCZ180", "DYNO", "RPH", "S100", "EPITX", "GMZ180"
|
||||
$PlatformListZ80 = "SBC", "MBC", "ZETA", "ZETA2", "RC2014", "RCZ80", "EZZ80", "Z80RETRO", "DUO", "UNA", "HEATH", "MON", "NABU", "SZ80", "RCEZ80", "MSX"
|
||||
$PlatformListZ180 = "N8", "MK4", "RCZ180", "SCZ180", "DYNO", "RPH", "SZ180", "EPITX", "GMZ180","N8PC"
|
||||
$PlatformListZ280 = "RCZ280"
|
||||
|
||||
#
|
||||
|
||||
@@ -17,7 +17,9 @@ if [ "${ROM_PLATFORM}" == "dist" ] ; then
|
||||
ROM_PLATFORM="ZETA"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="ZETA2"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="N8"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="N8PC"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="MK4"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="RC2014"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="RCEZ80"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="RCZ80"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="RCZ80"; ROM_CONFIG="kio_std"; bash Build.sh
|
||||
@@ -47,13 +49,15 @@ if [ "${ROM_PLATFORM}" == "dist" ] ; then
|
||||
ROM_PLATFORM="DYNO"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="RPH"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="Z80RETRO"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="S100"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="SZ180"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="DUO"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="HEATH"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="EPITX"; ROM_CONFIG="std"; bash Build.sh
|
||||
# ROM_PLATFORM="MON"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="NABU"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="FZ80"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="SZ80"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="SZ80"; ROM_CONFIG="t35_std"; bash Build.sh
|
||||
ROM_PLATFORM="MSX"; ROM_CONFIG="std"; bash Build.sh
|
||||
ROM_PLATFORM="UNA"; ROM_CONFIG="std"; bash Build.sh
|
||||
exit
|
||||
fi
|
||||
|
||||
@@ -59,6 +59,8 @@ INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 512 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
;
|
||||
PCFENABLE .SET TRUE ; ENABLE PCF8584 I2C CONTROLLER
|
||||
;
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
@@ -82,6 +84,8 @@ PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
LPTENABLE .SET TRUE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
ESPENABLE .SET FALSE ; ESP: ENABLE ESP32 IO BOARD DRIVER (ESP.ASM)
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
|
||||
@@ -76,6 +76,7 @@ IDEENABLE .SET FALSE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
|
||||
@@ -56,9 +56,6 @@ CPUOSC .SET 10000000 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCTIMER .SET TRUE ; ENABLE CTC PERIODIC TIMER
|
||||
CTCMODE .SET CTCMODE_CTR ; CTC MODE: CTCMODE_[NONE|CTR|TIM16|TIM256]
|
||||
CTCOSC .SET 921600 ; CTC CLOCK FREQUENCY
|
||||
WDOGMODE .SET WDOG_EZZ80 ; WATCHDOG MODE: WDOG_[NONE|EZZ80|SKZ]
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
@@ -68,21 +65,19 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP]
|
||||
SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP|Z80R]
|
||||
SIO0BASE .SET $80 ; SIO 0: REGISTERS BASE ADR
|
||||
SIO0ACLK .SET 1843200 ; SIO 0A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCLK .SET 1843200 ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO1ACLK .SET 7372800 ; SIO 1A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO1BCLK .SET 7372800 ; SIO 1B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
@@ -114,5 +109,5 @@ SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -57,12 +57,8 @@ INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCBASE .SET $10 ; CTC BASE I/O ADDRESS
|
||||
CTCTIMER .SET TRUE ; ENABLE CTC PERIODIC TIMER
|
||||
CTCMODE .SET CTCMODE_CTR ; CTC MODE: CTCMODE_[NONE|CTR|TIM16|TIM256]
|
||||
CTCOSC .SET 921600 ; CTC CLOCK FREQUENCY
|
||||
EIPCENABLE .SET TRUE ; EIPC: ENABLE Z80 EIPC (Z84C15) INITIALIZATION
|
||||
WDOGMODE .SET WDOG_EZZ80 ; WATCHDOG MODE: WDOG_[NONE|EZZ80|SKZ]
|
||||
WDOGIO .SET $6F ; WATCHDOG REGISTER ADR
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
@@ -73,7 +69,6 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
@@ -84,11 +79,9 @@ SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP|Z80R]
|
||||
SIO0BASE .SET $18 ; SIO 0: REGISTERS BASE ADR
|
||||
SIO0ACLK .SET 1843200 ; SIO 0A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCLK .SET 1843200 ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO1ACLK .SET 7372800 ; SIO 1A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO1BCLK .SET 7372800 ; SIO 1B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
@@ -121,5 +114,5 @@ SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -71,7 +71,7 @@ ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET FALSE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -82,10 +82,8 @@ FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_GM ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
|
||||
@@ -53,12 +53,14 @@ AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 16384000 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
H8PENABLE .SET TRUE ; ENABLES HEATH H8 FRONT PANEL
|
||||
;
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
;
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET TRUE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
;
|
||||
@@ -70,4 +72,4 @@ FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
AY38910ENABLE .SET TRUE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_MSX ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_MSX ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
|
||||
@@ -59,6 +59,10 @@ INTMODE .SET 0 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 512 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
;
|
||||
LEDENABLE .SET TRUE ; ENABLES STATUS LED (SINGLE LED)
|
||||
;
|
||||
DSKYENABLE .SET TRUE ; ENABLES DSKY FUNCTIONALITY
|
||||
ICMENABLE .SET FALSE ; ENABLES ORIGINAL DSKY ICM DRIVER (7218)
|
||||
PKDENABLE .SET TRUE ; ENABLES DSKY NG PKD DRIVER (8259)
|
||||
@@ -66,9 +70,15 @@ PKDENABLE .SET TRUE ; ENABLES DSKY NG PKD DRIVER (8259)
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
UARTINTS .SET FALSE ; UART: INCLUDE INTERRUPT SUPPORT UNDER IM1/2/3
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
;
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
UARTINTS .SET FALSE ; UART: INCLUDE INTERRUPT SUPPORT UNDER IM1/2/3
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
CVDUENABLE .SET TRUE ; CVDU: ENABLE CVDU VIDEO/KBD DRIVER (CVDU.ASM)
|
||||
CVDUMON .SET CVDUMON_CGA ; CVDU: CVDU MONITOR SETUP: CVDUMON_[NONE|CGA|EGA]
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
;
|
||||
MDFFENABLE .SET FALSE ; MD: ENABLE FLASH FILE SYSTEM
|
||||
;
|
||||
@@ -80,6 +90,10 @@ PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
LPTENABLE .SET TRUE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
ESPENABLE .SET TRUE ; ESP: ENABLE ESP32 IO BOARD DRIVER (ESP.ASM)
|
||||
;
|
||||
DMAENABLE .SET FALSE ; DMA: ENABLE DMA DRIVER (DMA.ASM)
|
||||
|
||||
@@ -83,6 +83,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_MK4 ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
PRPENABLE .SET TRUE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
|
||||
94
Source/HBIOS/Config/MSX_std.asm
Normal file
94
Source/HBIOS/Config/MSX_std.asm
Normal file
@@ -0,0 +1,94 @@
|
||||
;
|
||||
;==================================================================================================
|
||||
; ROMWBW DEFAULT BUILD SETTINGS FOR MSX
|
||||
;==================================================================================================
|
||||
;
|
||||
; THIS FILE DEFINES THE DEFAULT CONFIGURATION SETTINGS FOR THE PLATFORM
|
||||
; INDICATED ABOVE. THESE SETTINGS DEFINE THE OFFICIAL BUILD FOR THIS
|
||||
; PLATFORM AS DISTRIBUTED IN ROMWBW RELEASES.
|
||||
;
|
||||
; ROMWBW USES CASCADING CONFIGURATION FILES AS INDICATED BELOW:
|
||||
;
|
||||
; cfg_MASTER.asm - MASTER: CONFIGURATION FILE DEFINES ALL POSSIBLE ROMWBW SETTINGS
|
||||
; |
|
||||
; +-> cfg_<platform>.asm - PLATFORM: DEFAULT SETTINGS FOR SPECIFIC PLATFORM
|
||||
; |
|
||||
; +-> Config/<plt>_std.asm - BUILD: SETTINGS FOR EACH OFFICIAL DIST BUILD
|
||||
; |
|
||||
; +-> Config/<plt>_<cust>.asm - USER: CUSTOM USER BUILD SETTINGS
|
||||
;
|
||||
; THE TOP (MASTER CONFIGURATION) FILE DEFINES ALL POSSIBLE ROMWBW
|
||||
; CONFIGURATION SETTINGS. EACH FILE BELOW THE MASTER CONFIGURATION FILE
|
||||
; INHERITS THE CUMULATIVE SETTINGS OF THE FILES ABOVE IT AND MAY
|
||||
; OVERRIDE THESE SETTINGS AS DESIRED.
|
||||
;
|
||||
; OTHER THAN THE TOP MASTER FILE, EACH FILE MUST "#INCLUDE" ITS PARENT
|
||||
; FILE (SEE #INCLUDE STATEMENT BELOW). THE TOP TWO FILES SHOULD NOT BE
|
||||
; MODIFIED.
|
||||
;
|
||||
; TO CUSTOMIZE YOUR BUILD SETTINGS YOU SHOULD MODIFY THIS FILE, THE
|
||||
; DEFAULT BUILD SETTINGS (Config/<platform>_std.asm) OR PREFERABLY
|
||||
; CREATE AN OPTIONAL CUSTOM USER SETTINGS FILE THAT INCLUDES THE DEFAULT
|
||||
; BUILD SETTINGS FILE (SEE EXAMPLE Config/SBC_user.asm).
|
||||
;
|
||||
; BY CREATING A CUSTOM USER SETTINGS FILE, YOU ARE LESS LIKELY TO BE
|
||||
; IMPACTED BY FUTURE CHANGES BECAUSE YOU WILL BE INHERITING MOST
|
||||
; OF YOUR SETTINGS WHICH WILL BE UPDATED BY AUTHORS AS ROMWBW EVOLVES.
|
||||
;
|
||||
; PLEASE REFER TO THE CUSTOM BUILD INSTRUCTIONS (README.TXT) IN THE
|
||||
; SOURCE DIRECTORY (TWO DIRECTORIES ABOVE THIS ONE).
|
||||
;
|
||||
; *** WARNING: ASIDE FROM THE MASTER CONFIGURATION FILE, YOU MUST USE
|
||||
; ".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".
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
#INCLUDE "cfg_MSX.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET FALSE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 3579545 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
RAMSIZE .SET 512-64 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!) (MSX_NOTE: SUBSTRACT 64K FROM RAM MAPPER SIZE)
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
FPLED_ENABLE .SET FALSE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET FALSE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
;
|
||||
CRTACT .SET TRUE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
MKYKBLOUT .SET KBD_US ; KBD KEYBOARD LANGUAGE: KBD_[US|DE]
|
||||
;
|
||||
DSRTCENABLE .SET FALSE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET TRUE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM) (MSX_NOTE: MSX 1 MAY NOT HAVE A RTC, MSX 2 ALWAYS HAS ONE)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET FALSE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSXMKY ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET TRUE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9938/V9958
|
||||
;
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
FDENABLE .SET FALSE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM) (MSX_NOTE: REQUIRES SODA IDE CART)
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
CHENABLE .SET FALSE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM) (MSX_NOTE: SOME MSX MACHINES DON'T HAVE A LPT PORT)
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER (MSX_NOTE: THERE ARE CARTS WITH THIS PSG LIKE THE MMM)
|
||||
AY38910ENABLE .SET TRUE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
94
Source/HBIOS/Config/N8PC_std.asm
Normal file
94
Source/HBIOS/Config/N8PC_std.asm
Normal file
@@ -0,0 +1,94 @@
|
||||
;
|
||||
;==================================================================================================
|
||||
; ROMWBW DEFAULT BUILD SETTINGS FOR N8PC
|
||||
;==================================================================================================
|
||||
;
|
||||
; THIS FILE DEFINES THE DEFAULT CONFIGURATION SETTINGS FOR THE PLATFORM
|
||||
; INDICATED ABOVE. THESE SETTINGS DEFINE THE OFFICIAL BUILD FOR THIS
|
||||
; PLATFORM AS DISTRIBUTED IN ROMWBW RELEASES.
|
||||
;
|
||||
; ROMWBW USES CASCADING CONFIGURATION FILES AS INDICATED BELOW:
|
||||
;
|
||||
; cfg_MASTER.asm - MASTER: CONFIGURATION FILE DEFINES ALL POSSIBLE ROMWBW SETTINGS
|
||||
; |
|
||||
; +-> cfg_<platform>.asm - PLATFORM: DEFAULT SETTINGS FOR SPECIFIC PLATFORM
|
||||
; |
|
||||
; +-> Config/<plt>_std.asm - BUILD: SETTINGS FOR EACH OFFICIAL DIST BUILD
|
||||
; |
|
||||
; +-> Config/<plt>_<cust>.asm - USER: CUSTOM USER BUILD SETTINGS
|
||||
;
|
||||
; THE TOP (MASTER CONFIGURATION) FILE DEFINES ALL POSSIBLE ROMWBW
|
||||
; CONFIGURATION SETTINGS. EACH FILE BELOW THE MASTER CONFIGURATION FILE
|
||||
; INHERITS THE CUMULATIVE SETTINGS OF THE FILES ABOVE IT AND MAY
|
||||
; OVERRIDE THESE SETTINGS AS DESIRED.
|
||||
;
|
||||
; OTHER THAN THE TOP MASTER FILE, EACH FILE MUST "#INCLUDE" ITS PARENT
|
||||
; FILE (SEE #INCLUDE STATEMENT BELOW). THE TOP TWO FILES SHOULD NOT BE
|
||||
; MODIFIED.
|
||||
;
|
||||
; TO CUSTOMIZE YOUR BUILD SETTINGS YOU SHOULD MODIFY THIS FILE, THE
|
||||
; DEFAULT BUILD SETTINGS (Config/<platform>_std.asm) OR PREFERABLY
|
||||
; CREATE AN OPTIONAL CUSTOM USER SETTINGS FILE THAT INCLUDES THE DEFAULT
|
||||
; BUILD SETTINGS FILE (SEE EXAMPLE Config/SBC_user.asm).
|
||||
;
|
||||
; BY CREATING A CUSTOM USER SETTINGS FILE, YOU ARE LESS LIKELY TO BE
|
||||
; IMPACTED BY FUTURE CHANGES BECAUSE YOU WILL BE INHERITING MOST
|
||||
; OF YOUR SETTINGS WHICH WILL BE UPDATED BY AUTHORS AS ROMWBW EVOLVES.
|
||||
;
|
||||
; PLEASE REFER TO THE CUSTOM BUILD INSTRUCTIONS (README.TXT) IN THE
|
||||
; SOURCE DIRECTORY (TWO DIRECTORIES ABOVE THIS ONE).
|
||||
;
|
||||
; *** WARNING: ASIDE FROM THE MASTER CONFIGURATION FILE, YOU MUST USE
|
||||
; ".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".
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_38400_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
#INCLUDE "cfg_N8PC.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 9216000 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 0 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
;
|
||||
Z180_CLKDIV .SET 1 ; Z180: CHK DIV: 0=OSC/2, 1=OSC, 2=OSC*2
|
||||
Z180_MEMWAIT .SET 0 ; Z180: MEMORY WAIT STATES (0-3)
|
||||
Z180_IOWAIT .SET 1 ; Z180: I/O WAIT STATES TO ADD ABOVE 1 W/S BUILT-IN (0-3)
|
||||
;
|
||||
DSKYENABLE .SET FALSE ; ENABLES DSKY FUNCTIONALITY
|
||||
ICMENABLE .SET FALSE ; ENABLES ORIGINAL DSKY ICM DRIVER (7218)
|
||||
PKDENABLE .SET FALSE ; ENABLES DSKY NG PKD DRIVER (8259)
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
M6242RTCENABLE .SET TRUE ; M6242RTC: ENABLE M6242 CLOCK DRIVER (M6242.ASM)
|
||||
;
|
||||
UARTENABLE .SET FALSE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
;
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDCNT .SET 2 ; FD: NUMBER OF FLOPPY DRIVES ON THE INTERFACE (1-2)
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
PPPENABLE .SET FALSE ; PPP: ENABLE ZETA PARALLEL PORT PROPELLER BOARD DRIVER (PPP.ASM)
|
||||
;
|
||||
AY38910ENABLE .SET TRUE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
;
|
||||
DSKYENABLE .SET FALSE ; ENABLES DSKY FUNCTIONALITY
|
||||
PKDENABLE .SET TRUE ; ENABLES DSKY NG PKD DRIVER (8259)
|
||||
PKDPPIBASE .SET N8_PPI0 ; BASE I/O ADDRESS OF PKD PPI
|
||||
PKDOSC .SET 1000000 ; OSCILLATOR FREQ FOR PKD (IN HZ)
|
||||
;
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
@@ -47,6 +47,8 @@
|
||||
;
|
||||
#INCLUDE "cfg_N8.asm"
|
||||
;
|
||||
BATCOND .SET FALSE ; ENABLE LOW BATTERY WARNING MESSAGE
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
@@ -72,15 +74,19 @@ INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
UARTENABLE .SET FALSE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
;
|
||||
VDUENABLE .SET FALSE ; VDU: ENABLE VDU VIDEO/KBD DRIVER (VDU.ASM)
|
||||
CVDUENABLE .SET FALSE ; CVDU: ENABLE CVDU VIDEO/KBD DRIVER (CVDU.ASM)
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VGAENABLE .SET FALSE ; VGA: ENABLE VGA VIDEO/KBD DRIVER (VGA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDCNT .SET 2 ; FD: NUMBER OF FLOPPY DRIVES ON THE INTERFACE (1-2)
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET FALSE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_CSIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
;
|
||||
|
||||
116
Source/HBIOS/Config/RC2014_std.asm
Normal file
116
Source/HBIOS/Config/RC2014_std.asm
Normal file
@@ -0,0 +1,116 @@
|
||||
;
|
||||
;==================================================================================================
|
||||
; ROMWBW DEFAULT BUILD SETTINGS FOR RC2014 Z80
|
||||
;==================================================================================================
|
||||
;
|
||||
; THIS FILE DEFINES THE DEFAULT CONFIGURATION SETTINGS FOR THE PLATFORM
|
||||
; INDICATED ABOVE. THESE SETTINGS DEFINE THE OFFICIAL BUILD FOR THIS
|
||||
; PLATFORM AS DISTRIBUTED IN ROMWBW RELEASES.
|
||||
;
|
||||
; ROMWBW USES CASCADING CONFIGURATION FILES AS INDICATED BELOW:
|
||||
;
|
||||
; cfg_MASTER.asm - MASTER: CONFIGURATION FILE DEFINES ALL POSSIBLE ROMWBW SETTINGS
|
||||
; |
|
||||
; +-> cfg_<platform>.asm - PLATFORM: DEFAULT SETTINGS FOR SPECIFIC PLATFORM
|
||||
; |
|
||||
; +-> Config/<plt>_std.asm - BUILD: SETTINGS FOR EACH OFFICIAL DIST BUILD
|
||||
; |
|
||||
; +-> Config/<plt>_<cust>.asm - USER: CUSTOM USER BUILD SETTINGS
|
||||
;
|
||||
; THE TOP (MASTER CONFIGURATION) FILE DEFINES ALL POSSIBLE ROMWBW
|
||||
; CONFIGURATION SETTINGS. EACH FILE BELOW THE MASTER CONFIGURATION FILE
|
||||
; INHERITS THE CUMULATIVE SETTINGS OF THE FILES ABOVE IT AND MAY
|
||||
; OVERRIDE THESE SETTINGS AS DESIRED.
|
||||
;
|
||||
; OTHER THAN THE TOP MASTER FILE, EACH FILE MUST "#INCLUDE" ITS PARENT
|
||||
; FILE (SEE #INCLUDE STATEMENT BELOW). THE TOP TWO FILES SHOULD NOT BE
|
||||
; MODIFIED.
|
||||
;
|
||||
; TO CUSTOMIZE YOUR BUILD SETTINGS YOU SHOULD MODIFY THIS FILE, THE
|
||||
; DEFAULT BUILD SETTINGS (Config/<platform>_std.asm) OR PREFERABLY
|
||||
; CREATE AN OPTIONAL CUSTOM USER SETTINGS FILE THAT INCLUDES THE DEFAULT
|
||||
; BUILD SETTINGS FILE (SEE EXAMPLE Config/SBC_user.asm).
|
||||
;
|
||||
; BY CREATING A CUSTOM USER SETTINGS FILE, YOU ARE LESS LIKELY TO BE
|
||||
; IMPACTED BY FUTURE CHANGES BECAUSE YOU WILL BE INHERITING MOST
|
||||
; OF YOUR SETTINGS WHICH WILL BE UPDATED BY AUTHORS AS ROMWBW EVOLVES.
|
||||
;
|
||||
; PLEASE REFER TO THE CUSTOM BUILD INSTRUCTIONS (README.TXT) IN THE
|
||||
; SOURCE DIRECTORY (TWO DIRECTORIES ABOVE THIS ONE).
|
||||
;
|
||||
; *** WARNING: ASIDE FROM THE MASTER CONFIGURATION FILE, YOU MUST USE
|
||||
; ".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".
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
#INCLUDE "cfg_RC2014.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET TRUE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 7372800 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
;
|
||||
FDENABLE .SET FALSE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET TRUE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET TRUE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
@@ -47,31 +47,31 @@
|
||||
;
|
||||
#INCLUDE "cfg_RCEZ80.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 20000000 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;;
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
@@ -83,12 +83,22 @@ PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IMM DISK DRIVER (IMM.ASM)
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEEZ80 .SET TRUE ; CH376: DELEGATE USB DRIVERS TO EZ80'S FIRMWARE
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
EZ80TIMER .SET EZ80TMR_FIRM ; EZ80: TIMER TICK MODEL: EZ80TMR_[INT|FIRM]
|
||||
|
||||
@@ -66,20 +66,20 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -104,8 +104,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -66,20 +66,20 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -104,8 +104,14 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -70,20 +70,20 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
MDROM .SET FALSE ; MD: ENABLE ROM DISK
|
||||
MDRAM .SET TRUE ; MD: ENABLE RAM DISK
|
||||
@@ -111,8 +111,14 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -63,22 +63,20 @@ Z280_INTWAIT .SET 0 ; Z280: INT ACK WAIT STATUS (0-3)
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
Z2UENABLE .SET TRUE ; Z2U: ENABLE Z280 UART SERIAL DRIVER (Z2U.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -106,8 +104,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -63,22 +63,20 @@ Z280_INTWAIT .SET 0 ; Z280: INT ACK WAIT STATUS (0-3)
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
Z2UENABLE .SET TRUE ; Z2U: ENABLE Z280 UART SERIAL DRIVER (Z2U.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -106,8 +104,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -66,23 +66,21 @@ Z280_INTWAIT .SET 0 ; Z280: INT ACK WAIT STATUS (0-3)
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
Z2UENABLE .SET TRUE ; Z2U: ENABLE Z280 UART SERIAL DRIVER (Z2U.ASM)
|
||||
Z2U0HFC .SET TRUE ; Z2U 0: ENABLE HARDWARE FLOW CONTROL
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -96,7 +94,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
@@ -110,8 +108,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -69,12 +69,11 @@ Z280_INTWAIT .SET 0 ; Z280: INT ACK WAIT STATUS (0-3)
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
@@ -82,11 +81,10 @@ UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
Z2UENABLE .SET TRUE ; Z2U: ENABLE Z280 UART SERIAL DRIVER (Z2U.ASM)
|
||||
Z2UOSC .SET (CPUOSC / 16) ; Z2U: OSC FREQUENCY IN MHZ
|
||||
Z2U0HFC .SET TRUE ; Z2U0: ENABLE HARDWARE FLOW CONTROL
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -103,7 +101,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
@@ -117,8 +115,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -69,12 +69,11 @@ Z280_INTWAIT .SET 0 ; Z280: INT ACK WAIT STATUS (0-3)
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
@@ -82,11 +81,10 @@ UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
Z2UENABLE .SET TRUE ; Z2U: ENABLE Z280 UART SERIAL DRIVER (Z2U.ASM)
|
||||
Z2UOSC .SET (CPUOSC / 16) ; Z2U: OSC FREQUENCY IN MHZ
|
||||
Z2U0HFC .SET TRUE ; Z2U0: ENABLE HARDWARE FLOW CONTROL
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
@@ -103,7 +101,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
@@ -117,8 +115,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -67,25 +67,71 @@
|
||||
;
|
||||
#INCLUDE "Config/RCZ80_std.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 3686400 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 0 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET FALSE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIOCNT .SET 1 ; SIO: NUMBER OF CHIPS TO DETECT (1-2), 2 CHANNELS PER CHIP
|
||||
SIO0BCLK .SET 7372800 ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET TRUE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_COLECO ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_COLECO ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
;
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET FALSE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET TRUE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET TRUE ; AY: AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
; ".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".
|
||||
;
|
||||
#DEFINE PLATFORM_NAME "EaZy80-512", " [", CONFIG, "]"
|
||||
#DEFINE PLATFORM_NAME "EaZy80-512", " [", CONFIG, "]" ; TEXT LABEL OF THIS CONFIG IN STARTUP MESSAGES
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
@@ -55,65 +55,48 @@ AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
CPUOSC .SET 22000000 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
KIOENABLE .SET TRUE ; ENABLE ZILOG KIO SUPPORT
|
||||
KIOBASE .SET $00 ; KIO BASE I/O ADDRESS
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCBASE .SET KIOBASE+$04 ; CTC BASE I/O ADDRESS
|
||||
CTCOSC .SET 1843200 ; CTC CLOCK FREQUENCY
|
||||
;
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 0 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
MEMMGR .SET MM_EZ512 ; MEMORY MANAGER: MM_[SBC|Z2|N8|Z180|Z280|MBC|RPH|MON|EZ512]
|
||||
;
|
||||
FPLED_ENABLE .SET FALSE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET FALSE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET FALSE ; ENABLE LCD DISPLAY
|
||||
KIOENABLE .SET TRUE ; ENABLE ZILOG KIO SUPPORT
|
||||
KIOBASE .SET $00 ; KIO BASE I/O ADDRESS
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCBASE .SET KIOBASE+$04 ; CTC BASE I/O ADDRESS
|
||||
CTCOSC .SET 1843200 ; CTC CLOCK FREQUENCY
|
||||
;
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET FALSE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
;
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIOCNT .SET 1 ; SIO: NUMBER OF CHIPS TO DETECT (1-2), 2 CHANNELS PER CHIP
|
||||
SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP|Z80R]
|
||||
SIO0BASE .SET KIOBASE+$08 ; SIO 0: REGISTERS BASE ADR
|
||||
SIO0ACLK .SET CTCOSC ; SIO 0A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCLK .SET CTCOSC ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
MDROM .SET FALSE ; MD: ENABLE ROM DISK
|
||||
;
|
||||
IDEENABLE .SET FALSE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET FALSE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_EZ512 ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET FALSE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -42,32 +42,85 @@
|
||||
; ".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".
|
||||
;
|
||||
#DEFINE PLATFORM_NAME "K80W", " [", CONFIG, "]" ; TEXT LABEL OF THIS CONFIG IN STARTUP MESSAGES
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
#INCLUDE "Config/RCZ80_std.asm"
|
||||
#INCLUDE "cfg_RCZ80.asm"
|
||||
;
|
||||
INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 22000000 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
KIOENABLE .SET TRUE ; ENABLE ZILOG KIO SUPPORT
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCBASE .SET KIOBASE+$04 ; CTC BASE I/O ADDRESS
|
||||
CTCOSC .SET 1843200 ; CTC CLOCK FREQUENCY
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
DSRTCMODE .SET DSRTCMODE_K80W ; DSRTC: OPERATING MODE: DSRTCMODE_[STD|MFPIC|K80W]
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET FALSE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIOCNT .SET 1 ; SIO: NUMBER OF CHIPS TO DETECT (1-2), 2 CHANNELS PER CHIP
|
||||
SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP|Z80R]
|
||||
SIO0BASE .SET KIOBASE+$08 ; SIO 0: REGISTERS BASE ADR
|
||||
SIO0ACLK .SET CTCOSC ; SIO 0A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCLK .SET CTCOSC ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_K80W ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -45,19 +45,34 @@
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
#INCLUDE "Config/RCZ80_std.asm"
|
||||
#INCLUDE "cfg_RCZ80.asm"
|
||||
;
|
||||
BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE
|
||||
BOOT_PRETTY .SET FALSE ; BOOT WITH PRETTY PLATFORM NAME
|
||||
AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT
|
||||
;
|
||||
CPUOSC .SET 7372800 ; CPU OSC FREQ IN MHZ
|
||||
INTMODE .SET 2 ; INTERRUPTS: 0=NONE, 1=MODE 1, 2=MODE 2, 3=MODE 3 (Z280)
|
||||
;
|
||||
KIOENABLE .SET TRUE ; ENABLE ZILOG KIO SUPPORT
|
||||
;
|
||||
CTCENABLE .SET TRUE ; ENABLE ZILOG CTC SUPPORT
|
||||
CTCBASE .SET KIOBASE+$04 ; CTC BASE I/O ADDRESS
|
||||
CTCTIMER .SET TRUE ; ENABLE CTC PERIODIC TIMER
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
LCDENABLE .SET TRUE ; ENABLE LCD DISPLAY
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIOCNT .SET 1 ; SIO: NUMBER OF CHIPS TO DETECT (1-2), 2 CHANNELS PER CHIP
|
||||
SIO0MODE .SET SIOMODE_STD ; SIO 0: CHIP TYPE: SIOMODE_[STD|RC|SMB|ZP|Z80R]
|
||||
SIO0BASE .SET KIOBASE+$08 ; SIO 0: REGISTERS BASE ADR
|
||||
@@ -65,3 +80,49 @@ SIO0ACLK .SET 1843200 ; SIO 0A: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372
|
||||
SIO0ACTCC .SET 0 ; SIO 0A: CTC CHANNEL 0=A, 1=B, 2=C, 3=D, -1 FOR NONE
|
||||
SIO0BCLK .SET 1843200 ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCTCC .SET 1 ; SIO 0B: CTC CHANNEL 0=A, 1=B, 2=C, 3=D, -1 FOR NONE
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
FD0TYPE .SET FDT_3HD ; FD 0: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
FD1TYPE .SET FDT_3HD ; FD 1: DRIVE TYPE: FDT_[3DD|3HD|5DD|5HD|8]
|
||||
;
|
||||
IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|FZ80|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
LPTENABLE .SET FALSE ; LPT: ENABLE CENTRONICS PRINTER DRIVER (LPT.ASM)
|
||||
;
|
||||
PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -55,6 +55,7 @@ CPUOSC .SET 7372800 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
SKZENABLE .SET TRUE ; ENABLE SERGEY'S Z80-512K FEATURES
|
||||
SKZDIV .SET DIV_12 ; UART CLK (CLK2) DIVIDER FOR Z80-512K
|
||||
@@ -69,7 +70,6 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
@@ -78,13 +78,15 @@ ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SIO0BCLK .SET CPUOSC / 12 ; SIO 0B: OSC FREQ IN HZ, ZP=2457600/4915200, RC/SMB=7372800
|
||||
SIO0BCFG .SET SER_38400_8N1 ; SIO 0B: SERIAL LINE CONFIG
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -109,8 +111,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -55,6 +55,7 @@ CPUOSC .SET 7372800 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
FPLED_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL LEDS
|
||||
FPSW_ENABLE .SET TRUE ; FP: ENABLES FRONT PANEL SWITCHES
|
||||
@@ -63,13 +64,13 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
@@ -77,6 +78,7 @@ TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -92,10 +94,6 @@ SDMODE .SET SDMODE_PIO ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
;
|
||||
PRPENABLE .SET FALSE ; PRP: ENABLE ECB PROPELLER IO BOARD DRIVER (PRP.ASM)
|
||||
;
|
||||
@@ -105,8 +103,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
; TO USE ".EQU" BECAUSE IT WON'T LET YOU REDEFINE A SETTING WITH ".EQU".
|
||||
;
|
||||
#DEFINE PLATFORM_NAME "ZRC512", " [", CONFIG, "]"
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
@@ -57,6 +56,7 @@ CPUOSC .SET 22000000 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 0 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
@@ -69,20 +69,21 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
MDROM .SET FALSE ; MD: ENABLE ROM DISK
|
||||
;
|
||||
@@ -109,8 +110,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
; TO USE ".EQU" BECAUSE IT WON'T LET YOU REDEFINE A SETTING WITH ".EQU".
|
||||
;
|
||||
#DEFINE PLATFORM_NAME "ZRC", " [", CONFIG, "]"
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
@@ -57,6 +56,7 @@ CPUOSC .SET 14745600 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
RAMSIZE .SET 512 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 0 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
@@ -69,20 +69,21 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY|N8PC]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
MDROM .SET FALSE ; MD: ENABLE ROM DISK
|
||||
;
|
||||
@@ -109,8 +110,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
; TO USE ".EQU" BECAUSE IT WON'T LET YOU REDEFINE A SETTING WITH ".EQU".
|
||||
;
|
||||
#DEFINE PLATFORM_NAME "ZRC", " [", CONFIG, "]"
|
||||
;
|
||||
#DEFINE AUTO_CMD "" ; AUTO CMD WHEN BOOT_TIMEOUT IS ENABLED
|
||||
#DEFINE DEFSERCFG SER_115200_8N1 | SER_RTS ; DEFAULT SERIAL CONFIGURATION
|
||||
;
|
||||
@@ -57,6 +56,7 @@ CPUOSC .SET 14745600 ; CPU OSC FREQ IN MHZ
|
||||
;
|
||||
KIOENABLE .SET FALSE ; ENABLE ZILOG KIO SUPPORT
|
||||
CTCENABLE .SET FALSE ; ENABLE ZILOG CTC SUPPORT
|
||||
SCTIMENABLE .SET FALSE ; ENABLE SC737 50HZ SYSTEM TIMER
|
||||
;
|
||||
RAMSIZE .SET 1536 ; SIZE OF RAM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
ROMSIZE .SET 512 ; SIZE OF ROM IN KB (MUST MATCH YOUR HARDWARE!!!)
|
||||
@@ -69,20 +69,21 @@ CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
VDAEMU_SERKBD .SET $FF ; VDA EMULATION: SERIAL KBD UNIT #, OR $FF FOR HW KBD
|
||||
;
|
||||
DSRTCENABLE .SET TRUE ; DSRTC: ENABLE DS-1302 CLOCK DRIVER (DSRTC.ASM)
|
||||
RP5RTCENABLE .SET FALSE ; RP5C01 RTC BASED CLOCK (RP5RTC.ASM)
|
||||
INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
;
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ACIAENABLE .SET TRUE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
TMSTIMENABLE .SET FALSE ; TMS: ENABLE TIMER INTERRUPTS (REQUIRES IM1)
|
||||
VRCENABLE .SET TRUE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -107,8 +108,16 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ80 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RC2014 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -61,4 +61,6 @@ Z180_IOWAIT .SET 1 ; Z180: I/O WAIT STATES TO ADD ABOVE 1 W/S BUILT-IN (0-3)
|
||||
;
|
||||
CRTACT .SET FALSE ; ACTIVATE CRT (VDU,CVDU,PROPIO,ETC) AT STARTUP
|
||||
;
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
;
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
|
||||
@@ -72,14 +72,15 @@ INTRTCENABLE .SET FALSE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -91,6 +92,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_SC ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|T35|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
@@ -103,8 +105,14 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RC2014|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC|COLECO]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
@@ -72,14 +72,15 @@ INTRTCENABLE .SET TRUE ; ENABLE PERIODIC INTERRUPT CLOCK DRIVER (INTRTC.ASM)
|
||||
DUARTENABLE .SET FALSE ; DUART: ENABLE 2681/2692 SERIAL DRIVER (DUART.ASM)
|
||||
UARTENABLE .SET TRUE ; UART: ENABLE 8250/16550-LIKE SERIAL DRIVER (UART.ASM)
|
||||
ASCIENABLE .SET TRUE ; ASCI: ENABLE Z180 ASCI SERIAL DRIVER (ASCI.ASM)
|
||||
ACIAENABLE .SET FALSE ; ACIA: ENABLE MOTOROLA 6850 ACIA DRIVER (ACIA.ASM)
|
||||
SIOENABLE .SET TRUE ; SIO: ENABLE ZILOG SIO SERIAL DRIVER (SIO.ASM)
|
||||
SCCENABLE .SET FALSE ; SCC: ENABLE ZILOG SCC SERIAL DRIVER (SCC.ASM)
|
||||
;
|
||||
TMSENABLE .SET FALSE ; TMS: ENABLE TMS9918 VIDEO/KBD DRIVER (TMS.ASM)
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU]
|
||||
TMSMODE .SET TMSMODE_MSX ; TMS: DRIVER MODE: TMSMODE_[SCG|N8|MSX|MSXKBD|MSXMKY|MBC|COLECO|DUO|NABU|MSXUKY]
|
||||
TMS80COLS .SET FALSE ; TMS: ENABLE 80 COLUMN SCREEN, REQUIRES V9958
|
||||
VRCENABLE .SET FALSE ; VRC: ENABLE VGARC VIDEO/KBD DRIVER (VRC.ASM)
|
||||
EFENABLE .SET FALSE ; EF: ENABLE EF9345 VIDEO DRIVER (EF.ASM)
|
||||
XOSENABLE .SET FALSE ; XOSERA: ENABLE XOSERA VIDEO DRIVERS (XOSERA.ASM)
|
||||
;
|
||||
FDENABLE .SET TRUE ; FD: ENABLE FLOPPY DISK DRIVER (FD.ASM)
|
||||
FDMODE .SET FDMODE_RCWDC ; FD: DRIVER MODE: FDMODE_[DIO|ZETA|ZETA2|DIDE|N8|DIO3|RCSMC|RCWDC|DYNO|EPFDC|MBC]
|
||||
@@ -91,6 +92,7 @@ IDEENABLE .SET TRUE ; IDE: ENABLE IDE DISK DRIVER (IDE.ASM)
|
||||
PPIDEENABLE .SET TRUE ; PPIDE: ENABLE PARALLEL PORT IDE DISK DRIVER (PPIDE.ASM)
|
||||
;
|
||||
SDENABLE .SET TRUE ; SD: ENABLE SD CARD DISK DRIVER (SD.ASM)
|
||||
SDMODE .SET SDMODE_SC ; SD: DRIVER MODE: SDMODE_[JUHA|N8|CSIO|PPI|UART|DSD|MK4|SC|MT|USR|PIO|Z80R|EPITX|T35|GM|EZ512|K80W]
|
||||
SDCNT .SET 1 ; SD: NUMBER OF SD CARD DEVICES (1-2), FOR DSD/SC/MT ONLY
|
||||
;
|
||||
CHENABLE .SET TRUE ; CH: ENABLE CH375/376 USB SUPPORT
|
||||
@@ -103,8 +105,14 @@ PPAENABLE .SET FALSE ; PPA: ENABLE IOMEGA ZIP DRIVE (PPA) DISK DRIVER (PPA.ASM)
|
||||
IMMENABLE .SET FALSE ; IMM: ENABLE IOMEGA ZIP PLUS DRIVE (IMM) DISK DRIVER (IMM.ASM)
|
||||
SYQENABLE .SET FALSE ; SYQ: ENABLE SYQUEST SPARQ DISK DRIVER (SYQ.ASM)
|
||||
;
|
||||
SN76489ENABLE .SET FALSE ; SN: ENABLE SN76489 SOUND DRIVER
|
||||
CHNATIVEENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE USB DRIVER
|
||||
CHSCSIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE MASS STORAGE DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHUFIENABLE .SET FALSE ; CH376: ENABLE CH376 NATIVE UFI FLOPPY DISK DEVICES (REQUIRES CHNATIVEENABLE)
|
||||
CHNATIVEFORCE .SET FALSE ; CH376: DISABLE AUTO-DETECTION OF MODULE - ASSUME ITS INSTALLED
|
||||
_CH376_DATA_PORT .SET $FF88 ; CH376: DATA PORT
|
||||
_CH376_COMMAND_PORT .SET $FF89 ; CH376: COMMAND PORT
|
||||
_USB_MODULE_LEDS .SET $FF8A ; CH376: LED CONTROL PORT
|
||||
;
|
||||
AY38910ENABLE .SET FALSE ; AY: ENABLE AY-3-8910 / YM2149 SOUND DRIVER
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU]
|
||||
AYMODE .SET AYMODE_RCZ180 ; AY: DRIVER MODE: AYMODE_[SCG|N8|RCZ80|RCZ180|MSX|LINC|MBC|DUO|NABU|N8PC]
|
||||
AY_FORCE .SET FALSE ; AY: BYPASS AUTO-DETECT, FORCED PRESENT
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user