Lack of knowledge in the way of the debugger was the problem. However, I found the VirtualBox debugger easier (to me, at least).VolTeK wrote:sreg shows the content of the Segment registers. If you thought that was relevant there is a missing portion of education in either assembler, or how to use the debugger you need to gain.
0xFE0AF refers to bios memory. Do a cli hlt and get the address halted at, then replace the cli hlt with two nop instructions, run through again and perform a break at the address where the nop's are, and single step through there.
Also look up how to fully use bochs debugger (or its manual), and how to debug while you at it.
At the end of the execution of the second stage, DS is 1000h (so is CS and ES, but hopefully that's either not a problem, or I'll come to it soon). This is where I want it. However, my GDT doesn't seem to be loaded correctly - when I try to print it, it gives me the following error:
Code: Select all
VBoxDbg> dg
0018 VERR_INVALID_SELECTOR
