Skip to content

Commit

Permalink
fix(map): misalign
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Jan 12, 2024
1 parent ecffa88 commit 5c648ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/arc/assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/gsc/assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5c648ac

Please sign in to comment.