|
AHHHH! My inline assembly doesn't work!!!
I have a simple program listed below:
Now that assembly code works perfectly under DOS and when assembled alone with ML and LINK it works great. But whenever the inline assembler deals with it, I have problems. Here it is. Whenever the program reaches and executes int 10h , I get a deadly blue-screen error . I just click enter and things continue, but after like 5 attempts to get int 10h to work, the whole system crashes.
I just don''t get why it doesn''t work. Can''t we still call interrupts under Windows? Do I have to use those special 32-bit registers!? Oy...
You can''t call interrupts using in Windows. You will have to
resort to Direct X or use the Windows API.
resort to Direct X or use the Windows API.
Actually I wasn''t planning on anything close to that. I simply wanted a fast way to move the cursor around for some console type game, as opposed to the slow-as-hell escape sequences. I was also going to do the same for things like scrolling, etc.
use the gotoxy() call from conio.h
yes you have to use 32bit registers if you compile with MSVC v4.2+
If you compile with a DOS compiler, you can only use 16bit registers (with the exception of Watcom C v10?, which is where all that DOS4GW stuff came from)
Magmai Kai Holmlor
- The disgruntled & disillusioned
Edited by - Magmai Kai Holmlor on May 4, 2001 9:41:26 PM
yes you have to use 32bit registers if you compile with MSVC v4.2+
If you compile with a DOS compiler, you can only use 16bit registers (with the exception of Watcom C v10?, which is where all that DOS4GW stuff came from)
Magmai Kai Holmlor
- The disgruntled & disillusioned
Edited by - Magmai Kai Holmlor on May 4, 2001 9:41:26 PM
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
I use 16-bit registers in MSVC6 all the time and they''ve always worked fine...
-Deku-chan
DK Art (my site, which has little programming-related stuff on it, but you should go anyway^_^)
-Deku-chan
DK Art (my site, which has little programming-related stuff on it, but you should go anyway^_^)
There's even a gotoxy type api call for dropping text in a window...
Maybe gotoxy was a borland extention... I swore it was in conio.
Magmai Kai Holmlor
- The disgruntled & disillusioned
Edited by - Magmai Kai Holmlor on May 5, 2001 1:52:15 AM
Maybe gotoxy was a borland extention... I swore it was in conio.
Magmai Kai Holmlor
- The disgruntled & disillusioned
Edited by - Magmai Kai Holmlor on May 5, 2001 1:52:15 AM
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
I've gone completely linux at home so I don't have any actual windows development libs/source laying around on any of my machines. Regardless, I believe your stuck with using the functions defined in wincon.h like this for example. Most, if not all, of the legacy DOS support that used to be with MSVC is all but vanished since 4.0 I believe. Of course, I could be wrong...
YAP-YFIO,
deadlinegrunt
Edited by - deadlinegrunt on May 5, 2001 3:15:38 AM
Apparently I don't know HTML anymore either.
DOH!
Edited by - deadlinegrunt on May 5, 2001 3:17:08 AM
YAP-YFIO,
deadlinegrunt
Edited by - deadlinegrunt on May 5, 2001 3:15:38 AM
Apparently I don't know HTML anymore either.
![](tongue.gif)
Edited by - deadlinegrunt on May 5, 2001 3:17:08 AM
~deadlinegrunt
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement