home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
cpm
/
alphatronic
/
CGRAPH.ZIP
/
C-ITOH.DOC
< prev
next >
Wrap
Text File
|
1998-07-30
|
1KB
|
83 lines
Several persons have asked about interfacing the Graphics
Software to the C.Itoh printer. The following is recommended for the
C.Itoh Prowriter Mod 1550:
Bit image graphics using 8 head wires is supported by the C.Itoh.
The graphics mode is entered by an escape sequence which includes the
number of sequential graphic characters ...
<ESC> 'Snnnn'
Where nnnn is the ASCII representation of the number of
characters, ie: if 200 characters are to be transmitted then the
sequence is:
<ESC> 'S0200'
The following code is UNTESTED and should be used as a starting
point for the C.Itoh interface.
Substitute for XFRPLT
;
ESC-GR: DEFB 27,'S0539' ; 0539 = 7*59 + 126
; 7*LINES + FILL1
XFRPLT:
IF PAS.Z
ENTRY XFRPLT
PUSH IX
PUSH IY
ENDIF
;
LD IX,(IMGPTR)
LD C,LINES
XFR1:
;
PUSH BC
LD DE,ESC-GR
LD C,5
CALL BDOS
;
LD B,FILL1
XFR10:
LD A,0
CALL PRNTR
DJNZ XFR10
;
LD BC,LENGTH
XFR2:
LD H,(IX+0)
CALL ROTL
CALL PRNTR
INC IX
DEC BC
LD A,C
OR B
JR NZ,XFR2
;
POP BC
DEC C
JR NZ,XFR1
;
IF PAS.Z
POP IY
POP IX
ENDIF
;
RET
;
; Reverse bit order for printer
ROTL:
PUSH DE
PUSH BC
XOR A
LD B,8
ROTL2:
SRL H
RLA A
DJNZ ROTL2
POP BC
POP DE
RET
;