Inline Assembly
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!]
[Resist Windows XP''s Invasive Production Activation Technology!]
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.
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?
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement