Deutsch   English   Français   Italiano  
<vi70eo$3vogk$8@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: The Natural Philosopher <tnp@invalid.invalid>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: OT: horrible 8086 segmentation
Date: Wed, 27 Nov 2024 11:40:07 +0000
Organization: A little, after lunch
Lines: 43
Message-ID: <vi70eo$3vogk$8@dont-email.me>
References: <vi2cdh$2t0i8$1@dont-email.me> <lqmf9uF4bggU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 12:40:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d3a623bf95e4349e30bbb37a7e6182dd";
	logging-data="4186644"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+unsnq4yDwm7PwKJen+iW1CQ60BLBda3o="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OFRrFqHt0rn/kJ5y1vcQJA4Pstc=
Content-Language: en-GB
In-Reply-To: <lqmf9uF4bggU1@mid.individual.net>
Bytes: 2305

On 26/11/2024 17:37, Josef Möllers wrote:
> On 25.11.24 18:33, mm0fmf wrote:
> [...]
> 
>> 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.
>>
> 
> And to consider that, at that time, processors like MC68000 or NS32016 
> were readily available.
> 
Backwards compatibility.
DOS came from 8080 based CP/M , to run on an 8086, to where 8 bit code 
could be easily ported.

And so we were stick with that architecture.

A prime example off 'mass marketing always wins over excellence'

and
'nothing succeeds like success'



-- 
Labour - a bunch of rich people convincing poor people to vote for rich 
people by telling poor people that "other" rich people are the reason 
they are poor.

Peter Thompson