// JP opened flex table

Click to See Complete Forum and Search --> : Assembly support in Windows XP?.


ccbalamurali
December 6th, 2003, 12:41 AM
Hei gurus

I have a set of assembly code.. which are bundled with
_asm block.

while doing some assembly functions it gives error (acces previlage error 0x00000096)


__asm{
push ax
push dx
mov dx, wPortAddr
mov ax, wData
out dx, ax /// giving Error Here...
pop dx
pop ax
};


does windows xp supports assembly language.

Im using vc6 editor.

Marc G
December 6th, 2003, 03:38 AM
Ofcourse XP does support asm, but some asm calls are not allowed from within a user program to maintain system stability. Probably the out-instruction is such an instruction which, because it writes directly to the specified hardware port. Do you have to use asm? Otherwise take a look at the _outp() funtion.

ccbalamurali
December 6th, 2003, 05:32 AM
Hei thx for reply i will checkit up.

regards balamurali c

//JP added flex table