We were always doing this kind of thing on these platforms. This is how we used to hack copy protection out of games.
Stepping through, line by line, editing the code and adding JMPs to get around the copy protection code after loading the magic numbers into the register...
Happy, happy times.