Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Interrupts

  1. #1
    BINNY88's Avatar
    BINNY88 is offline Learning Programmer
    Join Date
    Sep 2008
    Posts
    38
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    dcs
    dcs is offline Guru
    Join Date
    Mar 2008
    Posts
    775
    Rep Power
    23

    Re: Interrupts

    DOS isn't very common these days.

  4. #3
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31

    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.

  5. #4
    outsid3r's Avatar
    outsid3r is offline Programming God
    Join Date
    Jul 2008
    Posts
    621
    Rep Power
    18

    Re: Interrupts

    Check this page for interrupt information.
    Interrupt Jump Table

  6. #5
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,512
    Blog Entries
    8
    Rep Power
    59

    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.

  7. #6
    BINNY88's Avatar
    BINNY88 is offline Learning Programmer
    Join Date
    Sep 2008
    Posts
    38
    Rep Power
    0

    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

  8. #7
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    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.

  9. #8
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,512
    Blog Entries
    8
    Rep Power
    59

    Re: Interrupts

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

  10. #9
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31

    Re: Interrupts

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

  11. #10
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,512
    Blog Entries
    8
    Rep Power
    59

    Re: Interrupts

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

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. NASM Question about interrupts
    By JewFro297 in forum Assembly
    Replies: 4
    Last Post: 01-05-2010, 04:05 AM
  2. Viewing I/O ports and interrupts in Linux
    By Jame in forum Linux/Unix General
    Replies: 1
    Last Post: 08-14-2007, 10:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

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