only include sim.h if in SIM mode
potentially eliminate threadvar def of EEMEM
only include sim.h if in SIM mode
only include sim.h if in SIM mode
IFSIMDEBUG needs to be surrounded by #ifdef BBSIM
other BBSIMisms removed
allow for "#  include"
move block.h into ifdef
use sim.h so functions are removed via #defines
use sim.h so functions are removed via #defines
use sim.h so functions are removed via #defines
use sim.h so functions are removed via #defines
put back in threaddef