BLOG MIPS ISA Tutorials x86 ISA Tutorials

Arm Assembly Language Syntax

ARM ASSEMBLY LANGUAGE SYNTAX

Arm Assembly Language syntax is totally different from MIPS and x86 architecture. It has five parts:

  • ELF sections (defined by AREA directive).
  • Application entry (defined by ENTRY directive).
  • Application execution.
  • Application termination.
  • Program end (defined by  END directive).

Below is the given Example:

    AREA     ARMex, CODE, READONLY
                                
        ENTRY                  
start
        MOV      r0, #10       
        MOV      r1, #3
        ADD      r1, r0, r1     
stop
        MOV      r0, #0x18      
        LDR      r1, =0x20026   
        SVC      #0x123456      
        END

Hope above example will help you in better understanding in ARM assembly Syntax. If you have any queries ask freely in the comment box.