36 ;r0 ... lut address (can be overwritten)
37 ;r1 ... address to input, every byte is a new input
38 ; includes pc implicitly
39 ;r3 ... effective stack address
42 ;decrement address to input by 1
44 ;load base address of stack
50 ;increment input address
54 ;we need to multiply input by 4 to get correct address offset
56 ;calc position in jumptable
80 ;check if sp-1 is even or odd
84 ;if odd decrement sp-1
86 ;just to get zero flag unset
90 ;add to sp-1 to result
131 ;case 0 1 2 3 4 5 6 7 8 9
138 ;increment stack addr
153 ;compare sp-1 with sp
155 ;set r8 to -1 if less than
168 ;increment stack addr
195 ;store result to stack
212 ;increment pc if == 0
216 ;set r6 to 0 (to clear upper bytes)
220 ;compare input with neg. max of 8 bit
233 ;decrement stack addr
302 .fill 129, vm_default