Ticker

6/recent/ticker-posts

Ad Code

Responsive Advertisement

Your Own Engineering Workstation, with Mame

There are some things that leave indelible impressions in your memory. One of those things, for me, was a technical presentation in 1980 I attended — by calling in a lot of favors — a presentation by HP at what is now the Stennis Space Center. I was a student and it took a few phone calls to wrangle an invite but I wound up in a state-of-the-art conference room with a bunch of NASA engineers watching HP tell us about all their latest and greatest. Not that I could afford any of it, mind you. What really caught my imagination that day was the HP9845C, a color graphics computer with a roughly $40,000 price tag. That was twice the average US salary for 1980. Now, of course, you have a much better computer — or, rather, you probably have several much better computers including your phone. But if you want to relive those days, you can actually recreate the HP9845C’s 1980-vintage graphics glory using, of all things, a game emulator.

The Machine

The HP9845C with a Colorful Soft Key Display

Keep in mind that the IBM PC was nearly two years away at this point and, even then, wouldn’t hold a candle to the HP9845C. Like many machines of its era, it ran BASIC natively — in fact, it used special microcode to run BASIC programs relatively quickly on its 16-bit 5.7 MHz CPU. The 560 x 455 pixel graphics system had its own CPU and you could max it out with a decadent 1.5 MB of RAM. (But not, alas, for $40,000 which got you — I think –128K or so.)

The widespread use of the computer mouse was still in the future, so the HP had that wonderful light pen. Mass storage was also no problem — there was a 217 kB tape drive and while earlier models had a second drive and a thermal printer optional, these were included in the color “C” model. Like HP calculators, you could slot in different ROMs for different purposes. There were other options such as a digitizer and even floppy discs.

The machines had a brief life, being superseded quickly by better computers. However, the computer managed to play a key role in making the 1983 movie Wargames and the predecessor, the HP9845B appeared on screen in Raise the Titanic.

According to the HP Museum, the 9845C wasn’t terribly reliable. The tape drives are generally victims of age after 40+ years, but the power supplies and memory also have their share of issues. Luckily, we are going to simulate our HP9845C, so we won’t have to deal with any of those problems.

One other cool feature of just about every HP computer from that era was the soft key system. These were typically built into the monitor or, sometimes, the keyboard and lined up with labels on the screen. So instead of remembering that F2 is the search command (or whatever), there would be a little label on the screen over the button that said “Search.” Great stuff!

MAME

When you think about simulating an old computer, you probably think of SimH. However, the HP machines were very graphical in nature, so the author of the HP9845C emulator made a different choice: MAME. You normally think of MAME as a video game emulator. However, if you want color graphics, ROM slots, and a light pen, MAME is a pretty good choice.

As you can see, you get a view of the 9845C monitor replete with soft keys and, if you enable it, even a light pen. You can load different images as ROMs and tapes. The only tricky part is the keyboard. The HP has a custom keyboard that works a bit different than a PC keyboard.

In particular, the HP computers were typically screen-oriented. So the Enter key was usually distinct from the key that told the computer you were ready for it to process. This leads to some interesting keyboard mappings.

Quick Start Guide

In fact, the page that has the most information about the emulator is a little hard to wade through, so this might help. First, you want to scroll down to the bottom and get the prebuilt emulators for Linux or Windows. You can build with MAME or use the stock versions — assuming your stock version has all the right options. But it is easier to just grab the prebuilt and they can coexist with other versions of MAME; even if you want to go a different route eventually, you probably should still start there.

The emulator is called 45c and, on Linux, I had to make it executable myself (chmod +x). Here is a typical command line:


./45c -magt1 tapes/demo1.hti -magt2 tapes/demo2.hti -ramsize 192k '-rom1 advprog' '-rom5 colorgfx' '-rom3 massd' '-rom4 strucprog' &

All of those tape and ROM files are in the distribution archive. You probably don’t need any of the ROMs, but I loaded them anyway. Add -window if you prefer not to run full screen. If you do that, you may also want to add -nounevenstretch and -nomax options to improve appearance.

If you want to try the lightpen, use the -lightgun -lightgun_device_mouse option to turn your mouse into a lightpen. Note this will grab your mouse and you may need to use Alt+Tab or some other method to switch away from the emulator.

The keyboard mappings are listed on the web page but here are a few that are handy to know:

  • Enter – Continue
  • Right Shift+Enter – Store
  • Numeric Enter (or Right Shift+Enter) – Execute
  • Escape – Stop
  • Right Shift+Home – Clear screen

So faced with the prompt, you can enter something like:


5*10-8

Then press the numeric enter key to see the result. So this being a BASIC computer, you can enter:


10 PRINT "HOWDY!"

Right? Well, yes, but then you need to press store (Right Shift+Enter)

If you have the tapes loaded as above (you can view the tape catalog with the CAT command), try this:

load "autost"
run
High tech graphics for 1980

Remember to use the numeric pad enter key after each line, not the normal enter key!

The king of the demos is the Space Shuttle graphic which was cutting edge in 1980. You could change various display and plot options using the soft keys.

Resources

Of course, the Space Shuttle is only fun for so long. There are many other demos on the same tape, but eventually you’ll want to play with something more interesting. The HP Museum has a good bit of software you can probably figure out how to load. You can’t download the software, but if you want to see what the state of gaming was on a $70,000 HP9845B in those days, [Terry Burlison] has some recollections and screen shots. You’ll also find tons of documents and other information on the main HP9845 site.

It would be really interesting if the emulator could drive an HP-IB card in the PC or a PI to drive all your old boat anchor test equipment. That might even let you connect a hard drive. Maybe.

Enregistrer un commentaire

0 Commentaires