AsebaVMState Struct Reference
[Virtual Machine]

#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 72 of file vm.h.


Member Data Documentation

uint16 AsebaVMState::breakpoints[ASEBA_MAX_BREAKPOINTS]

Definition at line 95 of file vm.h.

Definition at line 96 of file vm.h.

bytecode space of size bytecodeSize

Definition at line 79 of file vm.h.

total amount of bytecode space

Definition at line 78 of file vm.h.

Definition at line 90 of file vm.h.

Definition at line 75 of file vm.h.

Definition at line 91 of file vm.h.

Definition at line 92 of file vm.h.

execution stack of size stackSize

Definition at line 87 of file vm.h.

depth of execution stack

Definition at line 86 of file vm.h.

variables of size variableCount

Definition at line 83 of file vm.h.

total amount of variables space

Definition at line 82 of file vm.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:05 2011