From: SourceForge.net <no...@so...> - 2004-04-21 03:45:18
|
Bugs item #939042, was opened at 2004-04-20 20:45 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=939042&group_id=599 Category: pic14 target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: constant assignment problem Initial Comment: when assigning a constan to a value, w is being moved into the memory address at the value of the constant. byte task_delay[MAX_TASKS]; for (current_task_No=0; current_task_No<MAX_TASKS; current_task_No++) task_delay[current_task_No] = 100; produces the following MOVF r0x25,W ;id=733,key=000,flow seq=006 MOVWF FSR ;id=734,key=001,flow seq=006 MOVF 0x64,W ;id=735,key=002,flow seq=006 BCF STATUS,5 ;id=1285,key=000,flow seq=006 BCF STATUS,6 ;id=1286,key=000,flow seq=006 MOVWF INDF ;id=736,key=003,flow seq=006 where the MOVF 0x64,W should be MOVLW 0x64 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=939042&group_id=599 |