Caple C871i Bedienungsanleitung Seite 233

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 572
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 232
Apple II Computer Info
#############################################################################
### FILE : joystick.read
#############################################################################
### Created : Sunday, January 14, 1996 Modified: Sunday, January 14, 1996
### File Type: "TEXT" File Creator: "LMAN"
### File Size: 4001 bytes 3 KB
#############################################################################
Path: blue.weeg.uiowa.edu!news.uiowa.edu!uunet!usc!elroy.jpl.nasa.gov!netline-
fddi.jpl.nasa.gov!nntp-server.caltech.edu!nathan
From: [email protected] (Nathan Mates)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Joystick Code... Help Please!
Date: 25 Nov 1994 06:39:52 GMT
Organization: California Institute of Technology, Pasadena
Lines: 82
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: accord.cco.caltech.edu
In article <[email protected]>, Shawn Platkus <[email protected]> wrote:
>I'm in need of some code to read the joystick values from 65816 assembly.
This was sent to me a while back.
Nathan
--- Begin included file
From [email protected] Sat Mar 27 21:47:15 1993
X-Mailer: America Online Mailer
Subject: joystick routine
Path: Assembly (6502/65816)/Asm65816 Code Wanted...
Subj: My code... 92-10-21 22:48:08 EST
>From: AFL GaryJ
Posted on: America Online
Here's the code I used. There are a few things to keep in mind with this
code: Because I'm using wide registers, the X and Y values of the joystick
may come back with values greater than $FF. The size of the number returned
depends (in part) upon the speed of the machine that the code is running on.
Accellerated IIGS's will return greater values than stock 2.8 MHz machines.
Having the user do a joystick calibration at the start of the program would
be one way of solving this problem.
Also, because the maximum joystick value returned is not "clipped off" (i.e.
maxed out at $FF), the X and Y maximum returned values may differ, depending
on the model and wear of your joystick.
And one last thing: The timing cycles of my routine are greater than the sum
of the cycles required to execute the standard paddle reading routine built
into the II+ ROM. But, since my routine will execute at speeds greater than
1 MHz, the net difference results in a faster joystick read. That, coupled
with the fact that both paddles are read at the same time, makes this routine
Apple II Computer Technical Information : Apple II Family Hardware Info
ftp://ground.ecn.uiowa.edu/2/apple2/miscinfo/hardware : May 2001 : 233 of 572
Seitenansicht 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 571 572

Kommentare zu diesen Handbüchern

Keine Kommentare