userport joystick code

Basic and Machine Language

Moderator: Moderators

Post Reply
vicassembly
Vic 20 Devotee
Posts: 253
Joined: Fri Mar 19, 2010 1:40 pm

userport joystick code

Post by vicassembly »

I did a brief scan for userport joystick code. Does anyone have a link or example of a basic routine or a documented ML routine?

I dug through the hattrick program and seem to have found the following. Any other help would be appreciated.


read_pl2_userport:
ldx #0
lda #$80
sta $9112
sta $9110
lda $9110
stx $9112
eor #$ff
and #$1f
rts
User avatar
majikeyric
Vic 20 Afficionado
Posts: 352
Joined: Fri Oct 24, 2014 2:08 pm
Website: http://majikeyric.free.fr
Location: France

Re: userport joystick code

Post by majikeyric »

vicassembly
Vic 20 Devotee
Posts: 253
Joined: Fri Mar 19, 2010 1:40 pm

Re: userport joystick code

Post by vicassembly »

Thanks.

For documentation purposes, I found the following links to Compute! articles.

https://www.atarimagazines.com/compute/ ... YSTICK.php

https://archive.org/details/1983-03-com ... /page/n141
Post Reply