Daniel,
It appears that whenever RAM1 is selected by the compiler, I get the following message:
Link Error : L1907: Fixup overflow in main, to test2 type 1, at offset 0x19
Link Error : L1907: Fixup overflow in main, to test2 type 1, at offset 0x1C
Link Error : L1907: Fixup overflow in main, to test3 type 1, at offset 0x1E
Link Error : L1907: Fixup overflow in main, to test3 type 1, at offset 0x21
Link Error : L1907: Fixup overflow in main, to test4 type 1, at offset 0x23
Link Error : L1907: Fixup overflow in main, to test4 type 1, at offset 0x26
Link Error : Link failed
Here's what I see in the .MAP file:
test BB 2 2 2 .common
test1 BD 2 2 2 .common
test2 100 2 2 0 RAM1_104
test3 102 2 2 0 RAM1_104
test4 104 2 2 0 RAM1_104
MODULE: -- RTSRS08.C.o (ansii.lib) --
test - test4 are unsigned ints. Looks like when it tries to use RAM1, something gets
messed up.
Below is the .PRM file.
Thanks,
Tim
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
TINY_RAM = READ_WRITE 0x0005 TO 0x000D;
RAM = READ_WRITE 0x0050 TO 0x00BF;
RAM1 = READ_WRITE 0x0100 TO 0x017F;
RESERVED_RAM = NO_INIT 0x0000 TO 0x0004;
ROM = READ_ONLY 0x3000 TO 0x3FF9;
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
RESERVED INTO RESERVED_RAM;
TINY_RAM_VARS INTO TINY_RAM;
DIRECT_RAM_VARS INTO RAM, TINY_RAM;
DEFAULT_RAM INTO RAM, RAM1, TINY_RAM;
DEFAULT_ROM INTO ROM;
END