Hello,
newer pic18 (e.g. pic18f25k42, the one I'm working on), has extended the ram space to 16KB, that is, 14 bits addresses. As a consequence, they introduced a new movffl instruction (which uses 3 words), and expanded the bank register by 2 bits, to be able to reach the whole ram/sfr space (and they moved SFRs to the top of the new space, in the 0x3800-0x3fff range, so the new instructions are really required to use these devices).
Attached is a patch (against 1.5.0) which adds support for these devices and instruction. You may want to clean it up (maybe this deserves a new instruction table for example), but I could generate working code with it (talks with serial port, write to flash).
Hope this helps,
Anonymous
This is brilliant. Has anyone seen it?
how to import the patch. Does everything have to be changed by hand?
Andreas, DL4JAL
On Sun, Jun 27, 2021 at 02:29:22PM -0000, noreply@sourceforge.net wrote:
it's been a while ... but if I remember properly, the patch is self-contained,
nothing else has to be changed
--
Manuel Bouyer bouyer@antioche.eu.org
NetBSD: 26 ans d'experience feront toujours la difference
--