Nvis 5586A
Nvis Technologies Pvt. Ltd.
139
Program 24:
Find whether a no is positive or negative and display it on LCD.
Address
Opcode
Mnemonic
Comments
0400
B8 FF FF
MOV AX, FFFF
(DATA)
COPY FFFF H IN AX
0403
D1 E0
SHL AX, 01
SHIFT LEFT 1-BIT OF AX THROUGH
CARRY
0405
73 49
JNC 450
JUMP TO MEMORY LOCATION 450 H IF
NO CARRY
0407
B3 C0
MOV BL,C0
COPY C0 IN BL
0409
9A 78 F0 00 F0
CALL F000:F078
CLEAR THE SECOND LINE
040E
B0 C2
MOV AL,C2
PARAMETER OF SUBPROGRAM STORED
IN AL. B)-B5 IS WRITTEN INTO LCD
ADDRESS COUNTER, INSTRUCTED THE
WORD ON THE MOST LEFT SIDE. B6 AS 1
REPRESENTS THE SECOND LINE.B7 AS 1
REPRESENTS
THE
SET
D.D.
RAM
ADDRESS INSTRUCTION.
0410
9A 44 F0 00 F0
CALL F000:F044
COMMANDS IN AL ARE WRITTEN INTO
LCD
0415
0E
PUSH CS
0416
1F
POP DS
SEGMENT VALUE SET FOR TABLE
CHECKING
0417
BE 00 06
MOV SI,600
STARTING
ADDRESS
OF
TABLE
CHECKING IS STORED INTO SI
041A
B9 0A 00
MOV CX,0A
STORE TABLE CHECKING LENGTH IN
CX
041D
FC
CLD
CLEAR DIRECTIONAL FLAG
041E
AC
LODSB
READ IN DATA FROM TABLE CHECKING
SECTION UNTIL AL.
041F
9A 48 F0 00 F0
CALL F000:F048
INPUT AL DATA INTO LCD MODULAR.
0424
E2 F7
LOOP 041D
CX NOT EQUAL TO 0 WOULD CONTINUE
EXECUTION LOOP
0426
F4
HLT
0450
B3 C0
MOV BL,C0
COPY C0 IN BL
0452
9A 78 F0 00 F0
CALL F000:F078
CLEAR THE SECOND LINE
0457
B0 C2
MOV AL,C2
PARAMETER OF SUBPROGRAM STORED
IN AL. B)-B5 IS WRITTEN INTO LCD
ADDRESS COUNTER, INSTRUCTED THE
WORD ON THE MOST LEFT SIDE. B6 AS 1
REPRESENTS THE SECOND LINE.B7 AS 1
REPRESENTS
THE
SET
D.D.
RAM
ADDRESS INSTRUCTION.
0459
9A 44 F0 00 F0
CALL F000:F044
COMMANDS IN AL ARE WRITTEN INTO
LCD
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...