Question 3
What do you expect the value of R16 after this code is executed? Explain in detail why?
Idi r17,LOW(0x850A)
out SPL,r17
Idi r17,HIGH(0x85EA);
out SPH,r17
Idi r16,0x01
Idi r17,0x0F
loop: push r16
push r17
dec r17
sbrc r17, 3
rjmp loop
IN r16, SPL