ARM cortex-M Assembly programming

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

Given the following lists of signed integers:

List A: -50, 20, 6, 0, 6, -2, -4, 2, 10, 20

List B: 15, 25, 1, -1, 9, 1, 11, 9

Write an assembly program to do the followings:

- Allocate data memory to store the number lists.

(To initialize data, you may use the sample startup.s file below as an example.)

startup.s

- Sort the number lists in ascending order using Bubble sort algorithm and store the result back to the original space.

- Create a new list, List C, by merging List A and List B keeping all entries in ascending order.

To submit:

- Upload screenshot of lists A and B in data memory before the sort, after the sort, and the new list C.

- Assembly file (.s)

(You may use the provided pseudocode to implement your bubble sort. There are examples of register usage to hold temporary values. You may follow the example or you may use your own.)

Pseudocode:

Allocate space for number list

// Initialize number list

Write number entries to allocated space

// Sort loop

// R1: hold loop counter

// R2: address of entry n

// R3: address of entry n+1

l_begin:

Initialize loop counter in R1

Set address of entry 1 in R2

Set address of entry 2 in R3

l_check:

Go to l_done if loop complete

Read entry n (address in R2)

Read entry n+1 (address in R3)

Compare both numbers

Go to l_next if n <= n+1

l_swap:

// Swap numbers

Swap positions n and n+1 in number list

go to l_begin

l_next:

Increment addresses (in R2 and r3) to n+1 and n+2

goto l_check

l_done:

Assembly C Programming C++ Programming Software Architecture x86/x64 Assembler

Project ID: #16564107

About the project

4 proposals Remote project Active 5 years ago

4 freelancers are bidding on average $126 for this job

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ More

$150 USD in 3 days
(157 Reviews)
7.1
mahmoodahmed003

I have done couple of project in assembly programming harder than yours while I was a student. I believe I can deliver your project smoothly.

$133 USD in 3 days
(11 Reviews)
3.1
comiostrak

I have more than 300 hours of experience in the assembly programming. Also, I have a lot of knowledge of data structures and algorithms. Currently, I am working on my faculty project which include programming NUCLEO More

$70 USD in 2 days
(0 Reviews)
0.0