.
This commit is contained in:
2
.idea/tyche.iml
generated
2
.idea/tyche.iml
generated
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module classpath="CIDR" type="CPP_MODULE" version="4" />
|
||||
@@ -70,7 +70,7 @@ ByteArray Assembler::assemble()
|
||||
case vm::OperandType::Int8: bp.functions.at(function_id).code.append_int8((int8_t) *oper); break;
|
||||
case vm::OperandType::Int16: bp.functions.at(function_id).code.append_int16((int16_t) *oper); break;
|
||||
case vm::OperandType::Int32: bp.functions.at(function_id).code.append_int32(*oper); break;
|
||||
case vm::OperandType::NoOperand: default:
|
||||
case vm::OperandType::NoOperand: default: break;
|
||||
}
|
||||
|
||||
if (tt.type != TokenType::Enter)
|
||||
|
||||
@@ -45,6 +45,7 @@ Operation Code::operation(Location const& location) const
|
||||
.next_location = { .function_id = location.function_id, .pc = location.pc + 5 },
|
||||
};
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
throw std::logic_error("Should not get here");
|
||||
|
||||
@@ -187,6 +187,7 @@ std::pair<std::string, size_t> debug_instruction(bc::Bytecode const& bt, uint32_
|
||||
case OperandType::Int32:
|
||||
return debug_instruction(inst, bt.get_code_int32(function_id, addr + 1));
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return { "???", 1 };
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef TYCHE_VALUE_HH
|
||||
#define TYCHE_VALUE_HH
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user