In unit go32
go32
Processor access.
ProcessorAccess
These are some functions to access various segment registers (%cs, %ds, %ss) which makes your work a bit easier.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.