0
954views
Short note on: int-21h services
1 Answer
written 2.6 years ago by |
"INT 21H" in 8086 microprocessor
There are four different functions of INT 21H:
INT 21H
These two instructions together will accept one single charactor from keyboard and store it in AL register
These two instructions will display a single charactor stored in DL register
Ex:
MOV DL41H
MOV AH, 02H
INT 21H 3. MOV AH, 09H
INT 21H
These two instructions will display an entire string stored in memory location. For this 2 conditions are must:
Ex:
LEA DX, X
MOV AH, 09H
INT 21H
Where X is a variable and string ends with the 5 sign.
4, MOV AH,4CH INT 21H
These two instructions will terminate the the program execution. But INT 3H is commonly used for this operation.