Implemented register to register instructions

This commit is contained in:
Eduard Urbach 2024-06-23 20:26:53 +02:00
parent 1c27f0cad2
commit a9d43a8716
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 171 additions and 16 deletions

View file

@ -0,0 +1,18 @@
package asm
import (
"fmt"
"git.akyoto.dev/cli/q/src/build/cpu"
)
// RegisterRegister operates with two registers.
type RegisterRegister struct {
Destination cpu.Register
Source cpu.Register
}
// String returns a human readable version.
func (data *RegisterRegister) String() string {
return fmt.Sprintf("%s, %s", data.Destination, data.Source)
}