640 Kilobytes!!!!1!!1 I shit you not. That is like 10 times the size of Donald Trump’s brain.
Recently I was trying to get my son enthousiastic for programming. At the time of writing he is 7 years old and getting interested in all kinds of electronics, so I thought that getting acquainted with programming would not hurt him. And I like to think of myself as a parent that stimulates his kids, so I used that as an excuse to look into older computers, because nostalgics.
My kids grew up with LED monitors and TV’s and never really saw a real cathode tube, except on the episodes of Pat & Mat. I still remember the soft fading sound of of the tv turning off and the graphics vanishing into this thin line.
Besides that, I am a fan of clicky keyboards. I have a DasKeyboard 4C ultimate tenkeyless with Cherry Blue switches and a 4C Profressional with brown switches. Sitting at home during the COVID-19 period, made me google old skool stuff a lot.
So first I laid my eyes on a IBM Model M2 and got this pretty cheap on the dutch eBay. Getting this to work on my modern laptop was not rocket science, but not straight forward either. I warned my collegues that the quiet days at the office were over. But this also opened up a window into vintage computers and computing. What if I could get a vintage computer, I thought. How awesome would that be?
How cool would it be to program a vintage computer with my collegues, or my kids. With all the speed we get nowadays, who still thinks about the limits of computing power. This will be totally different if you have just a fraction of the memory and chip available.
IBM 5160 or PC XT
I am from 1983. So I was looking for a computer from that year. IBM was the company in those days for personal computing and when it came to making PC’s (I am NOT an apple fan). So I found that IBM produced the IBM PC XT in that year. I also found out that you could still get them online for a reasonable price.
Luckliy I was able to lay my hands on one, in a pretty good state. It came with an IBM Model M keyboard with the silver label (the PC is from 1986). The sound of that is even better than the
After introducing my kids to th
DIR command (it was the only one I was pretty sure about it would work), they wanted to type “words” on the old computer (first success).
Exiting Vim is hard?
So, I know the
DIR command. But now what. Let’s see what commands are available.
- No tab completion.
TABjust places the cursor somewhere down the line
HISTORY. You can repeat the last command by pressing the right-arrow.
This is incorrect. You say that you have IBM PC DOS 5. If so, this includes the DOSKEY command. This will give you a command-line history with editing. Just type
dos\doskeyto load it.
For a starters, on
IBM DOS (version 5.0) there is no
%PATH). The executables are located in
DOS don’t care about casing). the most executables are located. After a day or two I figured this out, so I finally managed to open my first
BASIC program. All fine, until I wanted to quit the program. It’s not that easy as exiting
Vim. It took me quite some time googling, until I finally found this lifesaver.
There certainly should be! DOS has 2 configuration files, which live in the root directory of the boot drive (A: or C:). They are called  CONFIG.SYS and  AUTOEXEC.BAT. In the 2nd, there should be a line:
That is not
QBASIChas a GUI. You were in either
GWBASIC. The command to quit is
syst em, if I remember correctly after 30 years.
So, now I can start a few commands, but getting all available commands is not that straight forward. There is a lot in the
DOS directory, but there is no scrolling, and the monitor only is 25 lines.
Yes there is [scrolling]. Type
dir /pfor page-by-page.
dir /wgives a wide listing. You can combine these:
dir /w /p. You can also do
dir | more
[the monitor is only 25 lines] This depends on the graphics card. If you have an MDA card, no, 25 lines is all. Try
mode con: lines=43or
mode con: lines=50. This will only work on a VGA-compatible card, though, and you will need ANSI.SYS installed, I think.
So figuring out the available commands is using a lot of
DIR *.EXE's and
First class fun.
Show me the pics
Not so long ago I was explaining my collegue (who is using a screensaver), where a screensaver got its name from. Back in the days, when we were all running the pipes so the screen would not f*ck up .
But now, sit back and relax…
It [wppreview] is not part of DOS. Sounds like a WordPerfect preview program for use with mailmerge.
So far I had to explain to my son what a
file(name) and a
command is (when they were typing “words” the IBM kept returning
Bad command or file name
So the experience is already educational :)
To be honest, I do not have a clear idea what I am going to do with it next. I will be playing with it for a while like an 8 year old with his trains.
#stayathome is over, hopefully I can take it to the office, so we can start doing real cool things with it.
I will definitely have to up my
GOTO skills :)
I will start using my Model M2 for work (sorry collegues), for sure. I will have to remap my function key in
i3, because I am currently using the
windows key for this. But the Model M2 does not have one. But I will overcome.
It is easy to remap CapsLock to be a “Windows” (Super) key. This is how I use my IBM Model M in Linux. I suggest
If you are willing to change the DOS version, I suggest DR DOS 3.41. The reason is this: MS/PC DOS 5, 6 & later are designed for 386 memory management. This is impossible on an 8088 chip, and as a result, you will have very little free memory. Many DOS programs won’t work.
DR-DOS is a better 3rd party clone of DOS, by the company that wrote the original OS (CP/M) that MS-DOS was ripped-off from. The first version is 3.41 (before that it had different names) and it is far more memory-efficient. https://winworldpc.com/product/dr-dos/3x
But if you want to stay with an IBM original DOS, then IBM developed PC DOS all the way to version 7.1, which supports EIDE hard disks over 8GB, FAT32 and some other nice features. It is a free download.
I have described how to get it here: https://liam-on-linux.livejournal.com/59703.html
PC DOS 7 is a bit strange; IBM removed Microsoft’s GUI editor and replaced it with an OS/2-derived one called E, which has a weird UI. IBM also removed GWBASIC and replaced it with the Rexx scripting language.
Personally, I combine bits of PC-DOS 7.1 with Microsoft’s editor, Microsoft’s diagnostics, Scandisk disk-repair tool and some other bits, but that is more than I can cover in a comment!
There is a lot you can do to upgrade a 5160 if you wish. Here is a crazy example: https://sites.google.com/site/misterzeropage/
I would not go that far, but a VGA card, VGA CRT, a serial mouse and an XTIDE card with a CF card in it, and it would be a lot easier to use…
The downside, my Cherry MX blue switches feel like second class now.
When I was installing my VM with
PC DOS, at the end of the installation I was aske if I wanted to start in
shell mode. It turns out there is a command
DOSSHELL (needs to be executed fron
C:\DOS) which gives you a very fancy
I recently received some awesome feedback from Liam Proven. If you read through the post there will be updates with the feedback. Thanks for the feedback @Liam.