Public Attributes
AsebaVMState Struct Reference

#include <vm.h>

List of all members.

Public Attributes

uint16 breakpoints [ASEBA_MAX_BREAKPOINTS]
uint16 breakpointsCount
uint16bytecode
uint16 bytecodeSize
uint16 flags
uint16 nodeId
uint16 pc
sint16 sp
sint16stack
uint16 stackSize
sint16variables
uint16 variablesSize

Detailed Description

This structure contains the state of the Aseba VM. This is the required and the sufficient data for the VM to run. This is not sufficient for the compiler to build bytecode, as there is no description of variable names and sizes nor description of native function. For this, a description corresponding to the actual target must be provided to the compiler. ALL fields of this structure have to be initialized correctly for aseba to work. An initial call to AsebaVMInitStep must be done prior to any call to AsebaVMPeriodicStep or AsebaVMEventStep.

Definition at line 69 of file vm.h.


Member Data Documentation

Definition at line 92 of file vm.h.

Definition at line 93 of file vm.h.

bytecode space of size bytecodeSize

Definition at line 76 of file vm.h.

total amount of bytecode space

Definition at line 75 of file vm.h.

Definition at line 87 of file vm.h.

Definition at line 72 of file vm.h.

Definition at line 88 of file vm.h.

Definition at line 89 of file vm.h.

execution stack of size stackSize

Definition at line 84 of file vm.h.

depth of execution stack

Definition at line 83 of file vm.h.

variables of size variableCount

Definition at line 80 of file vm.h.

total amount of variables space

Definition at line 79 of file vm.h.


The documentation for this struct was generated from the following file:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39