I was encountering some quite strange differences in the behaviours of my PIC16F628a microcontroller compared to the MPLAP built-in simulator.
After a long search, it turned out to be different due to the free cells' default values.
In the simulator, when accessing a memory location that has not been initialized, the W register is loaded with 0x00, whereas in the actual device, some other value may be loaded (I don't remember if it was 0xFF or 0x7F).
Is there a way to either make all unused bytes 0x00 on the device or to change the default value of the simulator to the PIC's uninitialized default value?
(It might also be that my question shows that I didn't understand some fundamental principles about PICs... In this case I would be grateful if someone would teach me. ;-) )