Page 1 of 1

Missing the Blindingly Obvious

Posted: Fri May 11, 2007 2:58 am
by AJ
[rant]
I just spent an hour debugging a problem that cause my OS to lock up on programs calling the service interrupt. The cause of the problem? jmp $ :roll:

I started by doing basic putchar('1'), putchar('2')... debugging. I eventually did an objdump. Bochs even *said* the last instruction was JMP $. It told me which routine contains the bug and I still couldnt see it :? . The reason. I indent my assembly code:

Code: Select all

asm_function:
     mov x, y
     ....
ret
and I had done:

Code: Select all

asm_function:
    mov x, y
    ...
jmp $
I just los a *whole hour*. What a prat :roll: .
[/rant]

Posted: Mon May 14, 2007 6:39 pm
by neon
I hate it when that happens :)