Skip to content

block objects #5

@dlech

Description

@dlech

Currently, block objects are not properly implemented.

Block objects have a couple of interesting properties:

  1. They share local variables with an "owner" object
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions