#๐ Need to find 10 values from a series of asserts
6 messages ยท Page 1 of 1 (latest)
@fiery dew
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
tmp1 = regs[4]
assert ((tmp1 >> 2) & 140) == 0
tmp1 = regs[7]
tmp2 = regs[9]
assert (tmp1 ^ 139) ^ tmp2 == 151
tmp1 = regs[2]
assert (tmp1 & 195) == 67
tmp1 = regs[8]
assert (tmp1 & 65) == 64
tmp1 = regs[5]
tmp2 = regs[3]
assert (tmp1 ^ 237) ^ tmp2 == 253
tmp1 = regs[5]
tmp2 = regs[6]
assert ((tmp1 >> 3) * (tmp2 << 3)) == 6640
tmp1 = regs[5]
assert ((tmp1 >> 6) & 99) == 1
tmp1 = regs[3]
tmp2 = regs[4]
assert (tmp1 ^ 160) ^ tmp2 == 166
tmp1 = regs[1]
assert ((tmp1 >> 6) & 90) == 0
tmp1 = regs[4]
assert ((tmp1 >> 6) & 223) == 1
tmp1 = regs[2]
tmp2 = regs[4]
assert (tmp1 ^ 188) ^ tmp2 == 182
tmp1 = regs[9]
tmp2 = regs[2]
assert (tmp1 * tmp2) == 6557
tmp1 = regs[8]
tmp2 = regs[6]
assert ((tmp1 >> 3) * (tmp2 << 2)) == 3320
tmp1 = regs[2]
tmp2 = regs[5]
assert (tmp1 - tmp2) == -4
tmp1 = regs[6]
tmp2 = regs[3]
assert (tmp1 * tmp2) == 5561
tmp1 = regs[9]
assert ((tmp1 >> 5) & 158) == 2
tmp1 = regs[4]
tmp2 = regs[2]
assert (tmp1 - tmp2) == -10
tmp1 = regs[4]
assert ((tmp1 >> 2) & 122) == 16
basically i need to find out what regs[1], regs[2] ..., regs[9] is
@fiery dew
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ Need to find 10 values from a series of asserts