flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > IDT problem, using fasm. |
Author |
|
kmtdk 01 Aug 2008, 08:23
Hi
well i have this little problem using fasm, and an idt. I have tryed reading this, http://wiki.osdev.org/I_Cant_Get_Interrupts_Working ; but fast seems not to handle it that way. So how do i define the 32 bit address, using fasm. KMT dk |
|||
01 Aug 2008, 08:23 |
|
sinsi 01 Aug 2008, 08:43
Where's your code? Not all of us have ESP you know...
|
|||
01 Aug 2008, 08:43 |
|
kmtdk 01 Aug 2008, 08:49
well
i can include the current one, but it dont compile, due to the problem of the idt and some other stuff, but thats not the deal it is attacheded KMT dk
|
|||||||||||||||||||||||||||||||
01 Aug 2008, 08:49 |
|
sinsi 01 Aug 2008, 09:19
Well, you're not entering protected-mode, you're not loading the interrupt table, you're allowing all interrupts...
'pop esp' can cause problems with different cpu's Compiles OK for me, but I ain't going to boot with it ('cause it's a mess - or incomplete) Have a look at the attached - not pretty, but works for me.
|
|||||||||||
01 Aug 2008, 09:19 |
|
kmtdk 01 Aug 2008, 21:07
i have the solution:
using shl and shr an example: idt: dw ((isr1 shl 0x30) shr 0x30) ; the high part of the address dw 0x8 ; selector db 0 db 010001110b ; type dw (isr1 shr 0x10) the low part of the address isr1: mov ax,0xdead edit: changed a error in the example KMT dk |
|||
01 Aug 2008, 21:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.