Caple C871i Manual de usuario Pagina 234

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 572
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 233
Apple II Computer Info
much faster than the standard ROM call.
I haven't looked at this code for a long time, and I'm sure there are ways to
improve it. Anyone, feel free to post possible enhancements!
;
; Read the joystick controls:
PRead anop
php
sei
lda >$00C070 ; trigger paddles (6)
ldy #0 ; (3)
ldx #3 ; (3)
PRtime dex ; (2)
bne PRtime ; timing loop for 1st count (2,3)
PRead2 lda >$00C064 ; check paddle 0,1 status (6)
and #$8080 ; check high bits of each (3)
beq PRXit ; exit if both are done (2)
cmp #$0080 ; see if X only is active (3)
bmi PRBoth ; > no, do both (2,3)
beq PRXOnly ; > X axis only (2,3)
PRYonly iny ; (2)
bpl PRYmore ; (just for timing) (3)
bmi PRXit ; (prevent endless loop)
PRYmore bra PRead2 ; go back for more (3)
PRXOnly inx ; (2)
bmi PRXit ; (prevent endless loop) (2)
bra PRead2 ; go back for more (3)
PRBoth inx ; (2)
iny ; (2)
nop ; match timing of others (2)
bpl PRead2 ; (3)
PRXit plp
rts ; x = pdl(0), y = pdl(1)
;-------------------------------
Gary
--
* Nathan Mates http://www.ugcs.caltech.edu/~nathan/ *
* Ftp humor archiver: ftp to cco.caltech.edu, look in pub/humor *
* "Always listen to experts. They'll tell what can't be done, and *
* why. Then do it." -- Robert A. Heinlein, Lazarus Long *
###################################################### E N D O F F I L E
### joystick.read
###################################################### E N D O F F I L E
Apple II Computer Technical Information : Apple II Family Hardware Info
ftp://ground.ecn.uiowa.edu/2/apple2/miscinfo/hardware : May 2001 : 234 of 572
Vista de pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 571 572

Comentarios a estos manuales

Sin comentarios