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.
where 0x80 is proper selector to TSS segment I can switch task. I want to have it parametrised, but i don't know how do this using gcc in;line assembler.
I've found something like this
This is another line of asm than your first (I mean they do different things). If you want a call segment,0 your inline assembly should be something like this (I don't whether this will work or needs some tweaking):
b - bx, S - si, D - di, but then I'm getting "Too many memory references for 'call' "
If nobody knows how to do this in inline assembler than maybe someone could tell me how to do it in NASM ?
Does it make a difference when you try to remove the brackets around '%0' (and using "g")? 'Selector' is an integer variable, not a pointer (I assume, at least), so you should reference it without the brackets.
JoeKayzA wrote:
Does it make a difference when you try to remove the brackets around '%0' (and using "g")? 'Selector' is an integer variable, not a pointer (I assume, at least), so you should reference it without the brackets.