Something wrong with bochs?
Posted: Fri Feb 08, 2013 12:17 am
I'm learning to write a tiny os, and debug it using bochs. But now something strange happend. Following is the code which has been moved to 0x9000:0x0100
x/10 0x9000:0x0100:
I found that the following codes is the same with those in ghex, only that there is one more 00 in bochs's codes, just as I pointed out just now.
So how to explain that E96100? If you try to disassemble the E96100 to assembly code, you may find there is not corresponding relations with E96100 and jmp .+97, what's wrong with that?
As you can see, the beginning part of the code is jmp .+97, whose corresponding machine code is E96100, but the machine code isn't it! Open the file with ghex, and you can see the right machine code: EB61, in corresponding with the assembly code: jmp .+63h.
Then I looked the following codes in bochs using So how to explain that E96100? If you try to disassemble the E96100 to assembly code, you may find there is not corresponding relations with E96100 and jmp .+97, what's wrong with that?