Sign in

username:

password:



Not a member?

Search hc11



Search tips

Subscribe to hc11



Ads

Discussion Groups

Discussion Groups | M68HC11 | BRCLR problem

Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).

BRCLR problem - Qu Ziguang - Jan 22 14:24:00 2005


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?





(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )


Re: BRCLR problem - Tony Papadimitriou - Jan 22 17:19:00 2005

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?




(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )