Sunday, 15 September 2013

A command for bochs that skips a "call", "jmp", or "int" instruction -



A command for bochs that skips a "call", "jmp", or "int" instruction -

i'm using bochs debugger. utilize "s" command step through code. problem however, whenever "int" instruction comes, starts stepping through bios code. there command can come in skip bios code , go code?

i subscribed bochs mailing list , sent in email asking question. in email, got reply should utilize "b" command set breakpoint after "int" instruction, this:

b <address>

and should utilize "c" command go on until breakpoint.

now, in order figure out address of instruction after "int" instruction is, disassembled code using ndisasm , found instruction after "int" instruction:

0000000a b40e mov ah,0xe

i took 0000000a, added 0x7c00 (because bootfile loaded memory starting @ 0x7c00) , that's set breakpoint.

bochs

No comments:

Post a Comment