demon_slayer2839![]() Member Posts: 22 From: Registered: 08-01-2004 |
Hey Y'all, I've been fiddling around for a while now trying to get in to video mode 13h in Dev-C++ by shed. Well, I've kind of figured it out and kind of not I've already tried the Winbgi port of Borlands graphics library and I couldn't get it to work. So I figured I would experiment on my own. I thought maybe I could go native and call int 10, 13 and then use a pointer that points to the video memory to write directly to the memory, but I couldn't get it to work. Every time I would try to assign the first address in video memory the compiler spit back a huge list of errors and choked. Basically it got caught up on this: int *vidMem; vidMem = A0000000; Any help y'all could offer would be very much appreciated. |
|
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
ugh, i hate working with low level stuff like that ![]() |
|
dartsman![]() Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
quiet possibly you might need to prefix 'A0000000' with 0x to specify that it is a hex number your passing, and postfix it with L just to specify that it's a long value:
Mode 13h tutorial
quote: If your looking to do 16-bit assembler (ie. 16-bit registers ax,bx,cx,dx) then I'd suggest downloading OpenWatcom. http://www.openwatcom.org/index.php/Download I found you can create both 16-bit or 32-bit projects, and so can also access the old microsoft graphics library (graph.h). If your looking into mode 13h I would strongly recommend "Tricks of the Game Programming Gurus". I've only read a chapter or two, but it explains it very well. ------------------ |
|
demon_slayer2839![]() Member Posts: 22 From: Registered: 08-01-2004 |
Thanks, I'll check into watcom and I am doing this of my own free will as my programming mentor has always said the closer to the metal the better it is. LOL. Anyways thanks for the tips. | |
dartsman![]() Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
LOL ![]() It's always good for programmers to know there 'roots'. And ASM is cool!! Trip up your friends by showing them some ASM ------------------ |
|
demon_slayer2839![]() Member Posts: 22 From: Registered: 08-01-2004 |
LOL, haven't thought of that one. I'll have to try it. But actually I've found ASM easier than C++. Personal preference maybe. |