IR WR IR RD DR_WR EQU OFFCIH EQU OFFC3H : Define LCD status read port address EQU OFFCSH : Define LCD data write port : Define LCD command write port address CODE SEGMENT ASSUME CS:CODE, DS:CODE ORG Oh Setting CS Ds ;Code segment-Data Segment : AH-1 clear LCD Display : Output control code to LCD MOV AH.84H : Setup LCD DDRAM address-04h :Output control code to LCD : AH O ASCH ; output character to LCD at 04h START: MOV AX.CS MOV DS,AX MOV AH,1 CALL IRWR CALL IRWR MOV AH,O CALL OUTL. MOV AH,H CALL OUTL MOV AH," CALL OUTL MOV AH, CALL OUTL HLT ;Output command : Wait until LCD not BUSY MOV DX,IR_WR ; Enable LCD command write port address Character cony to Al IRWR: CALL BUSY MOY AL AH

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
IR WR
EQU OFFCIH
IR RD
DR_WR
EQU OFFC3H
EQU OFFCSH
Define LCD command write port address
; Define LCD stattus read port address
: Define LCD data write port
CODE
SEGMENT
ASSUME CS:COODE, DS.CODE
ORG Oh
Setting CS-Ds
;Code segment-Data Segment
: AH-1 clear LCD Display
:Output control code to LCD
; Setup LCD DDRAM address-04h
:Output control code to LCD
: AH O ASCH
; output character to LCD at 04h
START:
MOV AX.CS
MOV DS,AX
MOV AH,1
CALL IRWR
MOV AH.84H
CALL IRWR
MOV AH,O
CALL OUTL.
MOV AH.H
CALL OUTL
MOV AH,-
CALL OUTL
MOV AH,
CALL OUTL
HLT
;Output command
IRWR:
CALL BUSY
: Wait until LCD not BUSY
MOV DX,IR_WR ; Enable LCD command write port address
MOV AL, AH
OUT DX,AL
RET
;Character copy to AL
; write command
; Output data character
CALL BUSY
MOV AL,AH
; Wait until LCD not BUSY
OUTL:
MOV DX,DR_WR; Enable LCD data write port address
OUT DX,AL
:Output data
RET
; read LCD BUSY Status
BUSY:
BUSYI:
MOV DX,IR_RD ; Enable LCD status read port address
IN AL.DX
AND AL,80H
JNZ BUSYI
: Read LCD status
; If BUSY, jump to BUSY1
; If not busy, retum to upper routine
RET
CODE
ENDS
END START
Transcribed Image Text:IR WR EQU OFFCIH IR RD DR_WR EQU OFFC3H EQU OFFCSH Define LCD command write port address ; Define LCD stattus read port address : Define LCD data write port CODE SEGMENT ASSUME CS:COODE, DS.CODE ORG Oh Setting CS-Ds ;Code segment-Data Segment : AH-1 clear LCD Display :Output control code to LCD ; Setup LCD DDRAM address-04h :Output control code to LCD : AH O ASCH ; output character to LCD at 04h START: MOV AX.CS MOV DS,AX MOV AH,1 CALL IRWR MOV AH.84H CALL IRWR MOV AH,O CALL OUTL. MOV AH.H CALL OUTL MOV AH,- CALL OUTL MOV AH, CALL OUTL HLT ;Output command IRWR: CALL BUSY : Wait until LCD not BUSY MOV DX,IR_WR ; Enable LCD command write port address MOV AL, AH OUT DX,AL RET ;Character copy to AL ; write command ; Output data character CALL BUSY MOV AL,AH ; Wait until LCD not BUSY OUTL: MOV DX,DR_WR; Enable LCD data write port address OUT DX,AL :Output data RET ; read LCD BUSY Status BUSY: BUSYI: MOV DX,IR_RD ; Enable LCD status read port address IN AL.DX AND AL,80H JNZ BUSYI : Read LCD status ; If BUSY, jump to BUSY1 ; If not busy, retum to upper routine RET CODE ENDS END START
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY