Object:: Student'S Id: Lab 4 Student'S Name
Object:: Student'S Id: Lab 4 Student'S Name
Object:
.model small
.stack 200
.data
crlf db 0dh,0ah,'$'
prompt1 db 'Enter the first positive integer: ','$'
prompt2 db 'Enter the second positive integer: ','$'
prompt3 db 'The sum of the two numbers is: ','$'
.code
.startup
lea dx,prompt1 ;display prompt1
mov ah,09h
int 21h
mov cl,al
add cl,30h ;convert digit to character
.exit
End
____________________________________________________________________________
Assignment:
What is the difference between LEA and Offset?
Why addressing modes are required in Microprocessor?
Differentiate between Effective Address and Physical Address.