Caple C871i Manual do Utilizador Página 222

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 572
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 221
Apple II Computer Info
#############################################################################
### FILE : joystick.asm
#############################################################################
### Created : Sunday, January 14, 1996 Modified: Sunday, January 14, 1996
### File Type: "TEXT" File Creator: "LMAN"
### File Size: 2466 bytes 2 KB
#############################################################################
Path:
blue.weeg.uiowa.edu!news.uiowa.edu!hobbes.physics.uiowa.edu!newsfeed.ksu.ksu.edu!m
oe.ksu.ksu.edu!vixen.cso.uiuc.edu!uwm.edu!cs.utexas.edu!usc!nic-
nac.CSU.net!csulb.edu!paris.ics.uci.edu!clyde.ics.uci.edu!jlee
From: [email protected] (Orion Pax)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Joystick Code... Help Please!
Date: 26 Nov 1994 06:32:24 GMT
Organization: Creative 'Ware @ University of California, Irvine
Lines: 59
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: clyde.ics.uci.edu
X-Newsreader: TIN [version 1.2 PL2]
Shawn Platkus ([email protected]) wrote:
: I'm in need of some code to read the joystick values from 65816 assembly.
Here's the code I copied from Out of This World and used in Star Command GS:
readJoystick START
*
* Reads the values for the joystick paddles && returns values in the x/y regs
* 7/93 version 4.0.2
*
* Code from Out of This World by Bill Heineman
*
php ; save states of cpu
phd
pea $100 ; put maxReadBound on stack (values max at $FF)
tsc ; point dp to maxReadBound
tcd
sei ; interrupts off
lda >$C070 ; reset joystick i/o timer
ldx #0 ; zero counters
txy
readLup anop
lda >$C064 ; read x/y axises
and #$8080
beq quit ; if neither valid, quit
checkY anop
asl a
bcc ySpinWheels ; if invalid y, do dummy code for dummy cycle time
iny ; else increment y counter
bra checkX
ySpinWheels anop ; dummy code of similiar cycle time
nop
nop
nop
Apple II Computer Technical Information : Apple II Family Hardware Info
ftp://ground.ecn.uiowa.edu/2/apple2/miscinfo/hardware : May 2001 : 222 of 572
Vista de página 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 571 572

Comentários a estes Manuais

Sem comentários