CIS 351 |
Intro to Assembly |
Fall 2021 |
add $10, $5, $3
0x012c1010 = 0000 0001 0010 1100 0001 0000 0001 0000?
makes10 that takes two ints as input and returns true if one if them is 10 or if their sum is 10.
(This is makes10 from CodingBat.)0xca and 0x63 0xca or 0x63 not 0x63 not 0x0 not 0x1 not alone won't "flip" 1 to 0 and 0 to 1.
What operation can you add that will have the desired effect?
true if one or the other is teen, but not both.
(This is loneTeen from CodingBat.)Updated Monday, 11 October 2021, 3:38 PM