|
I have successfully done with my SimpleFunction VM code but I am getting an error in the 'NestedCall" test and I don't know where exactly I am going wrong! I am tired at this point(it's been three days) about how exactly should I debug the error which is "Comparision failure at line 2". I tried various methods suggested in the forum but it's not working, my Output is as below:
| RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] | RAM[5] | RAM[6] |
| 362 | 356 | 351 | 4001 | 5000 | -1 | -1 |
which must be as shown below to be correct:
| RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] | RAM[5] | RAM[6] |
| 261 | 261 | 256 | 4000 | 5000 | 135 | 246 |
Please suggest to me what I need to do!
Firstly I thought my Call and return code must be having an error but it has been successfully executed in the SimpleFunction VM code! which means I am not wrong here, then I tried to run parallelly my generated assembly code line by line(with some markers) and VM code in VM Emulator, but since it is very long I am unable to do so.
Does my existing VM code need any modifications after SimpleFunction test?
|