If you open up your xxxx.lst file, you can see where your assembler thinks the ram start and end locations are. For some reason, this sounds buggered. It also will show which MPASM version you are using, and which processor includes you are using.
Here's what mine looked like. You can compare it to yours and see if there are differences in RAM locations.
Code:
MPASM 5.38 UNTITLED.ASM 1-21-2011 10:05:20 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00001
00002 ; PICBASIC PRO(TM) Compiler 2.60LA, (c) 1998, 2009 microEngineering Labs, Inc. All Rights Reserved.
00000001 00003 _USED EQU 1
00004
00005 INCLUDE "C:\PBP\18F8527.INC"
00001 ;****************************************************************
00002 ;* 18F8527.INC *
00003 ;* *
00004 ;* By : Leonard Zerman, Jeff Schmoyer *
00005 ;* Notice : Copyright (c) 2008 microEngineering Labs, Inc. *
00006 ;* All Rights Reserved *
00007 ;* Date : 09/15/08 *
00008 ;* Version : 2.60 *
00009 ;* Notes : *
00010 ;****************************************************************
00017 LIST
00018 LIST p = 18F8527, r = dec, w = -311, w = -230, f = inhx32
00019 INCLUDE "P18F8527.INC" ; MPASM Header
00001 LIST
00002
00003 ;==========================================================================
00004 ; MPASM PIC18F8527 processor include
00005 ;
00006 ; (c) Copyright 1999-2010 Microchip Technology, All rights reserved
00007 ;==========================================================================
00008
02400 LIST
300000 32FF 00020 __CONFIG _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
300002 F31F 00021 __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
300006 FF8B 00022 __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _BBSIZ_BB2K_4L & _XINST_OFF_4L
00025 LIST
00F00000 00026 EEPROM_START EQU 0F00000h
00000040 00027 BLOCK_SIZE EQU 64
00006
00000000 00007 RAM_START EQU 00000h
00000F5F 00008 RAM_END EQU 00F5Fh
00000010 00009 RAM_BANKS EQU 00010h
00000060 00010 BANK0_START EQU 00060h
000000FF 00011 BANK0_END EQU 000FFh
00000100 00012 BANK1_START EQU 00100h
000001FF 00013 BANK1_END EQU 001FFh
00000200 00014 BANK2_START EQU 00200h
000002FF 00015 BANK2_END EQU 002FFh
00000300 00016 BANK3_START EQU 00300h
000003FF 00017 BANK3_END EQU 003FFh
00000400 00018 BANK4_START EQU 00400h
000004FF 00019 BANK4_END EQU 004FFh
00000500 00020 BANK5_START EQU 00500h
000005FF 00021 BANK5_END EQU 005FFh
00000600 00022 BANK6_START EQU 00600h
000006FF 00023 BANK6_END EQU 006FFh
00000700 00024 BANK7_START EQU 00700h
000007FF 00025 BANK7_END EQU 007FFh
MPASM 5.38 UNTITLED.ASM 1-21-2011 10:05:20 PAGE 2
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00000800 00026 BANK8_START EQU 00800h
000008FF 00027 BANK8_END EQU 008FFh
00000900 00028 BANK9_START EQU 00900h
000009FF 00029 BANK9_END EQU 009FFh
00000A00 00030 BANK10_START EQU 00A00h
00000AFF 00031 BANK10_END EQU 00AFFh
00000B00 00032 BANK11_START EQU 00B00h
00000BFF 00033 BANK11_END EQU 00BFFh
00000C00 00034 BANK12_START EQU 00C00h
00000CFF 00035 BANK12_END EQU 00CFFh
00000D00 00036 BANK13_START EQU 00D00h
00000DFF 00037 BANK13_END EQU 00DFFh
00000E00 00038 BANK14_START EQU 00E00h
00000EFF 00039 BANK14_END EQU 00EFFh
00000F00 00040 BANK15_START EQU 00F00h
00000F5F 00041 BANK15_END EQU 00F5Fh
00000000 00042 BANKA_START EQU 00000h
0000005F 00043 BANKA_END EQU 0005Fh
Bookmarks