Merge pull request #69 from bsekisser/master-core-ldi-labeling-misc

sim_core: add ldi, trace and labeling corrections.
Merge pull request #67 from bsekisser/master-core-refactor-flags

sim_core: flag equations refactored.
sim_core: direct io to io

	modified:   sim/sim_core.c