Bugfixes by testing with the assembler: basic applications now actually run (CPU seems functional).