Page 1 of 1

Bochs magic breakpoint

Posted: Mon Jan 30, 2012 4:06 pm
by finarfin
I'm trying to use the magic breakpoint feature of bochs.

So i added in my code the following instruction:

Code: Select all

asm("xchg bx, bx")
but when i try to compile it, i receive the following error:
Assembler message:
Error: Too many memory references for 'xchg'
Any idea?
Thanks

Re: Bochs magic breakpoint

Posted: Sat Dec 01, 2012 8:32 pm
by maxiperezunlam
try:

Code: Select all

__asm__ __volatile__("xchg %bx, %bx");