.global _start

.section .data
    a: .word 5
    b: .word 6
    result: .space 4

.section .text

add_plus1:
    push {fp, lr}         
    mov fp, sp            

    ldr r0, =a
    ldr r1, =b
    ldr r2, [r0]
    ldr r3, [r1]
    add r2, r2, r3
    add r2, r2, #1
    ldr r0, =result
    str r2, [r0]

    mov sp, fp            
    pop {fp, lr}          
    bx lr

_start:
    bl add_plus1

    @ Exit the program
    mov r7, #1
    swi 0
