Remapping PIC

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
Crash-n-Burn

Remapping PIC

Post by Crash-n-Burn »

Hi,
Can anyone tell me if there is any ASM code to save the old pic settings, so that i can restore the old settings if i need to .

If possible not in c as i am not too good with c . ::)


Thanks in advance.

Crash-n-Burn.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Remapping PIC

Post by bubach »

"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Crash-n-Burn

Re:Remapping PIC

Post by Crash-n-Burn »

Thanks Bubach,

But what i need to know is how to save the original settings, as my OS can be booted from DOS i have trouble when returning to DOS if i remap the pic's.
I know that it is because of remaping the pic's because if i do not remap them it exit's to DOS fine.

Thanks
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Remapping PIC

Post by bubach »

I can swear that I read about that when I was about to remap the PICs, but now I can't seem to find anything.. :-\
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Remapping PIC

Post by Pype.Clicker »

DOS has IRQ0 at 0x8 and IRQ8 at 0x70 (or 0x78) iirc. So just restore that setting ;)

you can also want to store the initial PIC mask in a variable that you'll restore later ...
dh

Re:Remapping PIC

Post by dh »

You know, this would be great for the wiki! Somebody might have the same problem.
Crash-n-Burn

Re:Remapping PIC

Post by Crash-n-Burn »

Hi @ all,
Thanks for the replys , As Bubach said i too have seen it on the web but can not find it any were it will turn up when i am looking for somthing els as thins useally do ::)

I am still trying to work through it ???
dh

Re:Remapping PIC

Post by dh »

Gr8---ttt!
Post Reply