Other Language Quirks and Examples - Gip-Gip/LASM GitHub Wiki

List Files

List files are exactly what they sound like; they list things. Anything that starts with a period can be interpreted as a list file. Currently only $flag supports this, but soon all markers and maybe some instructions will support this feature. This is a basic explanation of how list files (will eventually) work:

; Let's say this file (list.txt) is holding some configuration stuff...

x86 ; This would set the flag x86
; arm ; Since arm is commented out, it will simply be ignored

To use the list file to set flags, you put the filename in place behind a $flag(with a period as a prefix)...

$flag .list.txt

$if x86
; Do x86 things
$end