Loading…
2 of 2 objectives have lessons · 0 studied · 0 secure
What Cambridge says you should be able to do, in our words. Codes are the topic number plus the objective’s position.
Understand and carry out binary shifts.
Logical, arithmetic and cyclic shifts; left shift and right shift.
Taught in: Shifting bits: logical, arithmetic and cyclic · 6 questions
Understand how bit manipulation can be used to monitor or control a device.
Carry out bit manipulation operations. Test and set a bit using bit masking. The syllabus adds to the instruction set: bitwise AND, XOR and OR of the ACC with an operand (#n, Bn or &n) or with the contents of an address; LSL #n and LSR #n, which shift the bits in ACC logically n places left or right, introducing zeros at the vacated end; and labels, which name an instruction or give a symbolic address to a memory location holding data. Questions assume only one general purpose register (ACC).
Taught in: One byte, eight devices: monitoring and control, Masks: testing, setting and clearing one bit · 13 questions