minami
This commit is contained in:
@@ -84,8 +84,8 @@ struct Register : Comparable, CustomStringConvertible {
|
||||
|
||||
func possibleAs(fromB5 b5Suffix: Int) -> [Register] {
|
||||
let choices: [Register] = (0b000...0b111).compactMap { aSuffix in
|
||||
let aShift = aSuffix ^ 1
|
||||
let b4 = aShift ^ 5
|
||||
let aShift = aSuffix ^ 1 // Replace this with first XOR literal
|
||||
let b4 = aShift ^ 5 // Replace this with second XOR literal
|
||||
let a = Register(value: (b4^b5Suffix) << aShift, mask: 0b111 << aShift)
|
||||
return a.combine(with: Register(value: aSuffix, mask: 0b111))
|
||||
}
|
||||
|
Reference in New Issue
Block a user