Re:Reverse engineering a custom CPU from a single program
by Arathorn on Wednesday September 25, 2019 @04:51AM
(#21068950)
I spent a summer doing something very similar to this at a major military radio manufacturer in the mid 90s - it turned out that one of their product lines from the late 70s used an entirely custom 8-bit CPU for which the instruction set had somehow been entirely lost. However, they still had the firmware on a stack of EPROMs. So, the mission was to reverse engineer the old CPU to reimplement it on a modern DSP. Turned out that you can get surprisingly far based on a frequency analysis of things that look like opcodes ("let's assume it has two accumulator registers; that loading is the most common instruction; etc."), making some educated guesses about how the designer would have allocated the opcode bits, and then plonking a HP logic state analyser straight over the top of the 32-pin DIL to check the hypothesis. Fun times :)
[ Parent
| on HN ]
Re:Reverse engineering a custom CPU from a single program
by nomadluap on Wednesday September 25, 2019 @10:59AM
(#21071385)
I'm curious as to why you call the package "DIL" instead of "DIP". I've never heard them called "DIL" before.
Re:Reverse engineering a custom CPU from a single program
by lintuxvi on Wednesday September 25, 2019 @04:35PM
(#21075092)
They're interchangeable depending on what literature you read. Funnily enough, like ATM machine, DIP package can be redundant, being equivalent to "dual in-line package package".
Re:Reverse engineering a custom CPU from a single program
by Arathorn on Thursday September 26, 2019 @03:14AM
(#21078920)
I think I just picked this up from my father, who’s an old-school hardware hacker. So it’s either oldfashioned lingo (he’s been retired 20 years or so) or British or both :) Or perhaps I’m just confused, given I’m mainly a software guy.
Re:Reverse engineering a custom CPU from a single program
by woodrowbarlow on Wednesday September 25, 2019 @01:02PM
(#21072737)
i'm gonna guess it's because L and P are next to each other on the keyboard.
Re:Reverse engineering a custom CPU from a single program
by misterdoubt on Wednesday September 25, 2019 @05:12PM
(#21075535)
Good ol' DI;s