Here's a simple code that modifies one of its instructions when certain conditions are met. (like changing an add instruction to a subtract)
I dunno I was just bored XD
Press L+R to add to your bells if less than 99,900. If it is more than 99,900, it'll start subtracting instead, until it reaches 100 or less. It'll keep going back and forth :P
ASM source:Code:023FF090 012FFF11 E0000000 00000040 E28F2001 E12FFF12 8800480A 01122230 D10D4210 68214C08 42A94D08 2339DB01 2964E002 2331DC02 7053A200 60213164 00004770 04000130 021D891C 0001863C 023FF090 E3520003
It works a lot easier in ARM mode, but...it's just an example.