(System’s CR? Control)
Input Parameter
: S e t t h e c h a r a c t e r c o d e t o d i s p l a y i n t o
A - r e g i s t e r ( A S C I I c o d e ) .
2nd Byte I
Functions
Moves the cursor
u p
one line.
B (42H)
I
Moves the cursor down one line.
I
O u t p u t P a r a m e t e r N o t e x i s t
M o v e s t h e c u r s o r r i g h t o n e c h a r a c t e r .
D (44H)
I
M o v e s t h e c u r s o r l e f t o n e c h a r a c t e r .
I
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 CRT
E (45H)
I
C l e a r a l l t h e s c r e e n .
F (46H)
I I g n o r e t h e c h a r a c t e r s o v e r 8 0 c o l u m n s / l i n e .
This is the program to make s a m e f u n c t i o n a s t h e e x t e n d
CRT.
B y s e t t i n g a c h a r a c t e r c o d e t o d i s p l a y i n t o A - r e g i s t e r a n d
c a l l i n g t h i s p r o g r a m , y o u c a n d i s p l a y c h a r a c t e r o n t h e C R T .
I n c a s e o f u s i n g t h i s p r o g r a m , d i s p l a y s p e e d o f s e r i a l
transferring rate is about 19200 BPS.
D i r e c t a c c e s s i s
necessary to V-RAM, i n c a s e y o u r e q u i r e f a s t d i s p l a y s p e e d .
See < Table 23 : Video-RAM I/O Map > about the V-RAM address.
Moreover, i n c a s e o f d i r e c t a c c e s s t o V - R A M , i t i s n e c e s s a r y
t o i n i t i a l i z e t h e a d d r e s s p o i n t e r o f V - R A M .
I n t h i s c a s e , c a l l ‘ C R T I N I T
So, V-RAM address pointer
i s i n i t i a l i z e d , a n d t h e s c r e e n i s c l e a r e d .
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
C R T c o n t r o l c o d e s .
I
(47H)
D i s p l a y t h o s e c h a r a c t e r s i n t h e n e x t l i n e ,
w h i c h e x c e e d s 80 columns/line.
( I n i t i a l S t a t e )
H (48H)
M o v e t h e c u r s o r t o f i r s t c o l u m n o f t h e f i r s t
l i n e .
a .
(4AH)
K
(4BH)
E r a s e s c r e e n ( A f t e r C u r s o r ) .
E r a s e l i n e ( A f t e r C u r s o r ) .
M
(4DH)
W h e n c u r s o r a t t h e l a s t l i n e , i f t h i s
p r o g r a m a c c e p t L F c o d e a t t h i s time, c u r s o r
a u t o m a t i c a l l y g o e s t o t h e f i r s t l i n e .
C l e a r s c r e e n , a n d s c r e e n d o e s
not
s c r o l l up
e v e n i f a f t e r a c c e p t i n g L F c o d e .
BEL (07H) : Beep the alarm.
BS (08H)
M o v e t h e c u r s o r o n e c h a r a c t e r t o t h e l e f t s i d e .
T h i s c o n t r o l c o d e i s i n v a l i d i f t h e c u r s o r i s o n
t h e f i r s t p o s i t i o n ( e x t r e m e l e f t ) o f t o p o f t h e
l i n e .
N (4EH)
S c r e e n s c r o l l u p b y L F c o d e . ( I n i t i a l S t a t e )
I
0 (4FH)
S c r e e n s c r o l l u p .
Cursor does not move.
I
S c r e e n s c r o l l d o w n .
Cursor does not move.
I
HT
M o v e t h e c u r s o r 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 .
R (52H)
C u r s o r b e i n g n o t d i s p l a y e d ,
S ( 5 3 H )
C u r s o r b e i n g d i s p l a y e d . ( I n i t i a l S t a t e )
LF (OAH)
O p e r a t e t h e l i n e f e e d .
FF (OCH)
C l e a r a l l t h e s c r e e n a n d m o v e t h e c u r s o r t o f i r s t
c o l u m n o f t h e f i r s t l i n e .
U
D i s p l a y t e s t .
I n d i c a t e d
a l l t h e s c r e e n .
Y (59H)
C u r s o r a d d r e s s i n g .
(Note 4)
,
P r i n t o u t t h e c o n t e n t s o f t h e s c r e e n . ( N o t e 5 )
CR (ODH)
M o v e t h e c u r s o r t o
o f t h e l i n e .
S O ( O E H ) S e t t h e “ S h i f t - O u t ” m o d e .
( N o t e 1 )
(SEH)
P r i n t o u t t h e c o n t e n t s o f t h e f u l l l i n e
w h e r e t h e c u r s o r b e i n g p l a c e d .
( N o t e
I
S I ( O F H ) S e t t h e “ S h i f t - I n ” m o d e .
( N o t e 2 )
DC3 (13H)
S e t 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 .
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 )
.
T a b l e 1 7
ESC Sequence Disposition List
E S C
S e t
s e q u e n c e m o d e ,
d e t a i l r e f e r t o
‘ E S C ’ S e q u e n c e F u n c t i o n s C o d e L i s t s e e
n e x t p a g e .
( N o t e 3 )
DEL (7FH) Invalid