#include "installopcodes.hpp" #include #include "controlopcodes.hpp" #include "genericopcodes.hpp" #include "interpreter.hpp" #include "localopcodes.hpp" #include "mathopcodes.hpp" #include "miscopcodes.hpp" namespace Interpreter { void installOpcodes(Interpreter& interpreter) { // generic interpreter.installSegment0(0); interpreter.installSegment5(3); interpreter.installSegment5(6); interpreter.installSegment5(7); interpreter.installSegment5(8); interpreter.installSegment5(17); interpreter.installSegment5(18); // local variables, global variables & literals interpreter.installSegment5(0); interpreter.installSegment5(1); interpreter.installSegment5(2); interpreter.installSegment5(4); interpreter.installSegment5(5); interpreter.installSegment5(21); interpreter.installSegment5(22); interpreter.installSegment5(23); interpreter.installSegment5(39); interpreter.installSegment5(40); interpreter.installSegment5(41); interpreter.installSegment5(42); interpreter.installSegment5(43); interpreter.installSegment5(44); interpreter.installSegment5>(59); interpreter.installSegment5>(60); interpreter.installSegment5>(61); interpreter.installSegment5>(62); interpreter.installSegment5>(63); interpreter.installSegment5>(64); interpreter.installSegment5>(65); interpreter.installSegment5>(66); interpreter.installSegment5>(67); interpreter.installSegment5>(68); interpreter.installSegment5>(69); interpreter.installSegment5>(70); // math interpreter.installSegment5>(9); interpreter.installSegment5>(10); interpreter.installSegment5>(11); interpreter.installSegment5>(12); interpreter.installSegment5>(13); interpreter.installSegment5>(14); interpreter.installSegment5>(15); interpreter.installSegment5>(16); interpreter.installSegment5>>(26); interpreter.installSegment5>>(27); interpreter.installSegment5>>(28); interpreter.installSegment5>>(29); interpreter.installSegment5>>(30); interpreter.installSegment5>>(31); interpreter.installSegment5>>(32); interpreter.installSegment5>>(33); interpreter.installSegment5>>(34); interpreter.installSegment5>>(35); interpreter.installSegment5>>(36); interpreter.installSegment5>>(37); // control structures interpreter.installSegment5(20); interpreter.installSegment5(24); interpreter.installSegment5(25); interpreter.installSegment0(1); interpreter.installSegment0(2); // misc interpreter.installSegment3(0); interpreter.installSegment5(58); } }