This commit is contained in:
Michael McLoughlin
2018-11-20 11:44:44 -06:00
parent 33ef56f40e
commit 7c2990754f
7 changed files with 2519 additions and 4 deletions

24
internal/inst/types.go Normal file
View File

@@ -0,0 +1,24 @@
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
)