Page 3 of 3

Re:PIC, IRQs and IDT?

Posted: Fri Oct 01, 2004 6:12 am
by bubach
I got help from jokematch on the Foreign Devers forum on osdever.net. It was easier to "talk" on swedish..

the solution was to do it like this:

Code: Select all

     ; 50. Interrupt 0x32. 
     ;--------------------- 
          dw isr32 
          dw 0x08 
          db 0 
          db 0x8E 
          dw (orgaddress>>16)
+ that i "updated" my GDT in the kernel with new selectors for interrupts and video etc.

i don?t know why it didn?t work from the beginning, when i had the orgaddress>>16 stuff.
but my kernel seems to feel better with a fresh GDT. This redused it?s dependece of my crappy bootloader aswell.

PS. when will your source for the 512b contest be up? i need to look on the source to play cd?s.. can?t get mine to work.

/ Christoffer

Re:PIC, IRQs and IDT?

Posted: Sat Oct 02, 2004 4:29 am
by ASHLEY4
As i made the rules so that, you only have to release the code, if you win.
If i win , i will after release the code ;-) .
I have had at least 10 people want the code, but only 2 votes ?.

http://512.decard.net/?body=vote

\\\\||////
(@@)
ASHLEY4.

Re:PIC, IRQs and IDT?

Posted: Tue Oct 05, 2004 8:05 am
by ASHLEY4
I have uploaded CdPod's asm code here:
http://board.flatassembler.net/viewtopi ... 4&start=50

\\\\||////
(@@)
ASHLEY4.

Re:PIC, IRQs and IDT?

Posted: Wed Oct 06, 2004 1:30 am
by bubach
now u have 3 votes.. :-)
thanks for the source, now i can look up what i have done wrong..

Re:PIC, IRQs and IDT?

Posted: Wed Oct 06, 2004 4:12 am
by ASHLEY4
If you have any ? about cdpod code, just let me know, also if you want the code for just a cdplayer, as it may be better to understand.
One tip is do all your testing code in dos (realmode) as it sem to work better and then when it works there move on to pmode.

\\\\||////
(@@)
ASHLEY4.