Bochs magic breakpoint

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
finarfin
Member
Member
Posts: 106
Joined: Fri Feb 23, 2007 1:41 am
Location: Italy & Ireland
Contact:

Bochs magic breakpoint

Post 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
Elen síla lúmenn' omentielvo
- DreamOS64 - My latest attempt with osdev: https://github.com/dreamos82/Dreamos64
- Osdev Notes - My notes about osdeving! https://github.com/dreamos82/Osdev-Notes
- My old Os Project: https://github.com/dreamos82/DreamOs
maxiperezunlam
Posts: 1
Joined: Sat Dec 01, 2012 8:29 pm

Re: Bochs magic breakpoint

Post by maxiperezunlam »

try:

Code: Select all

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