# unit joystick

### Joystick memory registers (Atari XE/XL)

author: Tomasz Biela (Tebe)

## Constants:

name: | value: | description:
--- | --- | ---
joy_none | 15 |
joy_up | 14 |
joy_down | 13 |
joy_left | 11 |
joy_left_up | 10 |
joy_left_down | 9 |
joy_right | 7 |
joy_right_up | 6 |
joy_right_down | 5 |

## Register Variables:

name: | address: | type: | description:
--- | --- | --- | ---
joy_1 | $278 | byte | The value of joystick 0
joy_2 | $279 | byte | The value of joystick 1
stick | $278 | array [0..1] of byte |
stick0 | $278 | byte |
stick1 | $279 | byte |
strig | $284 | array [0..1] of byte |
strig0 | $284 | byte | Stick trigger 0
strig1 | $285 | byte | Stick trigger 1
paddl | $270 | array [0..7] of byte |
paddl0 | $270 | byte | The value of paddle 0
paddl1 | $271 | byte | The value of paddle 1
paddl2 | $272 | byte | The value of paddle 2
paddl3 | $273 | byte | The value of paddle 3
paddl4 | $274 | byte | The value of paddle 4
paddl5 | $275 | byte | The value of paddle 5
paddl6 | $276 | byte | The value of paddle 6
paddl7 | $277 | byte | The value of paddle 7
ptrig | $27c | array [0..7] of byte |
ptrig0 | $27c | byte | Paddle trigger 0
ptrig1 | $27d | byte | Paddle trigger 1
ptrig2 | $27e | byte | Paddle trigger 2
ptrig3 | $27f | byte | Paddle trigger 3
ptrig4 | $280 | byte | Paddle trigger 4
ptrig5 | $281 | byte | Paddle trigger 5
ptrig6 | $282 | byte | Paddle trigger 6
ptrig7 | $283 | byte | Paddle trigger 7