problem with assembler source
Posted: Wed Jan 29, 2003 11:40 am
hi @ all,
i try to compile this source code under suse linux with gcc, but there are errors, here the source:
asm(" mov eax, 0");
asm(" CPUID");
asm(" mov [REGEBX], ebx");
asm(" mov [REGECX], ecx");
asm(" mov [REGEDX], edx");
this source is inline asm...
here the errors:
Error: too many memory references for mov
Error: invalid char '[' beginning operand 1 [REGEBX]
and so on....
i think the syntax is not correct, can you help me ???
thanks, by. matze
i try to compile this source code under suse linux with gcc, but there are errors, here the source:
asm(" mov eax, 0");
asm(" CPUID");
asm(" mov [REGEBX], ebx");
asm(" mov [REGECX], ecx");
asm(" mov [REGEDX], edx");
this source is inline asm...
here the errors:
Error: too many memory references for mov
Error: invalid char '[' beginning operand 1 [REGEBX]
and so on....
i think the syntax is not correct, can you help me ???
thanks, by. matze