Nvis 5586A
Nvis Technologies Pvt. Ltd.
79
Example 2:
Clear second line, display DX value, and DX values are altered by key-in to be display
at LCD.
Address
Opcode
Mnemonic
Comment
400
BA 34 12
MOV
DX,1234
403
B0 01
MOV
AL, 01
CLEAR DISPLAY COMMANDS TO BE
STORED IN AL
0405
B3 C0
MOV
BL,C0
WRITE THE SET LCD ADDRESS COUNTER
COMMANDS INTO BL.CO=11000000
REPRESENT THE POSITION OF SECOND
LINE
0407
9A 78 F0 00 F0
CALL
F000:F078
CLEAR SECOND LINE
040C
BB C2 00
MOV
BX, 00C2
INPUT PARAMETER OF SUBPROGRAM IS
STORED IN BX.
B0-B5 set the word at the most left side to display position, B6=1 represents the second line,
B7 can be any number. After entering subprogram, it is automatically set to 1 (B=Bit).
BH as 00 instructs the cursor and the first word location, first time entering subprogram is set
to 0, the rest will automatically add or subtract.
Address
Opcode
Mnemonic
Comment
0:040F
9A 68 F0 00 F0
CALL
F000:F068
INPUT 4 BITS.
0:0414
3C 0D
CMP
AL, 0D
WHETHER IT IS ENTER KEY
0:0416
75 F5
JNZ
040A
NON-ENTER KEY WILL JUMP
BACK
TO
INPUT
SUBPROGRAM; OTHERWISE IT
WILL EXECUTE THE NEXT
COMMAND.
0418
F4
HLT
Program will clear the second line first, but display 4 bits (DX value) on the second line and
wait for input.
After the key-in numbers, the display value can be altered and stored in DX. Press Enter key
would stop the program.
Summary of Contents for 5586A
Page 2: ...Nvis 5586A Nvis Technologies Pvt Ltd 2...
Page 23: ...Nvis 5586A Nvis Technologies Pvt Ltd 23 Memory Read Timing in Maximum Mode...
Page 30: ...Nvis 5586A Nvis Technologies Pvt Ltd 30...
Page 48: ...Nvis 5586A Nvis Technologies Pvt Ltd 48 Diagram of module RESET power Instruction Set Note...