I am seeing a weird effect on the MPLAB simulator. I have the code fragment movlw D'5' movwf Spot1 where Spot1 is at 30. Assemble the code, single step through, first instruction changes W to 5, second instruction changes location 30 to a 5. No big surprise. Now, select Debugger->Clear Memory->All memory Click reset, single step again First instruction changes W to ff (!), second instruction appears to do nothing. Hit reset again and step, now W is decremented (by the movlw D'5' instruction!) to fe. Each repeat decrements W. What is up with this? --McD _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist