Caple C871i Instrukcja Użytkownika Strona 230

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 572
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 229
Apple II Computer Info
asm {
sep #0x30
lda n
and #0x03
tax
lda 0xE0C064,x
and #0x80
sta paddle_flag
rep #0x30
}
return (paddle_flag != 0);
}
Boolean read_button(Word n) {
/* Read the state of the specified paddle/joystick button. The return
value will be TRUE if the button is on, FALSE if the button
is off. This routine supports buttons 0, 1, 2, and 3. Button
3 is only available on the IIgs, and only on the internal 16-pin
game port.
Note: holding down the Apple key will make button 0 appear to
be on; similarly, the Option key will make button 1 appear to
be on. */
Byte button_state;
asm {
sep #0x30
lda n
inc a
and #0x03
tax
lda 0xE0C060,x
and #0x80
sta button_state
rep #0x30
}
return (button_state != 0);
}
--
David Empson
Snail mail: P.O. Box 27-103, Wellington, New Zealand
###################################################### E N D O F F I L E
### joystick.orca
###################################################### 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 : 230 of 572
Przeglądanie stron 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 571 572

Komentarze do niniejszej Instrukcji

Brak uwag