mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Removed the readjoy module - it was obsolete
git-svn-id: svn://svn.cc65.org/cc65/trunk@2332 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
09c208ee67
commit
d697ff8030
@ -70,7 +70,6 @@ OBJS = _scrsize.o \
|
|||||||
ostype.o \
|
ostype.o \
|
||||||
randomize.o \
|
randomize.o \
|
||||||
read.o \
|
read.o \
|
||||||
readjoy.o \
|
|
||||||
remove.o \
|
remove.o \
|
||||||
revers.o \
|
revers.o \
|
||||||
rs232.o \
|
rs232.o \
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
;
|
|
||||||
; Christian Groessler
|
|
||||||
;
|
|
||||||
; unsigned readjoy (unsigned char joy);
|
|
||||||
;
|
|
||||||
|
|
||||||
.export _readjoy
|
|
||||||
|
|
||||||
.include "atari.inc"
|
|
||||||
|
|
||||||
|
|
||||||
.proc _readjoy
|
|
||||||
|
|
||||||
and #3 ; fix joystick number
|
|
||||||
tax ; Joystick number (0-3) into X
|
|
||||||
|
|
||||||
; Read joystick
|
|
||||||
|
|
||||||
lda STRIG0,x ; get button
|
|
||||||
asl a
|
|
||||||
asl a
|
|
||||||
asl a
|
|
||||||
asl a
|
|
||||||
ora STICK0,x ; add position information
|
|
||||||
eor #$1F
|
|
||||||
ldx #0 ; fix X
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user