system calls - What does "int 21h" mean in Assembly?

ID : 274370

viewed : 23

Tags : assemblysystem-callsinterruptdosx86-16assembly





Top 4 Answer for system calls - What does "int 21h" mean in Assembly?

vote vote

98

int 21h means, call the interrupt handler 0x21 which is the DOS Function dispatcher. the "mov ah,01h" is setting AH with 0x01, which is the Keyboard Input with Echo handler in the interrupt. See:

http://spike.scu.edu.au/~barry/interrupts.html

vote vote

84

INT 21H will generate the software interrupt 0x21 (33 in decimal), causing the function pointed to by the 34th vector in the interrupt table to be executed, which is typically an MS-DOS API call.

vote vote

70

This simply means that you are using function 01h of the Interrupt type 21... where 01h is as you said is to read character from standard input, with echo, result is stored in AL. if there is no character in the keyboard buffer, the function waits until any key is pressed. It comes under type 21h of various interrput tables, hence the lines of code goes like these as you mentioned.

vote vote

68

Top 3 video Explaining system calls - What does "int 21h" mean in Assembly?







Related QUESTION?