Re:Show HN: A simple way to write standalone C programs for ...
by PixelOfDeath on Wednesday October 02, 2019 @12:29PM
(#21138263)
You just set your chosen segment register(s) in protect mode, jump back to real mode, and then can use this segment register(s) in combination with the 32bit prefix to make a 32 bit memory access. All other segment registers are untouched and you can call into the bios just fine.
In this case the design goal was to show the easiest way to jump into C and start building the actual application, so I just tried to avoid any trickery (even enabling the A20 line)