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
DOS isn't very common these days.
int 10h is for VGA display. Its the standard bios interrupt for pixel plotting, text functions, VESA extensions, ect...
Google Ralf Browns interrupt list.
Check this page for interrupt information.
Interrupt Jump Table
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.
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
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.
I wholeheartedly agree with you there. I loved DOS programming before I realized that I was better off using libraries.
I love System programmingNothing funner. If you want, I can provide you with C++ classes for VGA & Vesa
I'm writing this with C, not C++, but I'd love to see them anyway.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks