Improved assembler
This commit is contained in:
parent
d5f752bdd4
commit
8e193c69b6
22 changed files with 329 additions and 139 deletions
|
@ -1,28 +0,0 @@
|
|||
package register
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Register uint8
|
||||
|
||||
const (
|
||||
R0 Register = iota
|
||||
R1
|
||||
R2
|
||||
R3
|
||||
R4
|
||||
R5
|
||||
R6
|
||||
R7
|
||||
R8
|
||||
R9
|
||||
R10
|
||||
R11
|
||||
R12
|
||||
R13
|
||||
R14
|
||||
R15
|
||||
)
|
||||
|
||||
func (r Register) String() string {
|
||||
return fmt.Sprintf("r%d", r)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue