Table 18 C u r s o r A d d r e s s i n g C o d e ( 2 )
(System’s Printer Control)
I n p u t
P a r a m e t e r
S e t t h e c h a r a c t e r c o d e t o p r i n t i n t o
A - r e g i s t e r ( A S C I I c o d e ) .
O u t p u t P a r a m e t e r N o t e x i s t
R e g i s t e r
A l l r e g i s t e r s a r e r e s e r v e d .
Calling Method
CALL PRINT
P r i n t e r i s c o n t r o l l e d b y t h e s o f t w a r e .
T h e u s e r
c a n
c o n t r o l t h e p r i n t e r a s w e l l a s p r i n t i n g , o n l y
w h e n t h e u s e r s e t s t h e p r i n t e r c o d e i n t h e a c c u m u l a t o r
( A - r e g i s t e r ) a n d c a l l s t h i s p r o g r a m .
t h e t i m e o f c a l l i n g
t h i s p r o g r a m a l l r e g i s t e r s g e t r e s e r v e d : -
means at the
t i m e o f p r o g r a m c a l l i n g , t h e i n n e r
o f a l l r e g i s t e r s
a l r e a d y b e i n g r e s e r v e d a n d t h e r e f o r e n o t d e s t r o y e d .
T h e p r o g r a m o p e r a t e s b u f f e r i n g o f 8 0 c h a r a c t e r s , w h e n t h e
c h a r a c t e r s a r e o v e r 8 0 o r t h e d e v i c e r e c e i v e s t h e C R < O D ( H ) >
c o d e , t h e p r i n t e r s t a r t s p r i n t i n g b e c a u s e t h e p r i n t e r c a n n o t
p r i n t e a c h a n d e v e r y c h a r a c t e r .
B e l o w w e p r o v i d e d e t a i l i n f o r m a t i o n p e r t a i n i n g t o
s y s t e m ’ s
( t h e r m a l ) p r i n t e r c o n t r o l c o d e s .
B S ( 0 8 H )
C a n c e l t h e l a s t c h a r a c t e r
c o d e .
T h i s c o d e i s i n v a l i d i f t h e p o s i t i o n i s t h e
t o p o f t h e l i n e w i t h o u t a n y c h a r a c t e r
b e f o r e
i t .
H T
M o v e t h e p r i n t e r ’ s h e a d t o t h e T A B p o s i t i o n o f
e v e r y 8 c h a r a c t e r s .
L F ( O A H ) I n v a l i d
FF (OCH) M o v e t h e p r i n t e r ’ s h e a d t o t h e t o p o f t h e n e x t
l
CR (ODH)
P r i n t o n e l i n e o f b u f f e r c o n t e n t , a n d c a r r i a g e
r e t u r n w i t h l i n e f e e d ,
SO (OEH) S e t t h e S h i f t - O u t m o d e .
( N o t e 1 )
S I ( O F H ) S e t t h e S h i f t - I n m o d e .
(Note 2)
DC3 (13H) S e t t h e m o d e
c h a r a c t e r s .
DC4 (14H)
C a n c e l t h e m o d e s e m i - g r a p h i c c h a r a c t e r s .
( I n i t i a l S t a t e )