Gas mode

x
 
1
.syntax unified
2
.global main
3
4
/* 
5
 *  A
6
 *  multi-line
7
 *  comment.
8
 */
9
10
@ A single line comment.
11
12
main:
13
        push    {sp, lr}
14
        ldr     r0, =message
15
        bl      puts
16
        mov     r0, #0
17
        pop     {sp, pc}
18
19
message:
20
        .asciz "Hello world!<br />"
21

Handles AT&T assembler syntax (more specifically this handles the GNU Assembler (gas) syntax.) It takes a single optional configuration parameter: architecture, which can be one of "ARM", "ARMv6" or "x86". Including the parameter adds syntax for the registers and special directives for the supplied architecture.

MIME types defined: text/x-gas