2e06a9e52d/vm/gonga/devs.go
| 36877ecffde0eb92046bc93494abc376bd51d4fa | 2e06a9e52d352e2a3171540c93bc1712ad6b1799 | ||
|---|---|---|---|
75 | return string(data[a:w]) | 75 | return string(data[a:w]) |
76 | } | 76 | } |
77 | 77 | ||
78 | func (vm *NgaroVM) wait(port *[nports]int, tos int, depth int) (spdec int) { | 78 | func (vm *NgaroVM) wait(port *[nports]int, tos, depth, rdepth int) (spdec int) { |
79 | var c [1]byte | 79 | var c [1]byte |
80 | switch { | 80 | switch { |
81 | case port[0] == 1: | 81 | case port[0] == 1: |
... | ... | ||
137 | case -5: // Stack depth | 137 | case -5: // Stack depth |
138 | port[5] = depth | 138 | port[5] = depth |
139 | case -6: // Address stack depth | 139 | case -6: // Address stack depth |
140 | port[5] = stackDepth | 140 | port[5] = rdepth |
141 | case -9: // Bye! | 141 | case -9: // Bye! |
142 | vm.EndOk <- true | 142 | vm.EndOk <- true |
143 | default: | 143 | default: |
Download diff