-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
It's a relatively common pattern in TSC, especially more advanced scripts, to leave comments to document your events. Any text in between the end of an event and the label for the next event is completely ignored by the TSC parser. This snippet demonstrates that usage:
#0000
<END
~~~~~~~~~~~~~~~~
RETN instruction
~~~~~~~~~~~~~~~~
#0001
<FL+_RTN
<FLJ_RA0:0002<FLJ_RA1:0002<FLJ_RA2:0002<FLJ_RA3:0002
<FLJ_RA4:0002<FLJ_RA5:0002<FLJ_RA6:0002<FLJ_RA7:0002
<EVE0003
#0002
<TRA0010:2800:0000:0000 Load RA into A
#0003
<EVE0004 Normal return; pop the return address into A
#0004
<EVEXXXX Run codec with _RTN flag set (calls the appropriate function)
Highlighting those sections as comments (e.g. italicizing them, etc) would be a big help for code clarity.
The commands in vanilla TSC which end an event (and thus leave any text after them as comments) are:
- <END
- <ESC
- <EVE
- <INI
- <LDP
- <SLP
- <TRA
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels