Reverse Engineering

A product requires revision. I did not design or write the original, but because I have redefined the message format and protocol, this product must be revised. It was written in PIC assembler . The code looks like it was neatly done by someone who understood very clearly what he was doing. Comments are meaningful, but a little sparse. The design of the algorithm is highly coupled to the architecture and instruction set of the PIC, which I am having to learn with the data sheet open in another window while I'm reading the code.

No wonder my brain is feeling bashed at the end of a working day. Am I too old for this? Don't answer that!
"Working" software has only unobserved bugs. (Parroty Error: Pieces of Nine! Pieces of Nine!)
Seriously: If you value it, take/fetch it yourself
0reaction image LOL 0reaction image Wow! 0reaction image Wisdom

Comments

  • siremoonsiremoon Frets: 1524
    edited August 2013
    I have to do a lot of that sort of thing.  I wasn't too old for it when I started but now .....
    :-?

    Repeatedly proves to me that there's no such thing as too many comments in a bit of code
    “He is like a man with a fork in a world of soup.” - Noel Gallagher
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • Full respect to you Phil I don't even understand what your talking about but if it doesn't involve lifting, getting cold, and there's a toilet nearby don't see why you can't keep doing it till you drop  
    www.maltingsaudio.co.uk
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • JalapenoJalapeno Frets: 6389
    Insanely jealous ....

    Code whodunnit was extremely satisfying once you nailed it ! I am lord of all I survey etc ;)
    Imagine something sharp and witty here ......

    Feedback
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • MyrandaMyranda Frets: 2940
    I have thought about putting my mind to learning coding with the intention of reverse engineering stuff - I do like pulling things apart to see what makes them tick... it's just a shame I'm not always so bothered about putting them back together... 

    Luckily I'm an only child
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • JalapenoJalapeno Frets: 6389
    Depends - reverse engineering high-level languages from machine code is a right pain
    Imagine something sharp and witty here ......

    Feedback
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • Phil_aka_PipPhil_aka_Pip Frets: 9794
    edited August 2013
    Its OK if you know how the language is implemented. Forget "optimising" compilers! C - 68k machine code is not only elegant but great fun.

    Edit: why did 68k architecture have to get superseded by others that weren't half so nice? why is it that only crap architectures survive when they damn well didn't ought to?
    "Working" software has only unobserved bugs. (Parroty Error: Pieces of Nine! Pieces of Nine!)
    Seriously: If you value it, take/fetch it yourself
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • MyrandaMyranda Frets: 2940
    Probably is... but I do so love tampering with things...

    Maybe a project for the future - for now am knee deep in network/data sec/hacking learning anyway... not much room for more learning in my brian for now.
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • JalapenoJalapeno Frets: 6389
    Its OK if you know how the language is implemented. Forget "optimising" compilers! C - 68k machine code is not only elegant but great fun.

    Edit: why did 68k architecture have to get superseded by others that weren't half so nice? why is it that only crap architectures survive when they damn well didn't ought to?
    That's easy.  In a word Motorola ;)

    Imagine something sharp and witty here ......

    Feedback
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • They perpetrated the demise of their own best contribution to computing?
    "Working" software has only unobserved bugs. (Parroty Error: Pieces of Nine! Pieces of Nine!)
    Seriously: If you value it, take/fetch it yourself
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
Sign In or Register to comment.