#262 new

Make .code32 the default mode for the gas parser

Reported by Postmodern | June 17th, 2013 @ 10:18 PM

GAS states that 32bit assembly is it's default mode. However, yasm --parser=gas produces 16bit assembly by default.

movl    $0x10, %eax

$ as test.s -o test
$ objdump -d test
0000000000000000 <_start>:
   0:   b8 10 00 00 00          mov    $0x10,%eax

$ yasm --parser=gas test.s -o test
$ udcli test
0000000000000000 66b81000         mov ax, 0x10            
0000000000000004 0000             add [eax], al           
$ udcli -16 test
0000000000000000 66b810000000     mov eax, 0x10

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket