How to produce a minimal BIOS hello world boot sector with GCC that works from a USB stick on real hardware?
As mentioned by @Jester, I had to zero DS with: @@ -4,2 +4,4 @@ _start: cli + xor %ax, %ax + mov %ax, %ds mov $msg, %si Note that it is not possible to mov immediates to ds: we must pass through ax: 8086- why can’t we move an immediate data into segment register? So … Read more