Friends, I am using MPLAB-SIM to debug a program. My question is that it goes beyond the 2K (I have 8K to play with) and I am setting (hopefully) the PCLATH register to the 2-4K setting. Ok the proble; the code works fine until I get to a certain point. Then next thing I know, when an instruction says: movlw 0x04 movwf portc the simulator acts funny! The "w" register will get the correct value, but portc doesn't change value!! Does anybody have any ideas! I am using MPLAB 4.0. And unfortunately, this is my first program over 2K (about 2/5 done debugging) and the first time I've really used the simulator, just hope I'm not missing any thing. I'm thinking it has something to to with the PCLATH not being set correctly??!! Any ideas/suggestions would be GREATLY appreciated!!!!! Thanks.... Best regards, Steven Steven Kosmerchock Engineering Technician/Student CELWAVE Phoenix Arizona USA Email: steve.kosmerchock@celwave.com www.geocities.com/researchtriangle/lab/6584