Dump memory on emulation error
Fix long line
Adapt to existing code style
Use return instead of exit
Merge pull request #1 from horazont/dump-on-error

Dump memory on emulation error
Fix long line
Fix case sensitive matching of instructions
Save some library calls
Flip fread argument order to be more conservative

Manpages don’t say anything about buffer contents if the fread did only
partially succeed. Better safe than sorry.
Merge pull request #2 from horazont/save-libcalls

Save some library calls