/* * Beispiel.S * * Created on: 10.12.2020 * Author: Julia Kisela */ .text /* Specify that code goes in text segment */ .equ NUMVALS, 5 .code 32 /* Select ARM instruction set */ .global datastart datastart: .word 0x01 .word 0x02 .word 0x03 .word 0x04 .word 0x05 .global _startup /* Specify global symbol */ _startup: mov r3, #NUMVALS ldr r5, =datastart mov r4, #0 schleife: ldr r6, [r5], #4 add r4, r6 subs r3, r3, #1 bne schleife stop: nop bal stop .end