Reorganized file structure
This commit is contained in:
parent
c7354b8613
commit
6fe30f31da
57 changed files with 431 additions and 614 deletions
11
src/build/cpu/Register.go
Normal file
11
src/build/cpu/Register.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package cpu
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Register represents the number of the register.
|
||||
type Register uint8
|
||||
|
||||
// String returns the human readable name of the register.
|
||||
func (r Register) String() string {
|
||||
return fmt.Sprintf("r%d", r)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue