<x-html>
<html>
Thanks Kev,<br><br>
I'll post my Pacman/Ms/Clone test setup for folks to edit...I
rather like it but it needs work...who;s next?<br><br>
<font face="Courier New, Courier" size=4>! Bally-Midway Pac/MsPacman Test
Routine<br><br>
INCLUDE "Z80.POD"<br><br>
SETUP <br><br>
TRAP ACTIVE FORCE LINE NO <br>
TRAP ACTIVE INTERRUPT NO<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>
PROGRAM MAIN<br>
RUN UUT 32CE ! WRITE "MADE BY NAMCO" ON
SCREEN<br>
BUS TEST<br>
DOTS:<br>
REGE = 10<br>
DPY-PUTS A YELLOW DOT IN EACH CORNER<br><br>
WRITE @4040 = REGE<br>
WRITE @405F = REGE<br>
WRITE @43A0 = REGE<br>
WRITE @43BF = REGE<br><br>
INC REGE<br><br>
IF REGE = 17 GOTO DOTS<br><br>
<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
! MAIN TEST ROUTINE<br><br>
DPY-#<br>
DPY-BUS TEST <br>
EX DELAY <br>
BUS TEST <br>
DPY-# <br>
DPY-WHICH GAME ARE YOU TESTING?<br>
EX DELAY<br><br>
MAINLOOP:<br>
DPY-0 PACMAN, 1 MS, 2 CLONE MS \1<br>
EX DELAY<br><br>
IF REG1 > 2 GOTO MAINLOOP <br>
IF REG1 = 0 GOTO PACTEST<br>
IF REG1 = 1 GOTO MSTEST <br>
IF REG1 = 2 GOTO CLONETEST<br><br>
PACTEST: <br><br>
EX PACMANROM <br>
GOTO COMMON<br><br>
MSTEST: <br>
EX MSROM <br>
GOTO COMMON<br><br>
CLONETEST:<br>
EX CLONEROM <br>
GOTO COMMON<br>
<br>
COMMON: <br>
DPY-#RAM TESTS <br>
EX DELAY <br>
<br>
DPY-#TESTING RAM AT 4H AND 4L <br>
EX RAM4HLTEST <br>
<br>
DPY-#TESTING RAM AT 4J AND 4M <br>
EX RAM4JMTEST <br>
<br>
DPY-#TESTING RAM AT 4K AND 4N <br>
EX RAM4KNTEST <br>
<br>
DPY-#ALL RAM TESTS COMPLETE <br>
EX DELAY <br>
<br>
DPY-TESTING DIP SWITCHES <br>
EX DELAY <br>
<br>
DPY-PRESS CONT TO STEP <br>
EX DELAY <br>
<br>
REG2=0 <br>
REGF=67FF<br><br>
SWITCHLOOP: <br>
INC REGF <br>
INC REG2 <br>
READ @REGF <br>
IF REGE AND 1 >0 GOTO SW6KOFF <br>
GOTO SW6KON<br><br>
NEXTSW: <br>
IF REGE AND 2 >0 GOTO SW6JOFF <br>
GOTO SW6JON<br><br>
ADDTEST: <br>
IF REGF >6807 GOTO CONT <br>
GOTO SWITCHLOOP<br>
<br>
SW6KON: <br>
DPY-# <br>
DPY-6K NUMBER $2 ON <br>
STOP <br>
GOTO NEXTSW<br>
<br>
SW6JON: <br>
IF REGF=6807 GOTO CONT <br>
DPY-# <br>
DPY-6J NUMBER $2 ON <br>
STOP <br>
GOTO ADDTEST<br>
<br>
SW6KOFF: <br>
DPY-# <br>
DPY-6K NUMBER $2 OFF <br>
STOP <br>
GOTO NEXTSW<br>
<br>
SW6JOFF: <br>
IF REGF=6807 GOTO CONT <br>
DPY-# <br>
DPY-6J NUMBER $2 OFF <br>
STOP <br>
GOTO ADDTEST<br>
<br>
CONT: <br>
DPY-# <br>
DPY-DIP TEST COMPLETE <br>
EX DELAY <br>
DPY-ATTEMPTING TO RUN SECTION <br>
RUN UUT <br>
EX DELAY <br>
DPY-COMPLETE<br>
<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
!DELAY ROUTINE<br>
<br>
PROGRAM DELAY<br>
REG1=40<br>
0:<br>
DEC REG1<br>
IF REG1 >0 GOTO 0<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
! PACMAN ROM TEST<br><br>
PROGRAM PACMANROM <br>
DPY-# <br>
DPY-TESTING FOR LATEST ROM REVISION <br>
WRITE @ 0000 = 0 <br>
WRITE @ 3FFF = 11<br>
<br>
WAIT: <br>
READ @ REGF <br>
IF REGE = B0 GOTO WAIT <br>
<br>
READ @ 300D <br>
IF REGE = 58 GOTO NEXTBYTE<br>
GOTO BADROM<br>
<br>
NEXTBYTE:<br>
READ @ 300C <br>
IF REGE = 3A GOTO GOODROM <br>
GOTO BADROM<br>
<br>
BADROM:<br>
DPY-#ROM CHECKSUM ERROR OR OLD REV <br>
!STOP <br>
DPY-TESTING 6E ROM<br>
ROM @ 0-0FFF SIG 8B1A <br>
DPY-TESTING 6F ROM<br>
ROM @ 1000-1FFF SIG 8859<br>
DPY-TESTING 6H ROM<br>
ROM @ 2000-2FFF SIG 1934<br>
DPY-TESTING 6J ROM<br>
ROM @ 3000-3FFF SIG 0A4B <br>
GOTO MAINEND<br>
<br>
GOODROM:<br>
DPY-#ROM CHECKSUM OK <br>
EX DELAY <br>
GOTO MAINEND<br>
<br>
MAINEND:<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
! MS PACMAN ROM TEST<br><br>
PROGRAM MSROM<br>
DPY-# <br>
DPY-WHAT ROM DO YOU HAVE <br>
EX DELAY<br>
SPEEDLOOP: <br>
DPY-0=NORMAL 1=SPEED UP \1 <br>
IF REG1=0 GOTO NORMALTEST <br>
IF REG1=1 GOTO SPEEDTEST <br>
IF REG1>1 GOTO SPEEDLOOP<br>
<br>
NORMALTEST:<br>
EX NORMAL <br>
GOTO TESTEND<br>
SPEEDTEST: <br>
EX SPEED <br>
GOTO TESTEND<br>
TESTEND:<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
!ROM TEST FOR NORMAL SPEED<br>
<br>
PROGRAM NORMAL<br><br>
DPY-TESTING NORMAL SPEED ROM<br>
ROM @ 0-0FFF SIG F241<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
!ROM TEST FOR SPEED UP ROM<br>
<br>
PROGRAM SPEED<br><br>
DPY-TESTING SPEED UP ROM<br>
ROM @ 0-0FFF SIG 7E69<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<br>
! CLONE ROM TEST Regular Speed<br>
<br>
PROGRAM CLONEROM<br><br>
DPY-TESTING PROCESSOR ROM<br>
ROM @ 0-3FFF SIG DB91<br>
DPY-TESTING 7H/J ROM<br>
ROM @ 8000-8FFF SIG 7DE1<br>
DPY-TESTING 7K-2716 ROM<br>
ROM @ 9000-97FF SIG 862A<br>
DPY-TESTING 7K-2732 ROM<br>
ROM @ 9000-9FFF SIG 06B5<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
! RAM 4H & 4L TEST<br>
<br>
PROGRAM RAM4HLTEST<br><br>
WRITE @ 4000 = 0 <br>
WRITE @ 43FF = 11<br>
<br>
WAIT:<br>
READ @ REGF <br>
IF REGE = B0 GOTO WAIT <br>
IF REGE = B1 GOTO WAIT <br>
IF REGE = B2 GOTO WAIT <br><br>
IF REGE = C0 GOTO RAM4HLOK <br>
GOTO RAM4HLBAD<br>
<br>
RAM4HLOK:<br>
DPY-#RAM 4L AND 4H TEST OK <br>
EX DELAY <br>
GOTO RAM4HLEND<br>
<br>
RAM4HLBAD: <br>
RAM LONG @ 4000 - 43FF<br>
RAM4HLEND:<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
! RAM 4J & 4M TEST<br>
<br>
PROGRAM RAM4JMTEST <br>
WRITE @ 4400 = 0 <br>
WRITE @ 47FF = 11<br><br>
WAIT:<br>
READ @ REGF <br>
IF REGE = B0 GOTO WAIT <br>
IF REGE = B1 GOTO WAIT <br>
IF REGE = B2 GOTO WAIT <br>
<br>
IF REGE = C0 GOTO RAM4JMOK <br>
GOTO RAM4JMBAD<br>
<br>
RAM4JMOK:<br>
DPY-#RAMS 4J AND 4M OK <br>
EX DELAY <br>
GOTO RAM4JMEND<br>
<br>
RAM4JMBAD:<br>
RAM LONG @ 4400 - 47FF<br>
RAM4JMEND:<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
! RAM 4K & 4N TEST<br>
<br>
PROGRAM RAM4KNTEST<br>
WRITE @ 4C00 = 0 <br>
WRITE @ 4FFF = 11<br>
<br>
WAIT:<br>
READ @ REGF <br>
IF REGE = B0 GOTO WAIT <br>
IF REGE = B1 GOTO WAIT <br>
IF REGE = B2 GOTO WAIT<br>
<br>
IF REGE = C0 GOTO RAM4KNOK <br>
GOTO RAM4KNBAD<br>
<br>
RAM4KNOK:<br>
DPY-#RAM 4N AND 4K OK <br>
EX DELAY <br>
GOTO RAM4KNEND<br>
<br>
RAM4KNBAD: <br>
RAM LONG @ 4C00 - 4FFF<br>
RAM4KNEND:<br><br>
<br>
</font></html>
</x-html>
Received on Thu Jan 17 16:35:57 2002
This archive was generated by hypermail 2.1.8 : Tue Dec 02 2003 - 18:40:39 EST