On Thursday, September 29, 2022 at 1:13:56 AM UTC+8,
s_dub...@yahoo.com wrote:
> > The practicality may or may not kick in
> > after the Russians start a nuclear war after
> > being frustrated and humiliated in Ukraine.
> >
> > The only people who may still be able to
> > manufacture chips may be universities,
> > and they can only manage 8 bit processors.
> >
> Seems like the same 1949 thinking as:
> Surviving Atomic Attack
>
https://www.youtube.com/watch?v=ccBipSFdB5g
> Interesting bomberairplane depiction.
>
> More likely you'll be wishing for an abacus and slide rule.
Currently I live in rural Philippines. Under a certain theory,
Manila and Quezon will be nuked to eliminate the
industrial capability, but I will be fine. The video you
linked started with large populations, so not relevant.
Food is probably not going to be a problem here either,
especially with rice farms still be farmed by hand.
Maybe I should take a photo of a carribou walking
past my house too.
There is a manual water pump for a well about 60
meters from my house. And owned by my wife
actually. It was built by my father-in-law and gives
our neighborhood access to free water.
I'm sure there will be problems, maybe even
cannibalism, which I may or may not survive.
The Philippines has a concept of a "debt of
gratitude", and my father-in-law is elected as
a councilor because he has a reputation for
helping others.
Hopefully that counts when people are deciding
who to eat.
Assuming I survive, my multiple (about 20 or so)
phones capable of running PDOS on ridiculously
low energy will survive. Unfortunately the solar
power I have produces even more ridiculously low
energy. But I just realized I have a new solar to
experiment with, so maybe I should see if that is
better.
Regardless, the power is non-zero, meaning work
on PDOS/86 can be done in preparation for
new chips produced by universities.
Maybe I need to find the nearest university that has
that capability. I suspect no Philippines university has
that capability, but regardless, it is beyond the scope
I have set for myself to organize boats to acquire
chips from Taiwanese universities or whatever.
> > Before we even start on practicalities,
> > I would like to understand the theoretical underpinnings,
> > using the 80386 ex as an aid to
> > understanding.
> >
> I don't know what 'theoretical underpinnings' means.
> Perhaps you consult with electrical engineers involved in the design.
No, I do not wish to be involved on the hardware side,
except for some basic questions like what's the extra
cost of the 8086 if variable shifts are added? Which
has already been answered, which is 5%.
It is the software side I am interested in.
> Computer scientists wanted separate Code and Data, CS & DS, as mentioned before.
There's no sensible alternative for the segmentation
model, is there?
> > I've already identified what looks
> > to me to be bad design decisions.
> >
> > 1. Not making the 8080 compatible
> > with a future 8086.
> >
> It would take a seer to forecast 'fore-ward compatibility'.
Sure. I'm not claiming I could have done a better job
if I had been there at the time.
I'm suggesting that we as a group, could identify, with
the benefit of hindsight, what the flaws were.
Then we could construct an x86-inspired path from
8 bit to 64 bit that eliminates all the flaws we believe
we have identified.
I know there are voices who call for totally replacing
x86 with RISC-V or whatever, but that can be a parallel
effort, which I may join at a later date.
In the Philippines, smartphones are ubiquitous, but PCs
are not. You can get external USB keyboards for 96 pesos,
about US$2. Yesterday I made an order for 10 of them.
I have heard people say don't try to program on a
smartphone - you need a PC.
I think I didn't have a smartphone at the time, so
didn't know what the issue was.
Since then I have programmed on PDOS even without
an external keyboard and was successful.
With an external keyboard requires positioning, but
once positioned seems fine. I haven't written an
actual program though.
Regardless, for an addition maybe US$5 including
adapter you can likely turn your smartphone into
a PC. I did find one Android that wouldn't start
PDOS under Bochs. It crashed. Othere phones also crashed,
but the workaround was to rename vhd to img.
Another workaround that may be required is to
change the file selection from system to in-app.
It would be nice if I could point this out to the
education system, and they encouraged people to
spend US$5 to get PCs for computer classes.
But it probably won't happen.
Regardless, there will be surviving PCs, but needing
a lot of power, and mains power that probably doesn't
exist. But some people have solar power, so they
could run a real PC.
As hardware dies, there will be no replacements.
The replacements on the horizon will be 8 bit ones
from universities.
I may not be involved in that. I'll stick with
working on PDOS/86 under emulation until all 20 of
my phones give out.
But I will touch base with the universities and let
them know that if they head in a particular direction,
they will have access to a clean OS for low capability
PCs.
Not crappy posix that relies on VM existing.
But my clean design comes at a cost, which is that
it realistically requires 2 MiB of memory to do
what Freedos can do in 1 MiB. At least worst case
scenario. I have another design (pdos-generic) that
may match Freedos.
So if the new industry goes down a path from 8 bit
to 16 bit, that, just like in the real world,
sees people running MSDOS when actually there is
much more than 1 MB of memory available, but their
app is restricted to 640k, PDOS/86 would have its
chance to shine. The universities just need to
provide a flexible shift, or even a fixed 5-bit
shift, and I'll have what is needed. Fixed 5-bit
will still be limiting, but it won't rule PDOS/86
out.
> Stylistically, they both have:
> An Accumulator - AF AX
> An index register - HL BX and BP
> A Stack Pointer - SP SP
> A Program Counter - PC IP
> A data register - DE DX
> A data register - BC CX
> So, there is some synergy there.
But can you answer the question - can that
synergy be total, so that the 8080-replacement
can be a subset of the 8086, or would both
processors need some adjustment?
> Although alot of programming wizardry was done in 61k the
> future of 'bigger data' space was going to swap the 8080
> abilities.
Sure. There is no question of following the path
from 8 bit to 64 bit.
Some people dispute introducing segmentation as
a somewhat temporary road along that path, but
I'm not one of them.
> The 'variable shift' concept totally escapes me.
> Is it not possible that the cpu can already accomplish it, in other terms?
> At the end of the day, the addressing modes resolve to a linear address.
The 80286/80386 can accomplish the equivalent of a
variable shift, if you line up the selectors, and
you prepare for this in your programming, including
the OS.
And I intend to do this too.
But the 80286 is much more difficult to produce than
a modified 8086 that does 5-bit shifts. I don't want
to rule that out either. And to me that is a very
logical/clean thing to do regardless. Unless you can
prove via maths that 4 has some magical power. Even
if someone produces an 8086 that has 4 hardcoded,
zero chance of changing it, which indeed is exactly
the case in real life, that's no reason for the
software, including the OS, to treat the number 4
as holy writ.
Even though no-one did, there was never any barrier
to someone producing an 8086-5 that did 5-bit shifts.
And with FPGA, maybe the "no-one did" will change.
Even if it is just for fun. And with Bochs or
equivalent it becomes even more possible.
> > I don't even properly understand the
> > current state we are in, nor do I
> > know if that was necessary.
> A 1949 frame of view, ah but we're some seven decades past that..
I'm not sure where we are, or even who "we" is.
BFN. Paul.
(Yay, I can touch-type again!)