q/src/asm/Instruction.go
Eduard Urbach 312e3b2e31
All checks were successful
/ test (push) Successful in 15s
Implemented jumps and jump related optimizations
2025-06-27 15:01:49 +02:00

38 lines
No EOL
537 B
Go

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 Jump struct {
Label string
}
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{}