src/main.cpp
/// ***************************************************************************************************************************
/// Test for running the sequential C++ BC interpreter on CPU.
/// ***************************************************************************************************************************
Test for running the sequential C++ BC interpreter on CPU.
Test for running the sequential C ++ BC interpreter on CPU .
void testProgram2() {
    vector<int> program2 = {
        ICONST, 100,
        LSHIFT,
        DUP,
        PRINT,
        RSHIFT,
        PRINT,
        HALT
    };
    VM vm(program2,  0);
    vm.setVMConfig(100, 100);
    vm.setTrace();
    vm.runInterpreter();
}
void testProgram2 ( ) { vector < int > program2 = { ICONST , 100 , LSHIFT , DUP , PRINT , RSHIFT , PRINT , HALT } ; VM vm ( program2 , 0 ) ; vm . setVMConfig ( 100 , 100 ) ; vm . setTrace ( ) ; vm . runInterpreter ( ) ; }
Test for running the sequential C++ BC interpreter on CPU.
Test for running the sequential C ++ BC interpreter on CPU .