Re: PIA Test?

From: John Robertson <jrr_at_flippers.com>
Date: Mon Mar 11 2002 - 09:53:12 EST

<html>
Hey Kev,<br><br>
<font face="Courier New, Courier">I think you have to clear the registers by writing a &quot;0&quot; to them before the &quot;4&quot;. Also don't forget to clear Reg1 with a Reg1 = 0 at the beginning of the program.<br><br>
</font>I'd have to study this further but those pop out first...<br><br>
John :-#)#<br><br>
At 08:37 AM 11/03/2002 -0500, Kev wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>The following is a script I wrote to read PIA ports, specifically port A of IC5 on a Turkey Shoot board.<br>
</font><font face="Courier New, Courier" size=2><br>
</font><font face="arial" size=2>Interestingly enough this script worked, until I fixed the board.&nbsp; Now that the board is fixed the script doesn't work.<br>
</font><font face="Courier New, Courier" size=2><br>
&nbsp;<br><br>
</font><font face="arial" size=2>My Chip Selects are correct, and the R/W works.&nbsp; The game works in test mode too.&nbsp; What did I miss?<br>
</font><font face="Courier New, Courier" size=2><br>
&nbsp;<br><br>
</font><font face="arial" size=2>Thanks,<br>
</font><font face="Courier New, Courier" size=2><br>
</font><font face="arial" size=2>Kev<br>
</font><font face="Courier New, Courier" size=2><br>
&nbsp;<br><br>
&nbsp;<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>
! I/O TEST<br><br>
!<br><br>
! PIA Test Port A IC5<br><br>
!<br><br>
! Reg1 = Temporary offset from main<br><br>
! Reg2 = Base address of PIA<br><br>
!<br><br>
! This routine sets Port A as Inputs which are routed to the Data Bus.<br><br>
! The Intterupts are not turned on &amp; thus don't require servicing for our <br><br>
! test.<br><br>
!<br><br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <br><br>
PROGRAM IOTST<br><br>
REG2 = C980<br><br>
SETPORT:<br><br>
DPY-SETUP IC5 PORT A<br><br>
EXECUTE DELAY ! Call delay for display<br><br>
WRITE @ REG2 = 0 ! Write 0's to Data Direction Reg A<br><br>
REG1 = REGF <br><br>
INC REG1<br><br>
INC REG1 ! Set REG1 to base address + 2<br><br>
WRITE @ REG1 = 0 ! Write 0's to DDRB<br><br>
DEC REG1 ! Set Reg1 to base +1<br><br>
WRITE @ REG1 = 4 ! Write 4 to Port A CRA<br><br>
INC REG1 <br><br>
INC REG1 ! Set Reg1 to base +3<br><br>
WRITE @ REG1 = 4 ! Write 4 to Port B CRA<br><br>
DPLOOP:<br><br>
DPY- TEST COIN DOOR BUTTONS <br><br>
READ @ REG2<br><br>
IF REGE AND 40 = 40 GOTO SLAMIN<br><br>
IF REGE AND 20 = 20 GOTO RIGHTC<br><br>
IF REGE AND 10 = 10 GOTO RIGHTC<br><br>
IF REGE AND 8 = 8 GOTO LEFTC<br><br>
IF REGE AND 4 = 4 GOTO HSRESET<br><br>
IF REGE AND 2 = 2 GOTO ADVANCE<br><br>
IF REGE AND 1 = 1 GOTO AUTOM<br><br>
GOTO DPLOOP<br><br>
SLAMIN:<br><br>
DPY-SLAM TILT #<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP<br><br>
RIGHTC:<br><br>
DPY-RIGHT COIN #<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP<br><br>
LEFTC:<br><br>
DPY-LEFT COIN #<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP<br><br>
HSRESET:<br><br>
DPY-HIGH SCORE RESET#<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP<br><br>
ADVANCE:<br><br>
DPY-ADVANCE PUSHED#<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP<br><br>
AUTOM:<br><br>
DPY-AUTO IS MANUAL PRESSED #<br><br>
EXECUTE DELAY<br><br>
GOTO DPLOOP</font>
<dl>
<dd>----- Original Message -----
<dd>From:</b> <a href="mailto:jrr@flippers.com">John Robertson</a>
<dd>To:</b> <a href="mailto:techToolsList@flippers.com">techToolsList@flippers.com</a>
<dd>Sent:</b> Saturday, March 09, 2002 2:40 PM
<dd>Subject:</b> Re: 9010A tricks<br><br>

<dd>I thought I had too, or perhaps it was in email, still it is up on the site now... look for ID-A-DAT.s and .H for the two files (.H is compiled)<br><br>

<dd>John :-#)#<br><br>
<br><br>

<dd>At 12:53 PM 09/03/2002 -0500, Kev wrote:<blockquote type=cite class=cite cite><font size=2>
<dd>Forgive me, I thought John posted about a program that would let the 9010A ID Data/Address lines with the probe.&nbsp; Can anyone point me to that again?</font>
<dd>&nbsp;<font size=2>
<dd>As an extension of that thought is there a function that would allow me to probe a point and generate a &quot;memory Map&quot; to tell me what address that point is active?</font>
<dd>&nbsp;<font size=2>
<dd>Thanks,</font><font size=2>
<dd>Kev</font>
<dd>&nbsp;</blockquote>
</dl></blockquote></html>
Received on Mon Mar 11 09:53:12 2002

This archive was generated by hypermail 2.1.8 : Tue Dec 02 2003 - 18:40:41 EST