// bug02.c // linear memory access /* Copyright (C) 2016 H.Poetzl ** ** This program is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation, either version ** 2 of the License, or (at your option) any later version. */ // sdcc -mpic14 -p16f1718 --use-non-free -Wl-C bug02.c extern __at(0x010C) __sfr LATA; static volatile unsigned char __at (0x2000) linear[256]; // -------------------------------------------------- // main void main() { unsigned char idx = 255; LATA = linear[idx]; }