Question: Modify this C 2 A 2 E 3 _ StackDiagram.txt Recursive Stack Diagram Rel Abs Stack Description Item Adr Adr Value Size - - -

Modify this C2A2E3_StackDiagram.txt
Recursive Stack Diagram
Rel Abs Stack Description Item
Adr Adr Value Size
------------------------ startup -------------------------
----------------------------------------------------------
Sample Stack Diagram
Rel Abs Stack Description Item
Adr Adr Value Size
------------------------ startup -------------------------
BP+7h 93Ch 20AFh Function Return Address (7 bytes)
BP 935h 0h Previous Frame Address (7 bytes)
-------------------------- main --------------------------
BP+Eh 931h ?? Return Object (4 bytes)
BP+7h 92Ah ?? Function Return Address (7 bytes)
BP 923h 935h Previous Frame Address (7 bytes)
BP-4h 91Fh ?? x (4 bytes)
-------------------------- Ready -------------------------
BP+7h 918h 505h Function Return Address (7 bytes)
BP 911h 923h Previous Frame Address (7 bytes)
------------------------- Recur 1------------------------
BP+Eh 90Dh 24 value (4 bytes)
BP+7h 906h 104h Function Return Address (7 bytes)
BP 8FFh 911h Previous Frame Address (7 bytes)
------------------------- Recur 2------------------------
BP+Eh 8FBh 12 y (4 bytes)
BP+7h 8F4h 218h Function Return Address (7 bytes)
BP 8EDh 8FFh Previous Frame Address (7 bytes)
------------------------- Recur 3------------------------
BP+Eh 8E9h 0 y (4 bytes)
BP+7h 8E2h 218h Function Return Address (7 bytes)
BP & SP 8DBh 8EDh Previous Frame Address (7 bytes) a. There must be a dividing line before each frame that indicates the name of the function it45
represents. If the function is being used recursively, that name must be followed by a46
space and a number indicating the frames recursive level.47
b. If a stack item represents a variable, place its name in the "Description" column.48
49
50
Continued on the next page...51
Function ready
Operation Instruction Address
assignment to temp 14Dh
Function gcd
Operation Instruction Address
2nd return in gcd 34Ah
Function main
Operation Instruction Address
assignment to result 577hPersonalized C2A2 requirements exclusively for Lawrence Woods (U06928025)
C/C++ Programming II (Section 177752)
Page 7(1/9/2024)
C2A2E3_177752_U069280251992-2022 Ray Mitchell Page 2 of 2 of C2A2E3
...C2A2E3 requirements continued52
53
3. Numeric values must be decimal or hexadecimal according to the guidelines below. Decimal54
values do not have a suffix while hexadecimal values must have an h suffix.55
a. The values of variables x and y and the number of bytes in each item must be decimal.56
b. All addresses must be hexadecimal.57
c. The BP offset values of relative addresses may be decimal or hexadecimal.58
59
4. Use a double question mark for the values of:60
a. All return objects.61
b. Variables that are assigned values after a function returns.62
c. Values for which insufficient information is provided.63
64
5. General formatting:65
a.Hard tab characters are not allowed.66
b. Columns must be aligned and there must be nothing between them but spaces.67
c. Do not number lines or add additional information.68
d. No line may exceed 80 columns.69
70
6. Before submitting your modified C2A2E3_StackDiagram.txt file to the assignment checker, delete71
everything in it except your modified title block and completed stack diagram.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!