Subj : Re: RP2350 and Pico 2 - things missing To : The Natural Philosopher From : mm0fmf Date : Fri Aug 23 2024 10:26:51 On 23/08/2024 10:17, The Natural Philosopher wrote: > On 22/08/2024 11:57, Ahem A Rivet's Shot wrote: >> On Thu, 22 Aug 2024 11:00:26 +0100 >> Single Stage to Orbit wrote: >> >>> FAR and NEAR specifiers used with JMP >> >>     The obscenity was these qualifiers making their way into C source >> code - try writing (or even reading) the declaration for a near >> pointer to a >> function returning a far pointer to an array of functions returning near >> pointers to integers. >> >>     Then realise that you *also* wanted this source code to be portable. >> > I don't recall them ever appearing in C source. They are not part of the > C language. > AIR you could compile for 'small model' or 'large model' > > And with the early compilers I used, no attempt was made to think about > whether a jump was near or far. > > I think you got an assembler or  linker error if a target was 'out of > range' > > No I remember the joy of using NEAR and FAR in C for 8086 code. I can remember being forced to use them in zORLAND C/Zortech C++ and Borland C on 8086 code for PCs running DOS and in embedded 80186EB code. https://www.geeksforgeeks.org/what-are-near-far-and-huge-pointers/ https://en.wikipedia.org/wiki/Digital_Mars --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .