feat: add core module to context

Closes: #45
This commit is contained in:
2026-07-05 13:31:15 +02:00
parent f89f643870
commit 9690ac3617
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ void executor::step() {
switch (instr) {
case instruction_t::NoOperation: break;
case instruction_t::PushB2I: {
push_thing({ intType, m_context, m_context->thing_alloc() })->get<int_t>() = frame.mod->byte(frame.position++);
push_thing({ *m_context->at("core")->type_at(2), m_context, m_context->thing_alloc() })->get<int_t>() =
frame.mod->byte(frame.position++);
} break;
case instruction_t::Drop: {
pop_thing();