Basic Assembly Instructions Used in DEBUG: Julius Bancud
Basic Assembly Instructions Used in DEBUG: Julius Bancud
Basic Assembly Instructions Used in DEBUG: Julius Bancud
used in DEBUG
Julius Bancud
ASCII CODE
INT 21h FUNCTIONS
AH = 01h KEYBOARD INPUT. This function waits for you to type a character on
the keyboard. It echoes the character to the screen and returns the ASCII
character in the AL register
AH = 02h DISPLAY OUTPUT. This function displays one character on the screen.
DL = character to display on screen
AH = 08h KEYBOARD INPUT WITHOT ECHO. This function reads a character from
the keyboard but doesn’t display the character on the screen.
AL = Character read from the keyboard.
AH = 09h DISPLAY STRING. This function displays the string pointed to by the
DS:DX pair of registers.
The end of the string should be marked with the $ symbol.
AH = 0AH READ STRING. This function reads the string from the keyboard.
AH = 4Ch EXIT DOS. This function allows you to go back to DOS environment.
AL Return Code
- normally sets to zero (0)
TRY TO CODE IN YOUR
DEBUG!!!!!!!!
Example 1