From: SourceForge.net <no...@so...> - 2006-10-27 08:21:58
|
Bugs item #1584216, was opened at 2006-10-25 09:50 Message generated for change (Comment added) made by frief You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1584216&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: msc51(8051) target Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Rafał (rafal_b) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect test Initial Comment: if (ir_pos != serial_pos) is translared to mov a,_ir_pos jz I just come back to assembler. ---------------------------------------------------------------------- >Comment By: Frieder Ferlemann (frief) Date: 2006-10-27 10:21 Message: Logged In: YES user_id=589052 thanks for reporting back:) ---------------------------------------------------------------------- Comment By: Rafał (rafal_b) Date: 2006-10-26 22:16 Message: Logged In: YES user_id=1627673 Volatile is fixing problem. ---------------------------------------------------------------------- Comment By: Frieder Ferlemann (frief) Date: 2006-10-25 10:08 Message: Logged In: YES user_id=589052 you most likely forgot to use the keyword "volatile" for the variable serial_pos? And serial_pos is probably changed within an IRQ routine? If not declared as volatile SDCC is correct to assume that serial_pos never deviates from its startup value (zero). I set this report to pending, please respond (with compiler version etc) to this report if using volatile does not fix your problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1584216&group_id=599 |