Académique Documents
Professionnel Documents
Culture Documents
Service 01
CH = cursor start line no and options
CL = cursor ending line address
Service 02
BH = page no
DH = row no
DL = col no
Service 06
BH= control color or appearance
CH: row of UL
CL: col of UL
DH: row of LR
DL:
06 h ROM font
Well provide starting address at DS: DX will print at current cursor position
INT
AH - Service
Sub Service
Purpose
13
13
00
02
13
03
13
08
AL = number of
sectors to read
(must be nonzero)
AL = number of
sectors to WRITE
(must be nonzero
DL = number of
drives
13
42
DL = drive
number
EXTENDED READ
CF = error flag
AH = error code
13
43
AL = write flags
EXTENDED WRITE
INT
AH - Service
Sub Service
Purpose
21
3C
CX = file
attributes
CREATE OR TRUNCATE
FILE
21
21
21
3D
3E
3F
21
40
21
21
41
42
21
AX = 4300
21
AX = 4301
BX = file handle
CX = number of
bytes to read
CX = number of
bytes to write
AL =
move
CF =
AX =
CF =
AX =
origin of
error
error
error
error
flag
code
flag
code
WRITE TO FILE
DELETE FILE
SET CURRENT FILE
POSITION
GET FILE
ATTRIBUTES
SET FILE
ATTRIBUTES
INT
AH - Service
Sub Service
Purpose
21
48
ALLOCATE MEMORY
21
49
21
4A
21
4B
BX = number of
paragraphs to
allocate
ES = segment of
block to free
BX = new size in
paragraphs
AL = type of load
(0 = load and
execute)
FREE MEMORY
RESIZE MEMORY BLOCK
LOAD AND/OR EXECUTE
PROGRAM
INT
AH - Service
Sub Service
Purpose
14
14
00
01
14
02
INITIALIZE PORT
SERIAL - WRITE
CHARACTER TO PORT
READ CHARACTER FROM
PORT
14
03
COM1 is accessible via ports 3F8-3FF while COM2 is accessible via 2F8-2FF.