eblc1388
Active Member
Am I correct to say that a zero in W would result in an infinite loop in the table lookup code:
If W is "0", then it will not change PCL, the next instruction is then executed and the literal 'a' is return in W. Or will the next instruction be the Addwf itself?
If W is "1", then PCL is modified to point to the retlw 'a' instruction so again it will return the lateral 'a' in W.
Code:
Table
addwf PCL,F
retlw 'a'
retlw 'b'
....
If W is "0", then it will not change PCL, the next instruction is then executed and the literal 'a' is return in W. Or will the next instruction be the Addwf itself?
If W is "1", then PCL is modified to point to the retlw 'a' instruction so again it will return the lateral 'a' in W.