~maelkum/viuavm

a285a24b5ab2150c3e2be29af1d454bd81fc2d01 — Marek Marecki 4 months ago 5663a74
Abort compilation if invalid unit is found in memory instruction

It's better to crash and burn then emit invalid code.
1 files changed, 2 insertions(+), 0 deletions(-)

M new/src/tools/libs/stage.cpp
M new/src/tools/libs/stage.cpp => new/src/tools/libs/stage.cpp +2 -0
@@ 1029,6 1029,8 @@ auto expand_memory_access(std::vector<ast::Instruction>& cooked,
        case 'q':
            synth.operands.front().ingredients.front().text = "4";
            break;
        default:
            abort();
    }
    synth.operands.front().ingredients.resize(1);