Chungwei Hsiung wrote:
thanks for the reply
I have MDK9.2 and gcc 3.3.1.
Does anyone know how I can compile the assembly in a c file?
void main() {
__asm__("
mov $0x0, %ebx
mov $0x1, %eax
int$0x80
");
}
any help is appreciated, please. :)
best regards
Chungwei
Björn L
thanks for the reply
I have MDK9.2 and gcc 3.3.1.
Does anyone know how I can compile the assembly in a c file?
void main() {
__asm__("
mov $0x0, %ebx
mov $0x1, %eax
int$0x80
");
}
any help is appreciated, please. :)
best regards
Chungwei
Björn Lundin wrote:
Chungwei H
Chungwei Hsiung wrote:
> Thanks for the reply. I really appreciate it.
> My story is a little bit different..
> I just copy the codes you modified to a file and I compile it.
> I have the following error message that I had before. Any other thoughts??
>
>
> $cat asmExit.c
> void main() {
> __asm