OT: horrible 8086 segmentation

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : OT: horrible 8086 segmentation
De : none (at) *nospam* invalid.com (mm0fmf)
Groupes : comp.sys.raspberry-pi
Date : 25. Nov 2024, 18:33:37
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vi2cdh$2t0i8$1@dont-email.me>
User-Agent : Mozilla Thunderbird
Raspberry Pi relevance : I'm writing some Pi Pico code
I was doing some head scratching when I remembered I'd written something very similar in the distant past to what I was doing. I had to dig through piles of CD-Rs to find the one with the backups on from all those years back. It still reads fine, 21st July 1998 is the date on the CD. 26 years old.
Anyway, I've pulled the files from it on to the wee Linux machine for updating and use in the project. There's a date in the header saying "created 1993" and last changes were "16th July 1996". I was just starting to go bald then!
I've been rummaging through this old CD-R looking at what I was up to all those years ago and found all sorts of horrible 8086 segmentation management in the C code
e.g.
"
     // start of barrel
     EventRec far* searchp = (EventRec far*) work.bufs;
"
My eyes! My eyes! That was COMPACT model code, so 64k of code and 1MB of data, code addresses were 16bit offsets to the CS reg and data was far so 32 bits of segment and offset of DS or ES. And of course you had to be extra careful of any pointer arithmetic as a far pointer wrapped after 64k. You had to use slower HUGE pointers to get automatic normalisation. God it was shit.

Date Sujet#  Auteur
25 Nov 24 * OT: horrible 8086 segmentation11mm0fmf
26 Nov 24 `* Re: OT: horrible 8086 segmentation10Josef Möllers
27 Nov 24  +- Re: OT: horrible 8086 segmentation1mm0fmf
27 Nov 24  +* Re: OT: horrible 8086 segmentation4The Natural Philosopher
18 Dec07:24  i`* Re: OT: horrible 8086 segmentation3Lawrence D'Oliveiro
18 Dec21:33  i `* Re: OT: horrible 8086 segmentation2Kerr-Mudd, John
19 Dec20:57  i  `- Re: OT: horrible 8086 segmentation1Lawrence D'Oliveiro
1 Dec 24  `* Re: OT: horrible 8086 segmentation4Robert Roland
1 Dec 24   `* Re: OT: horrible 8086 segmentation3The Natural Philosopher
1 Dec 24    `* Re: OT: horrible 8086 segmentation2Richard Kettlewell
18 Dec07:22     `- Re: OT: horrible 8086 segmentation1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal