mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:13:13 -06:00
Add PIOMON
This commit is contained in:
@@ -21,6 +21,7 @@ pushd vdctest && call Build || exit /b & popd
|
||||
pushd kbdtest && call Build || exit /b & popd
|
||||
pushd ps2info && call Build || exit /b & popd
|
||||
pushd 2piotst && call Build || exit /b & popd
|
||||
pushd piomon && call Build || exit /b & popd
|
||||
|
||||
goto :eof
|
||||
|
||||
|
||||
@@ -18,3 +18,4 @@ pushd vdctest && call Clean || exit /b 1 & popd
|
||||
pushd kbdtest && call Clean || exit /b 1 & popd
|
||||
pushd ps2info && call Clean || exit /b 1 & popd
|
||||
pushd 2piotst && call Clean || exit /b 1 & popd
|
||||
pushd piomon && call Clean || exit /b 1 & popd
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
OBJECTS =
|
||||
SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng rzsz vdctest kbdtest ps2info 2piotst
|
||||
SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng rzsz vdctest kbdtest ps2info 2piotst piomon
|
||||
DEST = ../../../Binary/Apps/Test
|
||||
TOOLS =../../../Tools
|
||||
|
||||
|
||||
10
Source/Apps/Test/piomon/Build.cmd
Normal file
10
Source/Apps/Test/piomon/Build.cmd
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set TOOLS=../../../../Tools
|
||||
set PATH=%TOOLS%\tasm32;%PATH%
|
||||
set TASMTABS=%TOOLS%\tasm32
|
||||
|
||||
tasm -t180 -g3 -fFF piomon.asm piomon.com piomon.lst || exit /b
|
||||
|
||||
copy /Y piomon.com ..\..\..\..\Binary\Apps\Test\ || exit /b
|
||||
6
Source/Apps/Test/piomon/Clean.cmd
Normal file
6
Source/Apps/Test/piomon/Clean.cmd
Normal file
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if exist *.com del *.com
|
||||
if exist *.lst del *.lst
|
||||
if exist *.bin del *.bin
|
||||
7
Source/Apps/Test/piomon/Makefile
Normal file
7
Source/Apps/Test/piomon/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
OBJECTS = piomon.com
|
||||
DEST = ../../../../Binary/Apps/Test
|
||||
TOOLS =../../../../Tools
|
||||
|
||||
USETASM=1
|
||||
|
||||
include $(TOOLS)/Makefile.inc
|
||||
36
Source/Apps/Test/piomon/Readme.txt
Normal file
36
Source/Apps/Test/piomon/Readme.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
PIOMON is a program to verify operation of the Z80 MBC DUALPIO board
|
||||
|
||||
Most testing requires the use of loopback hardware constructed as:
|
||||
|
||||
Channel A RDY STB D0 D1 D2 D3 D4 D5 D6 D7
|
||||
\ / | | | | | | | |
|
||||
\ / | | | | | | | |
|
||||
X | | | | | | | |
|
||||
/ \ | | | | | | | |
|
||||
/ \ | | | | | | | |
|
||||
Channel B RDY STB D0 D1 D2 D3 D4 D5 D6 D7
|
||||
|
||||
The DUALPIO has, well, 2 PIO chips. Only one chip
|
||||
is tested at a time. At startup, PIOMON will ask
|
||||
you for the port of the chip to test. It defaults
|
||||
to the standard port number for the primary PIO chip
|
||||
on an MBC DUALPIO board.
|
||||
|
||||
The port number specified is the base I/O port. Each
|
||||
chip has two channels which are addressed in the
|
||||
menu by specifying A or B.
|
||||
|
||||
MBC DUALPIO Primary PIO = 0xB8
|
||||
MBC DUALPIO Secondary PIO = 0xBC
|
||||
|
||||
If you try to use PIOMON without the RDY and STB
|
||||
cross connected, you may have interrupt issues
|
||||
because STB will be floating.
|
||||
|
||||
N.B., V1 and V2 of the DUALPIO lack a hardware reset. The
|
||||
PIO chips will reset at power-on, but they do not reset
|
||||
when the reset button is pushed.
|
||||
|
||||
Happy St. Patrick's Day!!!
|
||||
|
||||
--WBW 7:42 PM 3/17/2022
|
||||
1361
Source/Apps/Test/piomon/piomon.asm
Normal file
1361
Source/Apps/Test/piomon/piomon.asm
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user