 Question: Table 7-3, pg 7-40 states for BRAF bit
that after modifying w/ RSBX, end of loop must be more than 5 words away. While Sec
7.5.8.2 and Ex 7.58, pg 7-78 state that it should be 6 words. Which is correct?
Answer: You need 5 instruction words
before the last word in the block repeat. This figure does not include the last word in
the block repeat.
STM #9, BRC
RPTB endloop-1
RSBX BRAF
NOP
NOP
NOP
NOP
NOP
NOP
endloop: NOP
whereas this code will not:
BEGIN: STM #9, BRC
RPTB endloop-1
RSBX BRAF
NOP
NOP
NOP
NOP
NOP
endloop: NOP
|