Tube Time Profile picture
23 Dec, 28 tweets, 5 min read
why am i doing this to myself?
context.
this hex dump is actually *very cursed* for some surprising reasons
if you'll notice i'm decoding text as EBCDIC. this file is a set of "records" which are 80 bytes each. why 80? because that's what you could fit on one of these.
so this file is essentially a deck of punch cards. i've decoded the format.
there is a text field right up front (ebcdic, naturally) that describes the contents of the record. then there is an address followed by a length. then there is the data field (0x38 bytes long). unused space is filled with the ebcdic "space" character 0x40.
when you parse all the records in this deck, you wind up with a binary file that looks like this. but what is all this data?
well, it's an interrupt vector table followed by (starting at 0x200) a bunch of machine code. specifically, machine code for the motorola 68000 processor.
so that's a bit odd, you say. where exactly is this "card deck" from?
well, it's extracted from a program designed to run on a PC. yep. 68000 code that's been encoded for some sort of loader that speaks EBCDIC, running on an Intel 8088.
but it gets worse.
turns out the 68000 program that's in the card deck is designed to emulate IBM System 370 instructions. that's big iron -- a mainframe computer!
so, you might ask, what hardware is involved with this crazed combination of x86, 68k, and 370 code?
the answer is that it's this ISA card. it's designed to drop into an IBM XT computer. it's a bunch of TTL logic, but there are three devices on the far left with gold plated lids that are rather special.
here's a closeup of these devices. image shamelessly stolen from @bitsavers
but what are they? U67 (on the right) is a Motorola 68K processor. it's the device that runs the code from the punch card deck.
U66 (on the left) is also a Motorola 68K processor. but something is different--the microcode inside has been changed so that it doesn't run regular 68K code. instead it decodes and runs IBM System 370 code! well, most of it.
the System 370 was the crown jewel of CISC (complex instruction set computer) it had instructions for *everything* including operating the real-time clock!
due to that complexity, the most complex instructions had to be done by the 68K on the right, since the microcode architecture of the modified 68K (left) just was not up to the task.
but what about the third chip, the DIP-packaged device?
according to the docs, it is a modified Intel 8087 math coprocessor that has been changed to execute System 370 floating point instructions!
(the docs are wrong, btw, it is not an 8087. the pinouts do not match. i have some theories about this that are still under investigation.)
so why does this card even exist? (technically there are three cards to make a complete set: the CPU card, a RAM card, and a 3270 terminal emulator card)
it is because IBM sold a specific configuration of the XT computer (5160) called the XT/370 that came with these three cards installed, along with a suite of software that allowed it to act like a mainframe computer!
the reason is that mainframe computers were very expensive back in the day. the XT/370 allowed software developers to have a machine on their desk that they could use for development and testing without having to pay for expensive time on the mainframe!
granted it was not very fast, running at around 0.1 MIPS. for comparison, a low-end mainframe like the 4331 ran around twice as fast.
but the 4331 cost $1585 a month (2 year lease minimum), and you could *own* the xt/370 for about $12,000.
which is a really great deal if you have a room of software developers who *cost less than the mainframe* so you bet you want to have cheap desktop workstations for them so they don't tie up 🙌 The Mainframe 🙌

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tube Time

Tube Time Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @TubeTimeUS

5 Dec
let's order strange things from NIST! first up is this jar of reference peanut butter. it's only $881 per jar!
but it's no ordinary peanut butter. it's got a MSDS! and a datasheet!
ok technically it is only $881 per *three* jars.
Read 22 tweets
5 Dec
this happened to a Boeing 787 while it was parked at Boston Logan back in 2013. yes, the infamous🔋🔥. 🧵
it's *very* fortunate that it was parked at the time because the smoke filled the cabin. firefighting was difficult for many reasons, including the fact that the battery disconnect switch wasn't accessible!
the NTSB investigated and found out some very interesting details but never found a definitive root cause. here's the inside of the battery bay where the fire occurred.
Read 43 tweets
4 Dec
here's a UNIX computer that stores data on a cassette. well, technically, this is a special D/CAS cassette, but the form factor is nearly identical to a standard audio tape!
i have a few of the cassettes. you can store 160MB on one. they're not quite identical to an audio tape...
first, the D/CAS tape has a notch at the top. i think the drive uses this to reject standard audio cassettes.
Read 17 tweets
30 Nov
here's the wire-wrapped prototype of the original IBM PC (5150) motherboard!
this thing just *screams* IBM. the yellow wire was IBM's standard prototyping/bodge wire. to strip the wire, just crimp it with pliers and it peels off like a banana.
see? just like 🍌
Read 12 tweets
29 Nov
i'm happy to announce the release of my latest sound card, the Snark Barker MCA! this is a Sound Blaster compatible card designed for Micro Channel bus computers, including the IBM PS/2 family.

the full open-source design is available here: github.com/schlae/snark-b…
this is not a product that i plan to sell, but it is a design that technically-inclined folks can fabricate.

fortunately, due to the permissive open-source license, others can fabricate and sell the cards!
here's the epic design thread. this card was a lot of work to design and troubleshoot!
Read 5 tweets
5 Nov
here is part of the payload electronics from the Explorer 8 satellite (1960)! look at all the machined phenolic, colorful hand-tied wiring harness, and the stacks of round circuit modules! 🧵
there were apparently two of these columns of electronics. someone's taken apart the second column and we can have a look at some of the modules inside. they are *glorious* 🥰
i was expecting Explorer 8 to look pencil-shaped but it actually has this sort of bulge in the middle. i can't find a diagram showing how the stacked electronics were placed inside.
Read 35 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!