Implemented instruction lists
This commit is contained in:
parent
315d2d075e
commit
d5f752bdd4
12 changed files with 165 additions and 23 deletions
|
@ -1,7 +1,11 @@
|
|||
package register
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Register uint8
|
||||
|
||||
const (
|
||||
R0 = iota
|
||||
R0 Register = iota
|
||||
R1
|
||||
R2
|
||||
R3
|
||||
|
@ -18,3 +22,7 @@ const (
|
|||
R14
|
||||
R15
|
||||
)
|
||||
|
||||
func (r Register) String() string {
|
||||
return fmt.Sprintf("r%d", r)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue