What is the function of INT 10H with AH 09h?

What is the function of INT 10H with AH 09h?

Interrupt number 10h (INT 10h)

INT 10h Service no. 09h Inputs any
AH=09h; write Character and attribute at cursor position input AL =Character to Display. BH =page number. BL =attribute. CX =number of times to write Character.

What is the function of INT 10H interrupt with AH 02h?

Int 10h functions

Function Number Description
AH=01h Set text-mode cursor shape
AH=02h Set cursor position
AH=03h Get cursor position and shape
AH=04h Read light pen position (Does not work on VGA systems)

What is int 21h and INT 10H?

Use INT 10H function calls to: – Clear the screen. – Set the cursor position. – Write characters to the screen in text mode. Use INT 21H function calls to: – Input characters from the keyboard. – Output characters to the screen.

What does mov ah mean?

MOV AH, 4CH means store (or “move”) the hexadecimal value 4C into register AH . In MS-DOS, invoking interrupt 21h while AH = 4Ch causes the current process to terminate and uses the value of register AL as the exit code of the process.

What is the purpose of INT 04h?

INT 21h – The general function despatcher

Action: On execution the call restores vectors for INTS 22h to 24h from the PSP, flushes any buffers and transfers control to the terminate handler address.
On entry: AH = 0 CS = Segment address of PSP
Returns: Nothing

What is the use of mov ah 4CH?

MOV AH, 4CH means store (or “move”) the hexadecimal value 4C into register AH . INT 21H means invoke the interrupt identified by the hexadecimal number 21 .

What is the function of MOV a #21H?

INT 21H functions

Function number Description
01h e.g. mov ah,01h int 21h Keyboard input with echo: This operation accepts a character from the keyboard buffer. If none is present, waits for keyboard entry. It returns the character in AL.

What is the function of MOV #21h?

What is the function of MOV a #21 H?

INT 21h – The general function despatcher

Action: On execution the call restores vectors for INTS 22h to 24h from the PSP, flushes any buffers and transfers control to the terminate handler address.
Returns: Nothing
Notes: Equivalent of CP/M BDOS call 00h. INT 21h function 4Ch is preferred.

What’s the difference between 0Ah and service 0Ah?

The difference between this service and service 0ah is that this service allows the user to specify the display attribute byte. Displays a specified character a specified number of times. Display begins at the current cursor location on the specified display page, but the cursor itself is not moved.

When to use service 09h for graphics mode?

Use service 09h for graphics modes, since it allows the changing of colors. In text mode, characters extending beyond the right side of the screen wrap to the next line; in graphics mode, they do not. This service displays control characters as printable characters, rather than as their cursor-control equivalents.

How to set video mode in INT 10h?

INT 10h Video Functions 00h: Set Video Mode. Selects the video mode and clears the screen automatically.

How to run line feed on INT 21h?

MOV AX, @DATA ; INITIALIZE DS MOV DS, AX ; PRINT X MOV CX,10 MOV BX,10 L2: PUSH CX MOV CX,BX L1: MOV DX, OFFSET HW ; LOAD THE STRING MOV AH,09H INT 21H Loop L1 SUB BX,01 POP CX MOV DX,0AH MOV AH,02H INT 21H Loop L2 MOV AH, 4CH ; RETURN CONTROL TO DOS INT 21H