* updated the CSeg, DSeg and SSeg rtl functions on i8086 to use the new x86

intrinsics for reading the segment registers

git-svn-id: trunk@39434 -
This commit is contained in:
nickysn 2018-07-11 14:34:05 +00:00
parent 9272bf59b2
commit a8f466c400

View File

@ -518,21 +518,21 @@ asm
end;
{$define FPC_SYSTEM_HAS_CSEG}
function CSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}assembler;nostackframe;
asm
mov ax, cs
function CSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}
begin
CSeg:=fpc_x86_get_cs;
end;
{$define FPC_SYSTEM_HAS_DSEG}
function DSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}assembler;nostackframe;
asm
mov ax, ds
function DSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}
begin
DSeg:=fpc_x86_get_ds;
end;
{$define FPC_SYSTEM_HAS_SSEG}
function SSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}assembler;nostackframe;
asm
mov ax, ss
function SSeg: Word;{$ifdef SYSTEMINLINE}inline;{$endif}
begin
SSeg:=fpc_x86_get_ss;
end;
{$IFNDEF INTERNAL_BACKTRACE}