ok, going to have to come clean...
the reason i want to block off some memory addresses is because one of my original PIC's (877A) has faulty memory locations due to a slight power surge and brownout while being programed... yes, my PC PSU was wrecked... luckerly the only other damage was my graphics card...
i have a low level, really basic task for it to do, if i can get the program to skip the affected memory locations...
The blocks are...
0x0008 to 0x003F
0x0108 to 0x013F
0x0208 to 0x023F
0x0308 to 0x033F
0x0408 to 0x043F
0x0508 to 0x053F
0x0608 to 0x063F
0x0708 to 0x073F
Anyone see a paturn?... lol
the thaught occured to me to alter the ASM so that the memory table thing....
Code:
RAM_START EQU 00020h
RAM_END EQU 001EFh
RAM_BANKS EQU 00004h
BANK0_START EQU 00020h
BANK0_END EQU 0007Fh
BANK1_START EQU 000A0h
BANK1_END EQU 000EFh
BANK2_START EQU 00110h
BANK2_END EQU 0016Fh
BANK3_START EQU 00190h
BANK3_END EQU 001EFh
EEPROM_START EQU 02100h
EEPROM_END EQU 021FFh
avoides the faulty locations and recompile it using mplabs compiler...
But then i realised it wasn't going to be that easy...
:edit
Having said that... i could alter EEPROM_START to after the first bad block, manually insert a jump followed by enough 3FFF's, and hope the program fits in befor the seconds one (unlikely)...
Bookmarks