dd551d7192/vm/gonga/devs.go

81be6a759539aac15f78155a22b2c7e42cb70e12dd551d71920779212829c7c781ca8c4d654d8935
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, ip int) (spdec int) {
78
func (vm *NgaroVM) wait(port *[nports]int, tos int, depth 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:
...
...
135
		case -1: // Image size
135
		case -1: // Image size
136
			port[5] = len(vm.img)
136
			port[5] = len(vm.img)
137
		case -5: // Stack depth
137
		case -5: // Stack depth
138
			port[5] = stackDepth
138
			port[5] = depth
139
		case -6: // Address stack depth
139
		case -6: // Address stack depth
140
			port[5] = stackDepth
140
			port[5] = stackDepth
141
		case -9: // Bye!
141
		case -9: // Bye!