Byte Trace.
Trace the program. Guess the four bytes it prints, in order. You have six tries.
Program
hexOutput guesses
✓ Right byte & place
↔ Elsewhere
× Absent
How to read the program
- LOAD nn
- Set the register to the hex byte
nn. - ADD nn
- Add
nn. Keep the last two hex digits if the sum overflows.F0 + 20 → 10. - XOR nn
- Flip the register bits wherever
nnhas a 1.AF XOR 0F → A0. - OUT
- Print the current byte. It stays in the register until the next instruction changes it.