-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Currently, block objects are not properly implemented.
Block objects have a couple of interesting properties:
- They share local variables with an "owner" object
- They have a trigger count n that must be > 0 and the object must be triggered n times before it actually starts (via OBJECT_TRIG)
So, we need to figure out how to encode these two properties in the assembly language.
Also we need to fix the allocation of local variables. There are comments in the LMS2012 source code that indicate that the object header for blocks should have a local variable size of 0. However, code generated by the official EV3 programming software uses the same size as the owner object instead of 0.