Caple C871i Bedienungsanleitung Seite 471

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 572
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 470
Apple II Computer Info
WRITE: A contains byte to write
READ: Byte read is returned in A
STATUS: A=0 for 'are you ready for output', A=1 for 'do you have input
ready'. In both cases, the SSC will return with carry set if the
answer to the question is 'yes'.
You could go down to the hardware level if you want. Use the serial
firmware to initialize the card (baud rate, etc.)
To transmit:
LDX #$s0 ; s is slot number, e.g. $20 for slot 2
LDA $C089,X ; read status register
AND #$10 ; test Transmitter Empty flag
BEQ IsBusy
LDA Byte_to_send ; get the byte you want to transmit
STA $C088,X ; stick it in the transmit data register
To receive:
LDX #$s0 ; s is slot number, as above
LDA $C089,X ; read status register
AND #$08 ; test Receive Full flag
BEQ NoByte
LDA $C088,X ; get the received byte
STA Byte_received
> I also seem to be unclear in regard to initializing the devices (can
> both the printer card and the SSC be active at the the same time?
Using the BASIC interface, you can only have one input device and one
output device. For example, in Applesoft BASIC, you can do a PR#1 to
output to slot 1, and an IN#2 to input from slot 2.
If you use the PASCAL interface or talk to the hardware directly, you
can do simultaneous I/O to as many slots as you like.
> The printer card is an Apple Dumpling, and is equally spare in
> details. All it gives is a sample 12 line driver which I can't seem
> to get to work.
Sorry, I know nothing about this card. Check the above ID bytes to
see if it supports the Pascal interface. If it does, you're home
free. If it doesn't,... I've given you half the solution, anyway.
--
David Empson
###################################################### E N D O F F I L E
### ssc.example
###################################################### 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 : 471 of 572
Seitenansicht 470
1 2 ... 466 467 468 469 470 471 472 473 474 475 476 ... 571 572

Kommentare zu diesen Handbüchern

Keine Kommentare