fix(map): misalign (#180)
This commit is contained in:
parent
638ff54d93
commit
fe0f793d10
@ -278,11 +278,11 @@ auto assembler::assemble_function(function& func) -> void
|
||||
|
||||
auto assembler::assemble_instruction(instruction const& inst) -> void
|
||||
{
|
||||
devmap_count_++;
|
||||
script_.write<u8>(static_cast<u8>(ctx_->opcode_id(inst.opcode)));
|
||||
devmap_.write<u32>(script_.pos());
|
||||
devmap_.write<u16>(inst.pos.line);
|
||||
devmap_.write<u16>(inst.pos.column);
|
||||
script_.write<u8>(static_cast<u8>(ctx_->opcode_id(inst.opcode)));
|
||||
devmap_count_++;
|
||||
|
||||
switch (inst.opcode)
|
||||
{
|
||||
|
@ -69,11 +69,11 @@ auto assembler::assemble_function(function const& func) -> void
|
||||
|
||||
auto assembler::assemble_instruction(instruction const& inst) -> void
|
||||
{
|
||||
devmap_count_++;
|
||||
script_.write<u8>(ctx_->opcode_id(inst.opcode));
|
||||
devmap_.write<u32>(script_.pos());
|
||||
devmap_.write<u16>(inst.pos.line);
|
||||
devmap_.write<u16>(inst.pos.column);
|
||||
script_.write<u8>(ctx_->opcode_id(inst.opcode));
|
||||
devmap_count_++;
|
||||
|
||||
switch (inst.opcode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user