36 ;r0 ... lut address (can be overwritten)
39 ;r3 ... effective stack address
40 ;r4 ... effective input addr
45 ;load base address of stack
53 ;generate effective input addr
57 ;we need to multiply input by 4 to get correct address offset
59 ;calc position in jumptable
83 ;check if sp-1 is even or odd
87 ;if odd decrement sp-1
89 ;just to get zero flag unset
93 ;add to sp-1 to result
134 ;case 0 1 2 3 4 5 6 7 8 9
141 ;increment stack addr
156 ;compare sp-1 with sp
158 ;set r8 to -1 if less than
171 ;increment stack addr
198 ;store result to stack
215 ;increment pc if == 0
219 ;set r6 to 0 (to clear upper bytes)
223 ;compare input with neg. max of 8 bit
236 ;decrement stack addr
305 .fill 129, vm_default