os-tutorial icon indicating copy to clipboard operation
os-tutorial copied to clipboard

Segment registers aren't cleared when you get code execution.

Open Menotdan opened this issue 5 years ago • 0 comments

The segment registers are not cleared in real mode on the first few instructions, this should be done because in real mode a lot of memory access is segment based, and if you don't clear the segment registers, bad things could happen.

Menotdan avatar Apr 21 '20 18:04 Menotdan