home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
canada-remote-systems
/
geos
/
drivers
/
shelldc2.sda
/
PCHANGC
(
.txt
)
< prev
next >
Wrap
GEOS ConVerT
|
2019-04-13
|
2KB
|
68 lines
PChanGC
PRG formatted GEOS file V1.0
Star NX-10
OP V2.0 or higherHELL
SHELLHEADER
BLASTER'S CONVERTER V2.5
PETASCII
PCHANGC
Write Image V2.0
geoWrite V2.1
.Source code for interface part of Shell Printer Driver for geoPrint Cable.
.include ShellZero
@nPrimary
@nSeconda
ry =$60+5
@InitForI
O ==$c25c
@DoneWith
IO ==$c25f
@SetDevic
e ==$c2b0
.psect
@XfaceAdd
ress:
@rOpenCha
nnel:
lda #4
jsr SetDevice ;Configure hardware for I/O.
jsr InitForIO
lda #$c5 ;Set handshake high before making output.
sta $dd00
lda #$3f ;Now set handshake for output.
sta $dd02
ldy #$ff ;Set data port for output.
sty $dd03
lda $dd0d ;Clear handshake received flag.
iny ;Change y to zero and output it.
sty $dd01
iny ;Change y to $01
sty $dd00
lda #$05
sta $dd00
10$ dex
bne 10$
lda $dd0d
and #$10
bne 90$ ;Branch with x=0 if handshake complete.
bne 10$
ldx #$80 ;Set error if handshake never detected.
90$ stx STATUS
@rSendByt
sta $dd01
lda #$01
sta $dd00
lda #$05
sta $dd00
10$ lda $dd0d
and #$10
beq 10$
@rCloseCh
annel:
jmp DoneWithIO
ProgEnd:
HGEOS geoPrint Cable module
Page: PAGE
Printed on: DATE At: TIME File: PChanGC
----------------------------------------------------------------------------------------------