INTERNES 21H (0x21)
Funktion 48H (0x48 oder 72) --> Gedächtnisblock zuteilen
Call with: AH = 48H
BX = number of paragraphs of memory
needed
Returns: If function successful
Carry flag = clear
Ax = base segment address of allocated
block
If function unsuccessful
Carry flag = set
AX = error code
BX = size of largest available block
(paragraphs)
Comments:
It allocates a block of memory and returns a pointer to the beginning of the allocated area.
INTERNES 21H (0x21)
Funktion 49H (0x49 oder 73) --> Gedächtnisblock freigeben
Call with: AH = 49H
ES = segment of block to be released
Returns: If function successful
Carry flag = clear
If function unsuccessful
Carry flag = set
AX = error code
Anmerkungen:
Diese Funktion wird verwendet, um einen Gedächtnisblock freizugeben und es für andere Programme zur Verfügung stellt. Die Funktion verläßt oder kann unvorhersehbare Systemfehler verursachen, wenn die Programmfreigabe ein Gedächtnisblock, der nicht ihr gehört, oder die Segmentadresse, die in Register ES geführt wird, nicht eine gültige Basisadresse für einen vorhandenen Gedächtnisblock ist.
INTERNES 21H (0x21)
Funktion 4AH (0x4A oder 74) --> Gedächtnisblock die Größe neu bestimmen
Call with: AH = 4AH
BX = desired new block size in paragraphs
ES = segment of block to be modified
Returns: If function successful
Carry flag = clear
If function unsuccessful
Carry flag = set
AX = error code
BX = maximum block size available
(paragraphs)
Comments:
This function dynamically shrinks or extends a memory block, according to the needs of an application program.
INTERNES 21H (0x21)
Funktion 4BH (0x4B oder 75) --> Programm (EXEC) durchführen
Call with: AH = 4BH
AL = sub function
00H = Load and Execute Program
03H = Load Overlay
ES: BX = segment: offset of parameter block
DS: DX = segment: offset of ASCIIZ program
pathname
Returns: If function successful
Carry flag = clear
Registers are preserved in the usual fashion.
If function unsuccessful
Carry flag = set
AX = error code
Comments:
This function allows an application program to run another program, regaining control when it is finished. Can also be used to load overlays, although this is use is uncommon.
INTERNES 21H (0x21)
Funktion 4CH (0x4C oder 76) --> Prozeß mit Rückgabecode beenden
Call with: AH = 4CH
AL = return code
Returns: Nothing
Comments:
This function terminates the current process, passing a return code to the parent process. This is one of several methods that a program can use to perform a final exit.
INTERNES 21H (0x21)
Funktion 4DH (0x4D oder 77) --> Rückgabecode erhalten
Call with: AH = 4DH
Returns: AH = exit type
00H, wenn normaler Endpunkt durch INTERNES 20H, INTERNES 21H
Funktion 00H oder INTERNES 21H arbeitet 4CH
01H wenn Endpunkt durch Teilnehmereintrag von Ctrl-C
02H wenn Endpunkt durch Kritischstörung Zufuhr
03H wenn Endpunkt durch INT21H Funktion 31H oder
INTERNES 27H |
AL = return code passed by child process
(0 if child terminated by INT 20H,
INT 21H Function 00H, or INT 27H)
Comments:
This function is used by a parent process, after the successful execution of an EXEC call (INT 21H Function 4BH), to obtain the return code and termination type of a child process.
INTERNES 21H (0x21)
Funktion 4EH (0x4E oder 78) --> Erste Akte finden
Call with: AH = 4EH
CX = search attribute (bits may be
combined)
DS: DX = segment: offset of ASCIIZ pathname
Returns: If function successful and matching file found
Carry flag = clear
And search results returned in current disk transfer area as follows:
Bytes |
Beschreibung |
00H-14H |
Reserviert (0) |
15H |
Attribut der zusammengebrachten Akte oder des Verzeichnisses |
16H-17H
|
Akte Zeit
Spitzen 00H-04H = 2 zweite Stufensprünge (0-29)
Spitzen 05H-0AH = Minuten (0-59)
Spitzen 0BH-0FH = Stunden (0-23) |
18H-19H
|
Akte Datum
Spitzen 00H-04H = Tag (1-31)
Spitzen 05H-08H = Monat (1-12)
Spitzen 09H-0FH = Jahr (im Verhältnis zu 1980) |
1AH-1DH |
Akte Größe |
1EH-2AH |
ASCIIZ Dateiname und Verlängerung |
If function is unsuccessful
Carry flag = set
AX = error code
Comments:
This function searches the default or specified directory on the default or specified drive for the first matching file for a given file specification in the form of an ASCIIZ string. For bit significance of attributes, refer bits significance table given before.
INTERNES 21H (0x21)
Funktion 4FH (0x4F oder 79) --> Folgende Akte der Entdeckung
Call with: AH = 4FH
Returns: If function is successful and matching file found
Carry flag = clear
If function is unsuccessful
Carry flag = set
AX = error code
Comments:
If there is a previous successful call to INT 21H Function 4EH, this function finds the next file in the default or specified directory on the default or specified drive that matches the original file specification.
INTERNES 21H (0x21)
Funktion 50H (0x50 oder 80) --> hob auf
INTERNES 21H (0x21)
Funktion 51H (0x51 oder 81) --> Reserviert
INTERNES 21H (0x21)
Funktion 52H (0x51 oder 81) --> Reserviert
INTERNES 21H (0x21)
Funktion 53H (0x51 oder 81) --> Reserviert
INTERNES 21H (0x21)
Funktion 54H (0x51 oder 81) --> Reserviert
Call with: AH = 54H
Returns: AL = current verify flag value
00H if verify off
01H if verify on
Comments:
This function obtains the current value of the system verify (read-after-write) flag.
INTERNES 21H (0x21)
Funktion 55H (0x55 oder 85) --> Reserviert
INTERNES 21H (0x21)
Funktion 56H (0x56 oder 86) --> Akte umbenennen
Call with: AH = 56H
DS: DX = segment: offset of current ASCIIZ
pathname
ES: DI = segment: offset of new ASCIIZ
pathname
Returns: If function successful
Carry flag = clear
If function unsuccessful
Carry flag = set
AX = error code
Anmerkungen:
Diese Funktion benennt eine Akte um und/oder verschiebt seinen Eintrag in ein Verzeichnis auf ein unterschiedliches auf der gleichen Scheibe. In MS-DOSversionen 3.0 und späteres, kann diese Funktion auch verwendet werden, um Verzeichnisse umzubenennen
Wenn kein Element des Namens nicht besteht, oder eine Akte mit dem neuen Namen bereits besteht, oder die gegenwärtige Namespezifikation ein anderes Laufwerk als der neue Name oder die Akte, wird verschoben auf das Wurzelverzeichnis enthält und das Wurzelverzeichnis voll ist, oder Benutzer unzulängliche Rechte hat, fällt die Funktion, zum der Akten umzubenennen aus.
|