
Does VC7 support direct output?
I had tried to use inline assembly instruction to control printer port but
it doesn't work. This is because VC7 (under WinXP) doesn't support
instruction or my code wrong?
My sample code to set all data bit to zero is
__asm{
mov al,0
mov dx,0x378
out dx,al
Quote:
}
This is inserted in main function generated by wizard (win32 console
application).
When I compiled this code ,all pass without problem but at runtime it error
at
"out dx,al" instruction.
Any help will be really appreciated!
Zart