mirror of
https://github.com/ProdigyReloaded/tbol-toolchain.git
synced 2026-11-28 14:38:11 -08:00
- 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.
29 lines
474 B
Plaintext
29 lines
474 B
Plaintext
{ Program 'CLMPRC' compiled with TBOL COMPILER version 04.21 }
|
|
{ Date Program compiled 03/17/26 18:05 }
|
|
{ Original file call_multi_procs.cod }
|
|
{ md5sum f6469e73393d7b6f8ee793d06da708e9 }
|
|
|
|
PROGRAM CLMPRC;
|
|
|
|
PROC main =
|
|
proc_1;
|
|
MOVE '5', RDA1;
|
|
proc_2;
|
|
proc_3;
|
|
END_PROC
|
|
|
|
PROC proc_1 =
|
|
MOVE '0', RDA0;
|
|
MOVE '0', RDA1;
|
|
MOVE '0', RDA2;
|
|
END_PROC
|
|
|
|
PROC proc_2 =
|
|
ADD 1, RDA0;
|
|
MULTIPLY 2, RDA1;
|
|
END_PROC
|
|
|
|
PROC proc_3 =
|
|
MOVE RDA0, RDA2;
|
|
END_PROC
|