82
PROGRAM BRANCHING
9. Which part of internal RAM cannot be accessed by
the DJNZ instruction?
10. When the CJNE instruction is associated with a
directly addressed port, from which part of the
port would it access its data?
Think and Solve
1. Is it possible to implement the DJNZ instruction
using register A? Justify your answer.
2. DJNZ instruction off ers the usage of an 8-bit counter.
How would it be possible to use a 16-bit counter for
decrement and jump if not zero procedure?
3. Codes 01H and 55H are first and second bytes
of a 2-byte AJMP instruction. Assuming that
the first byte is located at address 07FFH, what
would be the jumping address for this AJMP
instruction?
4. Why are the lengths of backward and forward
jumps ...