Improved assembler

This commit is contained in:
Eduard Urbach 2023-10-23 12:37:20 +02:00
parent d5f752bdd4
commit 8e193c69b6
Signed by: eduard
GPG key ID: 49226B848C78F6C8
22 changed files with 329 additions and 139 deletions

29
src/register/ID.go Normal file
View file

@ -0,0 +1,29 @@
package register
import "fmt"
// ID represents the number of the register.
type ID uint8
const (
R0 ID = iota
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
R11
R12
R13
R14
R15
)
func (r ID) String() string {
return fmt.Sprintf("r%d", r)
}