far jump - simple question

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
huberot

far jump - simple question

Post by huberot »

Hi everybody,

I don't know the gas syntax and as I can't find a good doc in the net I hope to find the answers here:

How do i do a fucking far jump using inline assembly?

this dosen't work:    asm("ljmp *CS:mylabel\n"
                          "mylabel:        \n"
                          :
                          :
                          );

Can anybody help me please?

P.S.: A link to a good tutorial would be great!!!
ChZ

RE:far jump - simple question

Post by ChZ »

Try:
asm("ljmp $segment,$label
     label:");
VoidLogic

RE:far jump - simple question

Post by VoidLogic »

if you need to do a C/C++ jump, cheack out the ANSI "SetJmp.h", it saves the stack too
Post Reply