mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Renamed the DEINSTALL vector to UNINSTALL.
Added a comment regarding usage of the driver when it is linked statically to the application. git-svn-id: svn://svn.cc65.org/cc65/trunk@1952 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c9f3497367
commit
ee155a8553
@ -1,5 +1,6 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the Atari
|
; Standard joystick driver for the Atari. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-21
|
; Ullrich von Bassewitz, 2002-12-21
|
||||||
; Using the readjoy code from Christian Groessler
|
; Using the readjoy code from Christian Groessler
|
||||||
@ -38,7 +39,7 @@
|
|||||||
; Jump table.
|
; Jump table.
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word DEINSTALL
|
.word UNINSTALL
|
||||||
.word COUNT
|
.word COUNT
|
||||||
.word READJOY
|
.word READJOY
|
||||||
|
|
||||||
@ -68,11 +69,11 @@ INSTALL:
|
|||||||
; rts ; Run into DEINSTALL instead
|
; rts ; Run into DEINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the C128
|
; Standard joystick driver for the C128. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
|
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-21
|
; Ullrich von Bassewitz, 2002-12-21
|
||||||
;
|
;
|
||||||
@ -8,7 +10,7 @@
|
|||||||
|
|
||||||
.include "joy-kernel.inc"
|
.include "joy-kernel.inc"
|
||||||
.include "joy-error.inc"
|
.include "joy-error.inc"
|
||||||
.include "c128.inc"
|
.include "c128.inc"
|
||||||
|
|
||||||
.macpack generic
|
.macpack generic
|
||||||
|
|
||||||
@ -37,7 +39,7 @@
|
|||||||
; Jump table.
|
; Jump table.
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word DEINSTALL
|
.word UNINSTALL
|
||||||
.word COUNT
|
.word COUNT
|
||||||
.word READ
|
.word READ
|
||||||
|
|
||||||
@ -67,11 +69,11 @@ INSTALL:
|
|||||||
; rts ; Run into DEINSTALL instead
|
; rts ; Run into DEINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the Plus/4
|
; Standard joystick driver for the C16. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-21
|
; Ullrich von Bassewitz, 2002-12-21
|
||||||
;
|
;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the C64
|
; Standard joystick driver for the C64. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-20
|
; Ullrich von Bassewitz, 2002-12-20
|
||||||
;
|
;
|
||||||
@ -37,7 +38,7 @@
|
|||||||
; Jump table.
|
; Jump table.
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word DEINSTALL
|
.word UNINSTALL
|
||||||
.word COUNT
|
.word COUNT
|
||||||
.word READ
|
.word READ
|
||||||
|
|
||||||
@ -67,11 +68,11 @@ INSTALL:
|
|||||||
; rts ; Run into DEINSTALL instead
|
; rts ; Run into DEINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
@ -89,18 +90,18 @@ COUNT:
|
|||||||
;
|
;
|
||||||
|
|
||||||
READ: php
|
READ: php
|
||||||
sei ; disable IRQ
|
sei ; disable IRQ
|
||||||
lda $01
|
lda $01
|
||||||
pha
|
pha
|
||||||
lda #$35
|
lda #$35
|
||||||
sta $01 ; enable I/O
|
sta $01 ; enable I/O
|
||||||
|
|
||||||
tax ; Joystick number into X
|
tax ; Joystick number into X
|
||||||
bne joy2
|
bne joy2
|
||||||
|
|
||||||
; Read joystick 1
|
; Read joystick 1
|
||||||
|
|
||||||
joy1:
|
joy1:
|
||||||
lda #$7F
|
lda #$7F
|
||||||
sta cia1base
|
sta cia1base
|
||||||
lda cia1base+1
|
lda cia1base+1
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the Plus/4
|
; Standard joystick driver for the Plus/4. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-21
|
; Ullrich von Bassewitz, 2002-12-21
|
||||||
;
|
;
|
||||||
@ -37,12 +38,12 @@
|
|||||||
; Jump table.
|
; Jump table.
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word DEINSTALL
|
.word UNINSTALL
|
||||||
.word COUNT
|
.word COUNT
|
||||||
.word READ
|
.word READ
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
|
||||||
JOY_COUNT = 2 ; Number of joysticks we support
|
JOY_COUNT = 2 ; Number of joysticks we support
|
||||||
|
|
||||||
@ -67,11 +68,11 @@ INSTALL:
|
|||||||
; rts ; Run into DEINSTALL instead
|
; rts ; Run into DEINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
;
|
;
|
||||||
; Standard joystick driver for the VIC20
|
; Standard joystick driver for the VIC20. May be used multiple times when linked
|
||||||
|
; to the statically application.
|
||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2002-12-20
|
; Ullrich von Bassewitz, 2002-12-20
|
||||||
; Using code from Steve Schmidtke
|
; Using code from Steve Schmidtke
|
||||||
@ -38,7 +39,7 @@
|
|||||||
; Jump table.
|
; Jump table.
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word DEINSTALL
|
.word UNINSTALL
|
||||||
.word COUNT
|
.word COUNT
|
||||||
.word READ
|
.word READ
|
||||||
|
|
||||||
@ -68,11 +69,11 @@ INSTALL:
|
|||||||
; rts ; Run into DEINSTALL instead
|
; rts ; Run into DEINSTALL instead
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user