Files
Phillip Heller ca897ac080 Batch: compiler/formatter work in progress, decompiler TODO
- TODO.md: decompiler emits a truncated vars list when DATA contains a
  struct overlay (ENPHSTAC), breaking best-effort round-trip; fix is to
  size vars from the highest referenced register or the COD data-area
  size.
- Compiler/formatter/lexer modifications committed as-is with this batch.
2026-08-01 18:03:39 -06:00

29 lines
518 B
Plaintext

{ Program 'PMPROC' compiled with TBOL COMPILER version 04.21 }
{ Date Program compiled 03/17/26 18:06 }
{ Original file prod_multi_proc.cod }
{ md5sum 6afa68060a0c82efbe80179fcdd8058c }
PROGRAM PMPROC;
PROC main =
MOVE 'hello', RDA0;
proc_1 RDA0;
EXIT RDA3;
END_PROC
PROC proc_1 =
MOVE P1, RDA0;
proc_2 RDA0;
CJNE RDA2, '0', label_37;
MOVE '1', RDA3;
label_37:
END_PROC
PROC proc_2 =
CJNE P1, '', label_50;
MOVE '1', RDA2;
RETURN;
label_50:
MOVE '0', RDA2;
END_PROC