+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 10 of 23

Thread: Interrupts

  1. #1
    Learning Programmer BINNY88 is an unknown quantity at this point BINNY88's Avatar
    Join Date
    Sep 2008
    Posts
    38

    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

  2. #2
    dcs
    dcs is offline
    Guru dcs is a jewel in the rough dcs is a jewel in the rough dcs is a jewel in the rough dcs is a jewel in the rough
    Join Date
    Mar 2008
    Posts
    763

    Re: Interrupts

    DOS isn't very common these days.

  3. #3
    The Crazy One TkTech will become famous soon enough TkTech's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Age
    18
    Posts
    1,549
    Blog Entries
    1

    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.

  4. #4
    Programming God outsid3r has a spectacular aura about outsid3r has a spectacular aura about outsid3r's Avatar
    Join Date
    Jul 2008
    Location
    Portugal
    Posts
    564

    Re: Interrupts

    Check this page for interrupt information.
    Interrupt Jump Table

  5. #5
    Code Warrior dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta's Avatar
    Join Date
    Oct 2007
    Age
    19
    Posts
    2,829
    Blog Entries
    8

    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.

  6. #6
    Learning Programmer BINNY88 is an unknown quantity at this point BINNY88's Avatar
    Join Date
    Sep 2008
    Posts
    38

    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

  7. #7
    MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all
    Join Date
    May 2008
    Posts
    473

    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.

  8. #8
    Code Warrior dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta's Avatar
    Join Date
    Oct 2007
    Age
    19
    Posts
    2,829
    Blog Entries
    8

    Re: Interrupts

    I wholeheartedly agree with you there. I loved DOS programming before I realized that I was better off using libraries.

  9. #9
    The Crazy One TkTech will become famous soon enough TkTech's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Age
    18
    Posts
    1,549
    Blog Entries
    1

    Re: Interrupts

    I love System programming Nothing funner. If you want, I can provide you with C++ classes for VGA & Vesa

  10. #10
    Code Warrior dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta has much to be proud of dargueta's Avatar
    Join Date
    Oct 2007
    Age
    19
    Posts
    2,829
    Blog Entries
    8

    Re: Interrupts

    I'm writing this with C, not C++, but I'd love to see them anyway.

+ Reply to Thread
Page 1 of 3
1 2 3 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts