This page (revision-6) was last changed on 03-Feb-2023 15:21 by Florian Dingler 

This page was created on 20-Mar-2010 09:41 by Florian Dingler

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
6 03-Feb-2023 15:21 1 KB Florian Dingler to previous
5 21-Mar-2017 23:09 1 KB Florian Dingler to previous | to last
4 20-Mar-2010 13:51 1 KB Florian Dingler to previous | to last
3 20-Mar-2010 13:50 1 KB Florian Dingler to previous | to last
2 20-Mar-2010 09:46 422 bytes Florian Dingler to previous | to last
1 20-Mar-2010 09:41 148 bytes Florian Dingler to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 3 added 23 lines
Read or write data from the control ports (joystick ports), depending on how the data direction is set (default: 0 "read/input"). To set the direction, set Bit 2 of [PACTL] to "0" and define the direction by setting the bits of PORTA (0=read, 1=write) for each input/output line. Then set Bit 2 of [PACTL] to "1" again.
Example:
{{{
PACTL=PACTL && %11111011 ;set Bit 2 to 0
PORTA=%11110000 ;set Port 2 to output/write, Port 1 is input/read
PACTL=PACTL %% %00000100 ;set Bit 2 to 1
}}}
||Bit||Function||Description||Joystick direction||Paddletrigger
|7|PA7|Joystick Port 2 Pin 4|Right|Paddle 4 [PTRIG3]
|6|PA6|Joystick Port 2 Pin 3|Left|Paddle 3 [PTRIG2]
|5|PA5|Joystick Port 2 Pin 2|Down|not used
|4|PA4|Joystick Port 2 Pin 1|Up |not used
|3|PA3|Joystick Port 1 Pin 4|Right|Paddle 2 [PTRIG1]
|2|PA2|Joystick Port 1 Pin 3|Left|Paddle 1 [PTRIG0]
|1|PA1|Joystick Port 1 Pin 2|Down|not used
|0|PA0|Joystick Port 1 Pin 1|Up|not used
Joystick direction Bit=0 when pushed in that direction
Paddletrigger Bit=0 when pressed
At line 28 added 4 lines
previous: [SKCTL],[SKSTAT|SKCTL] of POKEY
next: [PORTB]