Comparison failure at line 2 in testing StackTest.asm
I passed all tests and stuck at this test "StackTest.asm" and get this error "Comparison failure at line 2".
this test based on (gt, lt, eq, neg, not). And I see that I implement them right. sudocode of eq.asm
- sp--; D=*sp; sp--; D = *sp-D;
- if D == 0 them *sp = -1
- else *sp =0
can anyone see my equivalence asm code of (eq, gt, lt) they are almost the same.It will be a great help.
Re: Comparison failure at line 2 in testing StackTest.asm
Thank you cadet1620, after following the behavior of the execution of the TestStack.asm in the cpuemulator i discovered that all labels of (gt, lt, eq).asm are has the same name and that results in incorrect resuts. so I started to index them and TestSatck.asm passed the test.