What you learn today
- Quiz on ReferenceId, device checks and deprecated instructions
This week was about not addressing devices blindly. The key points for review:
- ReferenceId: every device number is fixed. You read it with
l r0 d0 ReferenceId, after thatl r1 r0 Temperatureworks with the number in the register. - sdse / sdns / bdse / bdns: first ask whether a device is there, then read.
- bdnvl / bdnvs: jump when a device cannot read or cannot write a LogicType.
- dr0: the pin whose number is in
r0– ideal for loops over all pins. - Deprecated:
ld,sd,getd,putdandlabelstill run but no longer belong in new code.l,s,getandputtake the ReferenceId themselves.
You pass from 60 %, the explanations appear after handing in.
Weekly quiz
10 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