Professional Documents
Culture Documents
causes to display the single character stored in Dl. If Dl register contains the ASCII Code of some
controller function and the Ah contains 02h service then the INT 21h will cause the controller function
to be execute.
MOV Dl,A
INT 21h
The above instruction set contains the controller function of line feed in Dl, When this instruction set
will run it will show the new line added on display screen. Problem: Following are some controller
functions 7
You are required to a. Discuss the function of each controller function. b. Execute each controller
function and discuss working in detail.
Answer:
if there is no character in the keyboard buffer, the function waits until any key is pressed.
example:
mov ah, 7
int 21h
DS must point to the string's segment, and DX must contain the string's offset:
int 21h
MOV Ah,02h
MOV Dl,0Ah
Int 21h
MOV Ah,02h
MOV Dx,10d
Int 21h
MOV Ah,02h
MOV Dl,0Dh
Int 21h
MOV Ah,02h
MOV Dx,13d
Int 21h