Putpixel and interupts in P-mode,

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
mavix
Posts: 1
Joined: Tue Jan 30, 2007 11:07 am
Location: Cyberspace

Putpixel and interupts in P-mode,

Post by mavix »

I'm new to OS programming and was wondering how I can make use of interupts in Protected mode. I was also wondering if someone could show me how to write a putpixel function in C(In protected mode).
Thanks
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Post by JAAman »

in PMode, you dont have access to any of the BIOS interupts, -- all interupts must point to code you've written, (except for an advanced feature of VMode, but thats different...)

to do this, you need a valid PMode IDT, where the entry you want to use points to the code your using for it

for more specific information, check the intel manuals, volume 3a, section 5.10 (and all of chapter 5 for more general information)
Post Reply