II-52
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (LCD Driver)
"DSCG" converts the address of the steps for writing into
segment data memory the characters in the data table that
correspond to the values of registers A and B (which have
been set by the parent routine). Then it jumps to this ad-
dress with the JPBA instruction.
The PSET instruction is inserted immediately before the first
half of the JPBA instruction, so that the table look-up is on
the same page as the parent routine, and the data table part
is on a different page.
Table look-up
DSCG:
ADD
A,A
;
ADC
B,B
;
PSET
DSCGTB
;
JPBA
;
Set to jump to A and B
Jump to table and form subroutine
The data table begins at the start address of the page in
which it is placed. The segment memory can be written to
in such a way that numerals "0" to "9" and letters "A" to "F"
and " " (single-figure space) can be displayed. A character
can be generated by combining LBPX instruction and RETD
instruction.
Further, expansion from " " (single-figure space) can be done
according to the rule below for setting the values of the A
and B registers.
Data table
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......