Open codemanyak opened 3 years ago
Prepared a branch issue967 as intermediate target for pull requests by contributors to this ER.
Fixed a highlight mapping problem between diagram and code preview.
Several unsatisfying aspects will still have to be fixed:
Intermediate problems to be solved (just as reminder):
R5
or isNice
should also be accepted (meaning an implicit test for non-zero value), then of course the same should apply to a negated register or variable, e.g. !R5
or !isNice
, respectively. Also we should allow and translate Boolean literals like true
and false
. All this is of course a heuristic incremental improvement not replacing the necessary full syntax tree approach.Debugging tools like CPUlator expect a global definition of a label "_start", which is to be placed on the first line of code of the program.
.global _start
.data
...
.text
_start:
MOV R1, #4
...
EDIT: In GNU mode, the "_start" label will be placed from version 3.32-04 on.
On occasion of bugfixes #1013 and #1014, the ARM syntax for arrays was changed from version 3.32-04 on such that it goes along with the rest of Structorizer (now an empty bracket pair must be appended to the element type as in Java declarations):
Alessandro Simonetta proposed to add a generator for ARM code and (optionally) even to enhance the debugger to execute ARM code in a suited syntax (possibly via a DiagramController).