Then you can have each op code operating on the ScriptState (or whatever name):

```go
func (st *ScriptState) no_op {
    st.cost += 1
    return
}