Bot reprogrammed a Super Mario World cartridge to compile Pong. And Snake. Wat.
http://arstechnica.com/gaming/2014/01/how-an-emulator-fueled-robot-reprogrammed-super-mario-world-on-the-fly/
This is pretty nuts. So apparently one could program bots to play a game in such a way as to compile code. Like, real code.
Why don't modern games do this? :O We need more platformers that can compile Pong. And Snake. Maybe the entire first half of FFVII.
This is pretty nuts. So apparently one could program bots to play a game in such a way as to compile code. Like, real code.
Why don't modern games do this? :O We need more platformers that can compile Pong. And Snake. Maybe the entire first half of FFVII.
Comments
It's still cool as hell, it's just not compiling code on the machine - the already-compiled code is loaded into memory by the bot using controller input data. That's only possible using a specific glitch in the game that will make it start trying to run instructions from the memory buffers that the controller inputs get stored in.
Modern games have similar bugs. There was a specific save file for Mech Commander (I think it was) on the original Xbox that allowed people to run arbitrary instructions that they could add to the end of the file. That's how loads of original Xboxes were rooted and turned into media machines - and where XBMC came from, back in the day! These days few people write stuff in actual machine code, higher level languages are easier for programmers to understand and can be compiled to multiple different types of CPU instruction sets. You do not want to be doing that by hand...
@dislekcia's pretty much got it with regards to it appearing in games, although I believe the Xbox game in question is Mechassault (close enough!). A similar exploit was available in older PS2's right in the BIOS, and on Wii the game that's at fault is Zelda: Twilight Princess. These classes of bugs are the basis of homebrew software on a LOT of platforms, since it's generally the easiest way to get any old code to run on otherwise closed devices.
But yes, a very cool demonstration of it in action in an unusually visual manner!