Page 1 of 1

TSS in fasm

Posted: Tue Feb 26, 2008 12:00 pm
by os.hacker64
Is there an example of a TSS Descriptor in Fasm out there? I have no Idea how to set one up, I know the structure of it, but setting it up has become a problem.

Posted: Tue Feb 26, 2008 12:07 pm
by DeletedAccount
:D Fasm has a similar syntax as that of nasm ... You may have look at the
example provided by John Fine .. In tutorial section of www.osdever.net
:P

Posted: Tue Feb 26, 2008 12:13 pm
by os.hacker64
I don't like macros much, I can't seem to figure that out. :oops: OMFG I FEEL LIKE A NOOB!

Posted: Tue Feb 26, 2008 12:37 pm
by os.hacker64
This is what I have now, it triple faults when I test it on my computer(at least thats what I think is happening)and restarts. :?

Posted: Tue Feb 26, 2008 1:38 pm
by exkor
Write handlers for CPu exceptions, especially #GP. Look at the IRET in the INtel 2A manual to understand better what it pops out. Then do tss thing with interrupts enabled & PIC masked.

Posted: Tue Feb 26, 2008 1:40 pm
by JamesM
If you can't work out how to use assembler macros then you have got big problems ahead... :roll:

Posted: Tue Feb 26, 2008 1:43 pm
by os.hacker64
macros create confusion for me.
especially in asm. I don't use them.

TSS Descriptor without a STRUCT in fasm

Posted: Sat Mar 22, 2008 7:07 pm
by nekros
I try to setup the tss descriptor in fas in somewhat the same way that I set it up in C(that compiled but didn't work :D ) with shifts and such the only problem is that when I tried to set the descriptor I would get things like value out of range and crap. How else can I do this???

Posted: Sat Mar 22, 2008 7:29 pm
by nekros
oops, I thought I made a new post :oops:

Posted: Sun Mar 23, 2008 10:20 am
by Dex
Try this, its nasm but easy to convert

Posted: Sun Mar 23, 2008 12:13 pm
by nekros
you are awesome dex!