Improved code consistency
This commit is contained in:
parent
d5bcf340e9
commit
a8d15a4305
3 changed files with 6 additions and 6 deletions
|
@ -29,9 +29,9 @@ func PushNumber(code []byte, number int) []byte {
|
|||
|
||||
// PushRegister pushes the value inside the register onto the stack.
|
||||
func PushRegister(code []byte, register cpu.Register) []byte {
|
||||
if register >= 8 {
|
||||
if register > 0b111 {
|
||||
code = append(code, REX(0, 0, 0, 1))
|
||||
register -= 8
|
||||
register &= 0b111
|
||||
}
|
||||
|
||||
return append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue