backport allot of bug fix. like open file, reading file.
My working copy have allot of hacks and is a big mess. This stuff is cleanup from it.
svn path=/trunk/; revision=25433
2. move the loadimage stuff to own functions to misc.c
3. rewrite so loader call to brain* after it load the image.
4. setup main using the loader
5. add few more input param to main -in, -inexe, -in try autodetect type of file, -inexe try convert a PE file.
svn path=/trunk/; revision=25272
2. implement cpu type flag in dummy and m68k
3. Adding more opcode for m68k, but they are stubed
Time to test the code and start implement m68k in next commit
svn path=/trunk/; revision=25257