implement char array syntax
commit28da4ae81bdf6ab26d0c7d076780b47f1e7200a2
authorrofl0r <rofl0r@users.noreply.github.com>
Thu, 29 Aug 2019 12:44:34 +0000 (29 13:44 +0100)
committerrofl0r <rofl0r@users.noreply.github.com>
Thu, 29 Aug 2019 21:38:42 +0000 (29 22:38 +0100)
tree4f36a8c5c57e6dc29eaaacd48cb1a89a97da350e
parent84cca48db07458ae2cfc3e548e3684328948e1ac
implement char array syntax

unreferenced and zero-set sequences of chars are now
joined into a single char array value with the following
syntax: char[512] varXXXX = 0.
this optimization removes a considerable amount of lines in
the .data section.
the game "tales of jayvin" has one gamescript (4) with a huge
array of 6 MB, and for every single byte a line was emitted,
which resulted in an .s file of 345 MB.

note that the array syntax is currently only implemented for
char, not short or int.
Assembler.c
Script.c