GNU assembler freaks out at jumps and Intel syntax
GNU assembler freaks out at jumps and Intel syntax
- Subject: GNU assembler freaks out at jumps and Intel syntax
- From: LuigiG <email@hidden>
- Date: Sun, 14 Sep 2008 09:04:35 -0700 (PDT)
Hi,
What is the correct syntax for conditional jumps (j<cc>) in GNU as when using intel syntax?Â
Specifically:
# This dummy example code does not assemble:  .intel_syntax noprefix L1:  test eax,eax  jnz L1  ret ..... %as test1.s  %test1.s:6:suffix or operands invalid for `jnz'
# This code (same but temp. switch to AT&T syntax) assembles correctly:  .intel_syntax noprefix L1:  test eax,eax .att_syntax  jnz L1 .intel_syntax noprefix  ret
% as test2.s  % otool -Vt test2.o test2.o: (__TEXT,__text) section 00000000 testl êx,êx 00000002 jne 0x00000000 00000004 ret
I'm using: Apple Inc version cctools-698.1~1, GNU assembler version 1.38
What's up??
LG
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden