Added more tests
This commit is contained in:
parent
a466281307
commit
8eabcf258d
16 changed files with 399 additions and 26 deletions
|
@ -5,11 +5,11 @@ import (
|
|||
)
|
||||
|
||||
// OrRegisterNumber performs a bitwise OR using a register and a number.
|
||||
func OrRegisterNumber(code []byte, destination cpu.Register, number int) []byte {
|
||||
return encodeNum(code, AddressDirect, 0b001, destination, number, 0x83, 0x81)
|
||||
func OrRegisterNumber(code []byte, register cpu.Register, number int) []byte {
|
||||
return encodeNum(code, AddressDirect, 0b001, register, number, 0x83, 0x81)
|
||||
}
|
||||
|
||||
// OrRegisterRegister performs a bitwise OR using two registers.
|
||||
func OrRegisterRegister(code []byte, destination cpu.Register, operand cpu.Register) []byte {
|
||||
return encode(code, AddressDirect, operand, destination, 8, 0x09)
|
||||
func OrRegisterRegister(code []byte, register cpu.Register, operand cpu.Register) []byte {
|
||||
return encode(code, AddressDirect, operand, register, 8, 0x09)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue