  NAME    main            
        
  PUBLIC  __iar_program_start     
  
  SECTION .text : CODE (2) 
  CODE32                          
       
__iar_program_start                           
  
; a = b + c
mainAdd
  LDR     R0, b              
  LDR     R1, c              
  ADD     R2, R0, R1 
  LDR     R3, =a
  STR     R2, [R3] 
  B mainMem                  
  
mainMem
  MOV R2, #0xC0
  LDR R0, [R2]
  LDR R0, [R2, #0x4]
  LDR R0, [PC, #0x18]
  LDR R0, adresseA
  STR R2, [R0]
  LDR R0, =tableau
  STR R2, [R0, #0x4]!
  STR R2, [R0], #0x4
fin
  B fin

  DATA                           

adresseA DC32 0x00100004
adresseB DC32 0x00100008

b  DC32  0xAB             
c  DC32  0xF2            

  SECTION  `.noinit`:DATA (2)
a  DS32  1
tableau DS32 5
  END