Aseba  1.5.5
Public Attributes | List of all members
AsebaVMState Struct Reference

This structure contains the state of the Aseba VM. More...

#include <vm.h>

Public Attributes

uint16 nodeId
 
uint16 bytecodeSize
 total amount of bytecode space
 
uint16bytecode
 bytecode space of size bytecodeSize
 
uint16 variablesSize
 total amount of variables space
 
sint16variables
 variables of size variableCount
 
uint16 stackSize
 depth of execution stack
 
sint16stack
 execution stack of size stackSize
 
uint16 flags
 
uint16 pc
 
sint16 sp
 
uint16 breakpoints [ASEBA_MAX_BREAKPOINTS]
 
uint16 breakpointsCount
 

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.


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