; Write a program that calculates the sum of values stored in data.
; Each value is 32-bits long, 0x0 is always the last element stored.
; Note that the number of values in data is not fixed.
; the result MUST be stored in register r8.
Copyright By Assignmentchef assignmentchef
; An example data definition is used below, your program should work on different data definitions.
data DCD 0x12, 0x13, 0x14, 0x0
; Write a program that finds the minimal absolute value stored in my_numbers
; Each number occupies 1 word in the memory.
; Assume there are always 5 elements in my_numbers.
; All numbers are signed.
; The result must be stored in R8
my_numbers DCD 0x1, 0x2, 0xA, 0xFFFFFFFF, 0xF000001A
; write a program that reverses the bit sequence stored in r8
; in the example below, r8 stores 0b00000000 00000000 00000000 01100111
; after running your program, r8 should be changed to 0b11100110 00000000 00000000 00000000
; your program should work for any data in r8
; the final result must be stored in r8
ldr r8, =0b00000000000000000000000001100111
; given 5 numbers stored in data.
; write a program that stores these 5 numbers in the reversed order in res.
; In the example below, the result in res should be
; 5, 4, 3, 2, 1
; Your program should work for any combinations of numbers
data DCD 1, 2, 3, 4, 5
resFILL??? ; please determine the size needed for data_c
CS: assignmentchef QQ: 1823890830 Email: [email protected]
Reviews
There are no reviews yet.