Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-2008, 09:50 PM
BINNY88's Avatar   
Learning Programmer
 
Join Date: Sep 2008
Posts: 38
Rep Power: 0
BINNY88 is an unknown quantity at this point
Question Interrupts

Can anyone tell me what the interrupt 0x10 is used for?I know that 0x33 is used for the mouse.
I also know that r.x.cx &r.x.c.dx is used to find the x & y coordinates of the mouse but I have no idea about 'r.h.ah=0x0d','r.h.ah=0x00'.
If there are any websites on the net which talk about these things please do mention it.
P.s I use an old turbo c++ compiler with the bgi interface,so these things are used only in that environnment.
Thanks.
__________________
Forging ahead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-22-2008, 11:45 PM
dcs dcs is offline
Programming Expert
 
Join Date: Mar 2008
Posts: 371
Rep Power: 9
dcs has a spectacular aura aboutdcs has a spectacular aura aboutdcs has a spectacular aura about
Default Re: Interrupts

DOS isn't very common these days.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-22-2008, 11:51 PM
TkTech's Avatar   
Speaks fluent binary
 
Join Date: Jun 2006
Posts: 1,163
Blog Entries: 2
Rep Power: 19
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default Re: Interrupts

int 10h is for VGA display. Its the standard bios interrupt for pixel plotting, text functions, VESA extensions, ect...

Google Ralf Browns interrupt list.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-23-2008, 04:04 AM
outsid3r's Avatar   
Programming Expert
 
Join Date: Jul 2008
Location: Portugal
Age: 20
Posts: 377
Rep Power: 7
outsid3r has a spectacular aura aboutoutsid3r has a spectacular aura about
Default Re: Interrupts

Check this page for interrupt information.
Interrupt Jump Table
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-23-2008, 04:12 AM
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 1,051
Blog Entries: 8
Rep Power: 17
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Interrupts

It's also very slow. I can show you how to write directly to video memory if you like. Note that calling an interrupt in a 32-bit program in Windows will result in an access violation error.

AH=00 sets the video mode to the mode contained in AL.
AH=0d reads the color value of the pixel specified in page BH, column CX, row DX.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-23-2008, 05:03 PM
BINNY88's Avatar   
Learning Programmer
 
Join Date: Sep 2008
Posts: 38
Rep Power: 0
BINNY88 is an unknown quantity at this point
Talking Re: Interrupts

I know that dos is dead but programming in dos is a very good learning experience.Many thanks to outsid3r for the interrupt jump table.Thats a lot of interrupts.
Thanks
__________________
Forging ahead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-23-2008, 05:05 PM
Banned
 
Join Date: Jul 2008
Posts: 127
Rep Power: 0
MeTh0Dz|Reb0rn is a jewel in the roughMeTh0Dz|Reb0rn is a jewel in the roughMeTh0Dz|Reb0rn is a jewel in the roughMeTh0Dz|Reb0rn is a jewel in the rough
Default Re: Interrupts

Writing 16-Bit code is a good learning experience? In what way?

If you want to do 16-Bit coding learn 16 Bit x86 Assembly and then focus your C/C++ efforts to 32 Bit coding.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-23-2008, 05:10 PM
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 1,051
Blog Entries: 8
Rep Power: 17
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Interrupts

I wholeheartedly agree with you there. I loved DOS programming before I realized that I was better off using libraries.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-23-2008, 05:49 PM
TkTech's Avatar   
Speaks fluent binary
 
Join Date: Jun 2006
Posts: 1,163
Blog Entries: 2
Rep Power: 19
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default Re: Interrupts

I love System programming Nothing funner. If you want, I can provide you with C++ classes for VGA & Vesa
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-23-2008, 05:51 PM
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 1,051
Blog Entries: 8
Rep Power: 17
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Interrupts

I'm writing this with C, not C++, but I'd love to see them anyway.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:10 AM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads