Here my problem:
-SimpleFunction=PASS
-NestedCall=
FAIL-FibonacciElement=
FAIL-StaticsTest=
FAIL
NestedCall (Correct Output)
| RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] |
RAM[5] | RAM[6] |
| 261 | 261 | 256 | 4000 | 5000 |
135 | 246 |
NestedCall (My Output)
| RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] |
RAM[5] | RAM[6] |
| 261 | 261 | 256 | 4000 | 5000 |
0 | 246 |
FibonacciElement(Correct Output)
| RAM[0] |RAM[261]|
| 262 | 3 |
FibonacciElement(My Output)
|
RAM[0] |
RAM[261]|
|
257 | 0 |
FibonacciElement(My Output- with modified RAM location)
| RAM[0] |
RAM[256]|
|
257 | 3 |
StaticsTest(Correct Output)
| RAM[0] |RAM[261]|RAM[262]|
| 263 | -2 | 8 |
StaticsTest(My Output)
|
RAM[0] |RAM[261]|RAM[262]|
|
258 | 0 | 8 |
StaticsTest(My Output modified memory position)
| RAM[0] |
RAM[256]|
RAM[257]|
|
258 | -2 | 8 |
So when looking at my results it seems like I have a stack pointer skew .. I am not sure why it didn't show up in
NestedCall - The only issue was in the temp section RAM[5] and I overwrite the section all the time for many different operations.. I didn't think that it was important because I was was under the impression that the temp section was undefined. I am not sure that it matters but maybe it is an indication of why I am having issues in another files. Also, my other final results match
Nestedcall Stack Diagram.
NestedCall.asmFibonacciElement & StaticsTest:
The only thing that I can think of is that it is some kind of stack skew that I am not understanding. I have made a lot of unnecessary changes in the code, done a lot of print statement and in the end the sum total of my efforts have brought me to this this forum. begging for help .
FibonacciElement.asmStaticsTest.asm
I have uploaded the files.
Please let me know if I can send anything to help the debugging process. Any assistance is appreciated.