This commit is contained in:
parent
2b703e9af2
commit
70c2da4a4d
40 changed files with 821 additions and 117 deletions
34
src/asm/Instruction.go
Normal file
34
src/asm/Instruction.go
Normal file
|
@ -0,0 +1,34 @@
|
|||
package asm
|
||||
|
||||
import "git.urbach.dev/cli/q/src/cpu"
|
||||
|
||||
type Instruction interface{}
|
||||
|
||||
type Call struct {
|
||||
Label string
|
||||
}
|
||||
|
||||
type FunctionStart struct{}
|
||||
type FunctionEnd struct{}
|
||||
|
||||
type Label struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
type MoveRegisterLabel struct {
|
||||
Destination cpu.Register
|
||||
Label string
|
||||
}
|
||||
|
||||
type MoveRegisterNumber struct {
|
||||
Destination cpu.Register
|
||||
Number int
|
||||
}
|
||||
|
||||
type MoveRegisterRegister struct {
|
||||
Destination cpu.Register
|
||||
Source cpu.Register
|
||||
}
|
||||
|
||||
type Return struct{}
|
||||
type Syscall struct{}
|
Loading…
Add table
Add a link
Reference in a new issue