mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 17:49:27 +02:00
+ i8086 far data memory model support in DebugWrite
git-svn-id: trunk@27265 -
This commit is contained in:
parent
32c3f4e682
commit
4a649c9b08
@ -123,7 +123,12 @@ function CheckNullArea: Boolean; external name 'FPC_CHECK_NULLAREA';
|
||||
procedure DebugWrite(const S: string);
|
||||
begin
|
||||
asm
|
||||
{$if defined(FPC_X86_DATA_FAR) or defined(FPC_X86_DATA_HUGE)}
|
||||
push ds
|
||||
lds si, S
|
||||
{$else}
|
||||
mov si, S
|
||||
{$endif}
|
||||
{$ifdef FPC_ENABLED_CLD}
|
||||
cld
|
||||
{$endif FPC_ENABLED_CLD}
|
||||
@ -137,6 +142,9 @@ begin
|
||||
mov dl, al
|
||||
int 21h
|
||||
loop @@1
|
||||
{$if defined(FPC_X86_DATA_FAR) or defined(FPC_X86_DATA_HUGE)}
|
||||
pop ds
|
||||
{$endif}
|
||||
end ['ax','bx','cx','dx','si','di'];
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user