2 ms·
Well, lets get crackin' and see if we can reverse engineer this bad boy. I've done a lot of assembly and only a little direct bare machine language coding. Th
by VLM 13y ago
Well, lets get crackin' and see if we can reverse engineer this bad boy. I've done a lot of assembly and only a little direct bare machine language coding.
There's no lines without a first column, unlike pretty much all the others. I theorize the first column is opcode. You're running a lot of 3001 so I'm guessing thats "load" and it seems like you're clearing something a lot and occasionally stuffing real values in.
The second to last column looks kind of binary flag-y to me. Like LSB and 2LSB somehow team up to mean "zero flag". In fact I'm guessing opcode 8500 is a conditional skip.
The second column has a strange affinity to 1316 and its neighbor, and occasionally uses totally different class of numbers. So I'm guessing its the equivalent of variable name or more likely memory address.
I have a gut level guess the 11000 series opcodes are some kind of ALU op. Probably add. And you can add a constant, and condition codes in the 2nd to last column do things based on add result.
Another gut level guess... you're using signed ints and the last column is some kind of conditional jump and the OS lives in the upper half of memory which would be a negative number as per the last statement returning to the OS. I think you put your global libraries in the 30000 range and this module or whatever happens to live around reserved range of 22000 ish.
Then again maybe its crystal clear and if you just translate it into octal, you'll see PDP-8 instructions. Probably not, but...
I have this gut level guess this is a practical joke, like I'm supposed to recognize based on pattern matching that its a recursive implementation of a factorial.
- RBerenguel 13y ago3001 is block conditional according to the post...
- VLM 13y agoWell, thats interesting. I was working out of the wikipedia page not the github with more content. I see the last column is for constant numerics and zero = 10000, interesting. I bet making a deposit or withdrawl of more than 10000 at a time takes some interesting code (or more likely, the UI hardcodes only 4 spaces) Per the writeup, I imagine having 7 programmers on staff helped figure out what to do.
- RBerenguel 13y agoWell, I think this is nightmarish, from a purely context-switching type of thinking. I don't mind using letter opcodes, strings then are pretty clear to distinguish. But come on, number opcodes? Add 5 to B and store in AX (or whatever) turns into a nightmare of numbers. Of course, after a while you probably "get" that 3001 is a conditional. But I wonder how this affects the way you feel numbers from now on: what do BANCStar programmers think about the 2000 effect, 3001 Final Odissey (heh) or the TV show 24?