Files
avo/internal/inst/types.go

25 lines
271 B
Go
Raw Normal View History

2018-11-20 11:44:44 -06:00
package inst
type Instruction struct {
Opcode string
Forms []Form
}
type Form struct {
Operands []Operand
CPUID []string
}
type Operand struct {
Type string
Action Action
}
type Action uint8
const (
R Action = 0x1
W Action = 0x2
RW Action = R | W
)