Hi ,
all of us know that inline asm in MSVC10 does not allow using DB ,DW,DD,DQ. but allows us to use _emit directive to emit only one byte.
i have successfully allow that but inside a function , MSVC10 does not allow _emit outside a function.
here is an example
=============
$CPP
$NOMAIN
$NOWIN
#include "Windows.h"
FUNCTION main()
print asmtest()
Pause
END FUNCTION
function asmtest()
$asmx
goto fin
bytes:
DB 32,40,50,"emil",10,0
DW 0xFFAA,0xccbb,100
MyData:
DD 0xffaaccbb
DQ 0xffaaccbb11223344
frm:
DB "%d",10,0
nge:
-EAX
return
fin:
eax = 1200
eax++
cinvoke printf ,&frm,eax
eax = &bytes
al = char[eax]
eax &= 0xFF
gosub nge
$asmx
end function