mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 02:49:22 +02:00
* implemented the MsDos function with an asm prequel to the Intr function
git-svn-id: branches/i8086@24043 -
This commit is contained in:
parent
7b578f3e9c
commit
c76b459324
@ -14,6 +14,10 @@
|
|||||||
mov es, ax
|
mov es, ax
|
||||||
jmp PASCALMAIN
|
jmp PASCALMAIN
|
||||||
|
|
||||||
|
global FPC_MSDOS
|
||||||
|
FPC_MSDOS:
|
||||||
|
mov dx, ax
|
||||||
|
mov al, 21h
|
||||||
global FPC_INTR
|
global FPC_INTR
|
||||||
FPC_INTR:
|
FPC_INTR:
|
||||||
mov byte [cs:int_number], al
|
mov byte [cs:int_number], al
|
||||||
|
@ -66,11 +66,7 @@ implementation
|
|||||||
{$I registers.inc}
|
{$I registers.inc}
|
||||||
|
|
||||||
procedure Intr(IntNo: Byte; var Regs: Registers); external name 'FPC_INTR';
|
procedure Intr(IntNo: Byte; var Regs: Registers); external name 'FPC_INTR';
|
||||||
|
procedure MsDos(var Regs: Registers); external name 'FPC_MSDOS';
|
||||||
procedure MsDos(var Regs: Registers);
|
|
||||||
begin
|
|
||||||
Intr($21, Regs);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{$I system.inc}
|
{$I system.inc}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user