bitfield/gmachine/calc.go

15 lines
144 B
Go
Raw Permalink Normal View History

2022-02-23 01:31:53 +01:00
package gmachine
func Calc() uint64 {
g := New()
g.Memory = []uint64{
OpSETA,
3,
OpDECA,
OpDECA,
OpHALT,
}
g.Run()
return g.A
}