Make a program in Assembly language

Learning Goal: I’m working on a programming writing question and need the explanation and answer to help me learn.

Be sure to modify the variables with YOUR First and Last names!

This is a take-home Lab. You should be able to do this with your RaspberryPi as discussed. However, you may also use the IoT Lab in ERB to connect to your Pi and do this assignment.

This is an individual assignment.

You will be required to provide READABLE screen captures in a PDF file.

You will be using the gdb debugger to pause your program at specific places in your program. We have discussed how to do this in class multiple times.

You will use my c code below to create a function in ARM assembly that will concatenate your first name and last name into a single string based on the definition of the external function ‘strCat’.

// CSE 2312 Computer Org and Assembly Language Programming

// strings concatenate

// YOUR NAME




#include <stdlib.h> // EXIT_ macro

#include <stdio.h> // printf

#include <inttypes.h> // PRI macro

#include <stdint.h> // C99 uintX_t and intX_t types




extern void strCat(const char first[], const char last[]);




int main(void)

{

char last[] = "Lastname";

char str[] = "Hello World!";

char first[30] = "Firstname "; // with a ‘space’ at the end

strCat(first, last);

printf("Full Name = %s\n", first);

return EXIT_SUCCESS;

}
  1. You will place a breakpoint where strCat is called.
  2. You will ‘step’ into the assembly function.
  3. You will need to list your assembly function to find the BX LR line.
  4. You will place a breakpoint at the BX LR line.
  5. DO NOT Continue Yet!
  6. You must use the debugger to display the memory location of the string “first�
  7. the command is:x/64cb $r#
  8. Replace the # with the correct register number, note the first address printed, you will need this later.
  9. Now ‘continue’ the program.
  10. When it pauses at BX LR, you will need to display the memory as before, but replace ‘$r#’ with the address noted earlier.
  11. Now ‘continue’ again.
  12. The program should now be complete and c should have printed the full name.
  13. Take a screenshot of the window showing all the debugger output.
  14. You may have to repeat the process flawlessly to get all the data on one screen
  15. You will also provide a screenshot of the assembly code. Your name must be in a comment at the top of the file.

Do you need help with this paper? 🏆 - Let us help you write it!

Why Choose Our Essay Writing Service?

  • ✅ Original writing: Our expert writers will write each paper from scratch, ensuring complete originality, zero plagiarism and AI free content.
  • ✅ Expert Writers: Our seasoned professionals are ready to deliver top-quality papers tailored to your needs.
  • ✅ Guaranteed Good Grades: Impress your professors with outstanding work.
  • ✅ Fast Turnaround: Need it urgently? We've got you covered!
  • ✅ 100% Confidentiality: Customer privacy is our number one priority. Your identity is anonymous to our writers.
🎓 Why wait? Let us help you succeed! Our Writers are waiting..

Get started

Starts at $9 /page

How our paper writing service works

It's very simple!

  • Fill out the order form

    Complete the order form by providing as much information as possible, and then click the submit button.

  • Choose writer

    Select your preferred writer for the project, or let us assign the best writer for you.

  • Add funds

    Allocate funds to your wallet. You can release these funds to the writer incrementally, after each section is completed and meets your expected quality.

  • Ready

    Download the finished work. Review the paper and request free edits if needed. Optionally, rate the writer and leave a review.