Advertisement

Inline Assembly

Started by August 31, 2001 06:33 PM
6 comments, last by encom 23 years, 5 months ago
why does it provoc an Error system (blue screen, VXD err) ? //code for visual c++ 6 #include void main(){ __asm{ mov ah, 00; mov al, 13 int 0x10 } } is it incorect ?
You can''t do that in a Win32 application. MSVC only creates Win32 applications.

[Resist Windows XP''s Invasive Production Activation Technology!]
Advertisement
you shouldn''t use interrupt calls from windows...

Mvh
Søren Olesen
In Windows, you can''t change the video modes as you did in DOS. If you want to do that, you must use the Win32 API functions or use DirectX (that''s why they were invented for ) Note that this is only applicable if you are using Windows compilers, as I suppose you are doing.
Besides that...
You''re not using hexidecimal values :D

It should be:
mov al, 13h (or was that 0x13 in MSVC?)

But like allready mentioned this only works onder DOS.
Prosser: But the plans were on display.Arthur Dent: On display? I eventually had to go down to the cellar.Prosser: That's the display department.Arthur Dent: With a torch.Prosser: The lights had probably gone.Arthur Dent: So had the stairs.Prosser: But you did see the notice, didn't you?Arthur Dent: Oh, yes. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign outside the door saying "Beware of the Leopard." Ever thought of going into advertising?
So, How can i make a dos program without API ?
Advertisement
Use a different compiler, such as DJGPP.

~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Why not use directX using a small resolution?

The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.

?Have a nice day!?

This topic is closed to new replies.

Advertisement