mirror of
https://github.com/pfusik/xasm.git
synced 2025-01-02 09:33:16 +00:00
74 lines
2.0 KiB
HTML
74 lines
2.0 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>PIA Documentation</TITLE>
|
|
</HEAD>
|
|
<BODY BACKGROUND="atari.gif">
|
|
<CENTER>
|
|
<H1>PIA Documentation</H1>
|
|
by <A HREF="mailto:pfusik@elka.pw.edu.pl">Fox/Taquart</A><P>
|
|
<HR>
|
|
<P>
|
|
<H2>Registers</H2>
|
|
<TABLE BORDER>
|
|
<TR><TD><I> Address </I></TD><TD><I> Read/Write register </I></TD></TR>
|
|
<TR><TD ALIGN=center><TT>^30</TT></TD><TD><A HREF="#porta">PORTA</A></TD></TR>
|
|
<TR><TD ALIGN=center><TT>^31</TT></TD><TD><A HREF="#portb">PORTB</A></TD></TR>
|
|
<TR><TD ALIGN=center><TT>^32</TT></TD><TD><A HREF="#pactl">PACTL</A></TD></TR>
|
|
<TR><TD ALIGN=center><TT>^33</TT></TD><TD><A HREF="#pbctl">PBCTL</A></TD></TR>
|
|
</TABLE>
|
|
<P>
|
|
<HR>
|
|
<P>
|
|
<H2>Description</H2>
|
|
</CENTER>
|
|
|
|
<A NAME="porta"><U>PORTA</U>
|
|
- <B>Port A</B><BR>
|
|
A bit is RESET on an event<BR>
|
|
bit 0 - joystick 0 up<BR>
|
|
bit 1 - joystick 0 down<BR>
|
|
bit 2 - joystick 0 left / paddle 0 button<BR>
|
|
bit 3 - joystick 0 right / paddle 1 button<BR>
|
|
bit 4 - joystick 1 up<BR>
|
|
bit 5 - joystick 1 down<BR>
|
|
bit 6 - joystick 1 left / paddle 0 button<BR>
|
|
bit 7 - joystick 1 right / paddle 1 button<P>
|
|
|
|
<A NAME="portb"><U>PORTA</U>
|
|
- <B>Port B</B><BR>
|
|
Controls memory.<BR>
|
|
bit 0 - $c000-$cfff and $d800-$ffff:<BR>
|
|
0 - RAM<BR>
|
|
1 - OS ROM<BR>
|
|
bit 1 - $a000-$bfff:<BR>
|
|
0 - BASIC ROM<BR>
|
|
1 - RAM<BR>
|
|
bits 6-2 - extended memory control<BR>
|
|
bit 7 - $5800-$5fff:<BR>
|
|
0 - SELF TEST ROM<BR>
|
|
1 - RAM<P>
|
|
|
|
<A NAME="pactl"><U>PACTL</U>
|
|
- <B>Port A Control</B><BR>
|
|
bits 1-0 - interrupts control (?) = 00<BR>
|
|
bit 2 - PORTA control<BR>
|
|
0 - input/output configuration<BR>
|
|
1 - data register<BR>
|
|
bit 3 - cassette motor<BR>
|
|
0 - on<BR>
|
|
1 - off<BR>
|
|
bits 7-4 - interrupts status (?) = 0011<P>
|
|
|
|
<A NAME="pbctl"><U>PBCTL</U>
|
|
- <B>Port B Control</B><BR>
|
|
bits 1-0 - interrupts control (?) = 00<BR>
|
|
bit 2 - PORTB control<BR>
|
|
0 - input/output configuration<BR>
|
|
1 - data register<BR>
|
|
bit 3 - serial devices command line<BR>
|
|
0 - on<BR>
|
|
1 - off<BR>
|
|
bits 7-4 - interrupts status (?) = 0011<P>
|
|
|
|
</BODY>
|
|
</HTML> |