What you learn today
- Quiz on set instructions, logic and rounding
This week was about deciding without jumps. A comparison becomes a number, the number switches a device directly or picks a value with select. The quiz covers:
- Set instructions:
sgt,slt& co. return 0 or 1, the z variants compare with zero,seqzflips 0 and 1. - select: non-zero takes the first value, 0 the second.
- Logic:
and,or,xor,nor– bitwise, so only use them with clean 0/1 values.norreturns −1 instead of 1. - min, max, abs, sgn: limits, distance and direction.
- Rounding:
round,trunc,floor,ceiland the difference for negative numbers.
You pass from 60 %.
Tip
Questions of the form “What is in r0 after …?” can be checked right in the IC10 coder: type the line, run one tick, read the register.
Weekly quiz
11 questions. You pass from 60 % – the server does the grading.
Complete the day
- Passed the quiz with at least 60 %
Without an account progress is saved in this browser only.
Report a mistake in this lesson
Please sign in to report. Sign in