Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).
|
I am writing some code for measurement of a pulse width. I used this line: POLLRISE: brclr TFLG1, X $04 POLLRISE here TFLG1 is set to $23, X is set to $1000 The idea is loop around until the 4th bit of TFLG1 is cleared. However, when I tried to compile the code using AS11, it says: 106: Symbol undefined on pass 2 106: branch out of range and when I used the ASM command in Buffalo to debug, this line is displayed as: 2092 BRCL $23,X $00 $2092 It seems that "$04" is never interpreted by the assembler. How do I fix this problem? |
|
|
|
Remove spaces between the , (comma) and X. (Not sure if the mask needs a comma also). Anyway, play around with and without commas until you get it. ----- Original Message ----- From: "Qu Ziguang" <> To: < > POLLRISE: brclr TFLG1, X $04 POLLRISE > However, when I tried to compile the code using AS11, it says: > > 106: Symbol undefined on pass 2 > 106: branch out of range > It seems that "$04" is never interpreted by the assembler. How do I > fix this problem? |