Interrupt table
List of interrupt numbers and its use
Input
|
Output
|
Service No
|
Use
|
|
|||
Interrupt No: 0X33 Use: Mouse
|
|||
ax
|
|
1
|
Show mouse
pointer
|
ax
|
|
2
|
Hide mouse pointer
|
ax
|
|
0
|
Initialize
mouse
|
|
ax
|
0
|
|
ax
|
|
7
|
X co-ordinate
restriction
|
cx
|
|
X1 co-ordinate
|
|
dx
|
|
Y1
co-ordinate
|
|
ax
|
|
8
|
Y co-ordinate restriction
|
cx
|
|
X2
co-ordinate
|
|
dx
|
|
Y2 co-ordinate
|
|
ax
|
|
3
|
Get mouse position
|
|
bx
|
Button
|
|
|
cx
|
X position
|
|
|
dx
|
Y position
|
|
ax
|
|
4
|
Set mouse position
|
cx
|
|
X co-ordinate
|
|
dx
|
|
Y
co-ordinate
|
|
ax
|
|
5
|
|
bx
|
|
B=0 left
|
|
|
|
B=1 right
|
|
|
|
B=2 center
|
|
|
ax
|
Button status
|
|
|
bx
|
Button press
counter
|
|
|
cx
|
X co-ordinate
|
|
|
dx
|
Y
co-ordinate
|
|
ax
|
|
9
|
Set graphics pointer shape
|
bx
|
|
Hot spot
offset from left
|
|
cx
|
|
Hot spot offset from right
|
|
es:dx
|
|
Segment:
offset
|
|
ax
|
|
0XA
|
Set text pointer type
|
bx
|
|
Pointer type
|
|
|
|
0-soft type
|
|
|
|
1-Hardware
|
|
cx
|
|
Starting line number
|
|
dx
|
|
Ending line
number
|
|
|
|||
Interrupt no: 0X10 Use: Monitor
|
|||
ah
|
|
2
|
Positioning cursor
|
dh
|
|
row no
|
|
dl
|
|
Column no
|
|
bh
|
|
Page no
|
|
ah
|
|
6
|
Clear screen
|
al
|
|
0 to clear
|
N line to
scroll
|
ch
|
|
St.row
|
|
cl
|
|
St column
|
|
dh
|
|
End row
|
|
dl
|
|
End column
|
|
bh
|
|
Col
|
|
ah
|
|
6
|
Scroll
window l line up
|
al
|
|
1
|
|
bh
|
|
Color
|
|
ch
|
|
St row
|
|
cl
|
|
St column
|
|
dh
|
|
End row
|
|
dl
|
|
End column
|
|
ah
|
|
8
|
Read a character from screen
|
bh
|
|
Page
|
|
|
|
Ah
|
|
ah
|
|
9
|
Write a char
on a screen
|
bh
|
|
Page
|
|
|
|
Ah
|
|
ah
|
|
0
|
Set video mode
|
al
|
|
0x13
|
Switch to
320 X 200 and 256 color graphics mode
|
|
Ch
|
0x12
|
Switch to 640X480 and 16 color
graphics mode
|
|
Cl
|
0x11
|
Switch to
640X480 and 2 color graphics mode
|
|
Dh
|
0x3
|
Switch to 25X80 and 16 color
test mode
|
|
dl
|
0x1
|
Switch to
40X25 and 16 color text mode
|
ah
|
|
0x2
|
Switch to 80X25 and 16 color
text mode
|
bh
|
|
3
|
Get cursor position
|
|
|
Page number
|
|
|
|
Starting line
for cursor
|
|
|
|
Ending line for cursor
|
|
|
|
Row position
|
|
|
|
Col position
|
|
|
|
Page number
|
|
ah
|
|
|
|
bh
|
|
|
|
|
|||
Interrupt No: 0X1A Use: Time
|
|||
|
|
2
|
Get Time
|
Ah
|
Ch
|
Hours
|
|
|
Cl
|
Minutes
|
|
|
Dh
|
Second
|
|
|
Dl
|
Daylight-saving
|
|
|
|
Time code
|
|
Ah
|
|
3
|
Set time
|
Ch
|
|
Hours
|
|
Cl
|
|
Minutes
|
|
Dh
|
|
Second
|
|
Dl
|
|
Daylight-time
|
|
ah
|
|
4
|
Get date
|
|
Ch
|
Century
|
|
|
Cl
|
Years
|
|
|
Dh
|
Month
|
|
|
dl
|
day
|
|
Ah
|
|
5
|
Set date
|
Ch
|
|
Century
|
|
Cl
|
|
Year
|
|
Dh
|
|
Month
|
|
dl
|
|
day
|
|
|
|||
Interrupt No: 0X16 Use: Key Board
|
|||
Ah
|
|
0
|
Get the scan
code
|
|
Ah
|
|
|
|
al
|
|
Get ascii
code
|
|
|
|
|
|
|||
Interrupt No: 0X21 Use: Miscellaneous
|
|||
Ah
|
|
1
|
Echo input character
on screen
|
|
al
|
Data
|
|
Ah
|
|
2
|
Character
output
|
Dl
|
|
Character
|
|
Ah
|
|
5
|
Pinter output
|
Dl
|
|
Character
|
|
Ah
|
|
9
|
Display string
|
Ds:dx
|
|
String
|
|
Ah
|
|
0XE
|
Select disk
|
Dl
|
|
Drive no
|
|
Ah
|
|
0XF
|
Open file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
0X10
|
Close file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
0X11
|
Find first
file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
0X12
|
Find next
file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
0x13
|
Delete file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
Ox16
|
Create file
|
Ds:dx
|
|
File control
|
|
Ah
|
|
0x17
|
Renaming file
|
Ds:sx
|
|
Special file control
|
|
Ah
|
|
0x19
|
Get current
disk
|
|
Al
|
|
|
Ah
|
|
Drive number
|
|
Ds:dx
|
|
0x23
|
Get file size
|
|
|
File control
|
|
Al
|
ah
|
0x25
|
Set interrupt
|
Ds:dx
|
|
New function
|
|
Ah
|
|
0x35
|
Get interrupt vector
|
Al
|
|
Interrupt no
|
|
|
|
Interrupt handler
|
|
Ah
|
|
0x39
|
Create a directory
|
Ds:dx
|
|
Directory name
|
|
Ah
|
|
0x3A
|
Delete directory
|
Ds:dx
|
|
Directory name
|
|
Ah
|
|
0X3B
|
Set current
directory
|
Ds:dx
|
|
Directory name
|
|
1 comment:
Thanks for the information.
Post a Comment