fpc/rtl/x86_64/cpuinnr.inc
nickysn 9272bf59b2 + added x86 (i8086, i386 and x86_64) intrinsics fpc_x86_get_cs/ss/ds/es/fs/gs
for getting the value of x86 segment registers

git-svn-id: trunk@39433 -
2018-07-11 14:19:40 +00:00

28 lines
1.1 KiB
PHP

{
This file is part of the Free Pascal run time library.
Copyright (c) 2018 by the Free Pascal development team.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
fpc_in_x86_inportb = fpc_in_cpu_first;
fpc_in_x86_inportw = fpc_in_cpu_first+1;
fpc_in_x86_inportl = fpc_in_cpu_first+2;
fpc_in_x86_outportb = fpc_in_cpu_first+3;
fpc_in_x86_outportw = fpc_in_cpu_first+4;
fpc_in_x86_outportl = fpc_in_cpu_first+5;
fpc_in_x86_cli = fpc_in_cpu_first+6;
fpc_in_x86_sti = fpc_in_cpu_first+7;
fpc_in_x86_get_cs = fpc_in_cpu_first+8;
fpc_in_x86_get_ss = fpc_in_cpu_first+9;
fpc_in_x86_get_ds = fpc_in_cpu_first+10;
fpc_in_x86_get_es = fpc_in_cpu_first+11;
fpc_in_x86_get_fs = fpc_in_cpu_first+12;
fpc_in_x86_get_gs = fpc_in_cpu_first+13;