Alright here's what I have so far:
- I just removed the TurboC library includes since I wasn't using it anyway, except maybe for strncpy except it wasn't being linked against turboc's library so it didn't really matter. Its gone, I took one function which was gettime from it and just added it to the code.
- restored the int64's where I had temporarily changed them to int in order to get on with getting the bulk of the code moved over. (inttypes.h)
- restored the gettime call I blundered in instr_exc.cc (or CODE9.cpp as it was)
- I've added quite a few externs (to replace the VCL code that I ripped out) https://github.com/paigeadele/Hello68k/ ... ern.h#L164
and they're defined in the main code (top level directory) in io.cc, hw.cc, net.cc, utils.cc, and graphics.cc
Many of them will have to change in order for them to make any sense in this code base. I decided to go with this pattern intead of classes in favor of just getting something to work quickly, I figure it can be refactored later as objects if it really needs to be.. personally I don't see the point. I was also thinking may since all of the functions are prefixed with HW_ or SimIO_ that I could also add extern structs named HW and SimIO respectively if I need to export any variables into the main code.
There's also the AnsiString, ripped out. It wasn't ansi enough for me so I'm going to have to rewrite some stuff to use string.h functions wherever appropriate.
I suppose the next step I should look at are all the class properties that were used on the SimIO and Hardware classes and start refactoring them into structs. I don't think I'll be doing anything like this, at least I prefer not to: http://stackoverflow.com/questions/1350 ... a-c-struct
I think soon if not immediately I'll at least add a Makefile for compiling with emscripten and see how it goes. At some point I'm going to have to actually focus on just getting it to do something though. I think things are definitely at a point where I could use help, failing that anybody's interested I can't let myself get too consumed by this but it will be fun to play around with over time