CIS 351 |
Intro to Assembly |
Winter 2022 |
add $10, $5, $3
0x012c1020 = 0000 0001 0010 1100 0001 0000 0010 0000
?
parrotTrouble
that takes a Boolean and an int as input and returns true
if the parrot is talking before 7:00
or after 20:59 (i.e., the hour is less than 7 or greater than 20.)
(This is parrotTrouble 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 Tuesday, 8 February 2022, 2:57 PM