Skip to content

-S Option is Ignored When Assembling in rasm2 #25034

@rectrap

Description

@rectrap

Environment

Sun Dec 14 03:45:41 PM EET 2025
radare2 6.0.7 34644 @ linux-x86-64
birth: git.6.0.7-148-gdca8fb249c 2025-12-14__15:39:50
commit: dca8fb249c0d33ac4f0fdf280ecc0cdffbe19e79
options: gpl -O? cs:5 cl:2 make
Linux x86_64

Description

I am not sure if this is considered a bug.
rasm2, while it disassembles in att syntax when "-S att" is specified, the -S option is ignored when assembling, and it always assumes Intel syntax. The thing is, in the manual entry for rasm2, it has this line:

       Assemble with specific syntax:

         $ rasm2 -a x86 -b 32 -S att 'mov eax, 33'

The assembly instruction seen is, quite clearly, in Intel syntax.

Test

Run "rasm2 -a x86 -b 32 -S att 'movl $33, %eax'" and receive an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions