Implemented instruction lists

This commit is contained in:
Eduard Urbach 2023-10-21 17:46:20 +02:00
parent 315d2d075e
commit d5f752bdd4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 165 additions and 23 deletions

21
src/asm/Mnemonic.go Normal file
View file

@ -0,0 +1,21 @@
package asm
type Mnemonic uint8
const (
NONE Mnemonic = iota
MOV
SYSCALL
)
func (m Mnemonic) String() string {
switch m {
case MOV:
return "mov"
case SYSCALL:
return "syscall"
}
return "NONE"
}