Main Page | Class List | File List | Class Members | File Members

instructions.h

Go to the documentation of this file.
00001 00002 00003 #ifndef __instructions_h__ 00004 #define __instructions_h__ 00005 00006 00007 00008 #include "common.h" 00009 #include "virtualMachine.h" 00010 #include "program.h" 00011 00012 00013 #include "instructions.h" 00014 #include "world.h" 00015 00017 #define process2entity(PROC) *static_cast<entity*>(&(PROC.getProgram())) 00018 00020 #define vm2world(VM) *static_cast<world*>(&VM) 00021 00022 00024 00027 static const uChar g_maxThreads = 255; 00028 00029 00031 void instr_null(virtualMachine& vm, process& proc, thread& t); 00033 void instr_and(virtualMachine& vm, process& proc, thread& t); 00035 void instr_or(virtualMachine& vm, process& proc, thread& t); 00037 void instr_copy(virtualMachine& vm, process& proc, thread& t); 00039 void instr_increment(virtualMachine& vm, process& proc, thread& t); 00041 void instr_decrement(virtualMachine& vm, process& proc, thread& t); 00043 void instr_add(virtualMachine& vm, process& proc, thread& t); 00045 void instr_sub(virtualMachine& vm, process& proc, thread& t); 00047 void instr_switch(virtualMachine& vm, process& proc, thread& t); 00049 void instr_spawnThread(virtualMachine& vm, process& proc, thread& t); 00051 void instr_killThread(virtualMachine& vm, process& proc, thread& t); 00053 void instr_moveFoward(virtualMachine& vm, process& proc, thread& t); 00055 void instr_rotate(virtualMachine& vm, process& proc, thread& t); 00057 void instr_transferEnergy(virtualMachine& vm, process& proc, thread& t); 00059 void instr_absorbEnergy(virtualMachine& vm, process& proc, thread& t); 00061 void instr_giveMemory(virtualMachine& vm, process& proc, thread& t); 00063 void instr_takeMemory(virtualMachine& vm, process& proc, thread& t); 00065 void instr_convertEnergyToMemory(virtualMachine& vm, process& proc, thread& t); 00067 void instr_convertMemoryToEnergy(virtualMachine& vm, process& proc, thread& t); 00068 00069 #endif 00070

Generated on Sun Mar 6 22:11:24 2005 for experiment03 by doxygen 1.3.7