On 2 October 2015 at 15:53, glen herrmannsfeldt <[email protected]> wrote: >> "Tony Harminc" <[email protected]> wrote: > (snip) > >> L R14,R4 > > (snip) > >> This sets R14 to the address of the adcon in the entry you just found >> in the table (or it would if the above-mentioned boundary alignment >> problem wasn't there). You need > > No, this loads R14 from an address near the beginning of memory. > > Pretty sneaky calling it R4, but the value is 4, so the result is actually > > L R14,4
Yup - I missed that one, and not fir the first time. But the High Level Assembler surely will not miss it if the PAGE0 option is specified. Interesting how several of us commented on different aspects of the code snippet, and each caught something and missed something else. More to come, I'm sure. Tony H.
