To access a word or doubleword in memory, the instruction must supply the memory address.

computer science

Description

1) Arrays 

To access a word or doubleword in memory, the instruction must supply the memory address. Memory is a large, single-dimensional array, with the address acting as the index to that array, starting at 0. In this lab, make use of the array functions by writing a C program which collects an array of numbers and stores it in the stack using assembly function and displays the sum of the array elements.


• C program and assembly program along with screenshots (building and executing in debug window displaying the output along with project explorer tab). 


• Brief description of the following with respect to the c code and assembly implemented: a. External functions used in C code b. All the loop functions in the assembly code c. How does the procedure call and branches work in this program? 


• In brief mention the different variables and registers that are used by the program by making use of the debug control window and the .axf file. Also provide the start address and end address of each function (init, start, main, and the address of all the implemented functions). 


Related Questions in computer science category