#include "test-common.h" int main(int argc, char** argv) { // CNST // dst - 0, Direct // imm - 0x4567 // // SUBT // dst - 0, Direct // a - 0, Direct // b - 2, Immediate { foot::Emulator emu = run_instructions({ 0x00204567, 0x0A200220 }); if (!check(0x4565, emu.register_at(0))) { return 1; } } // CNST // dst - 0, Direct // imm - 0x4567 // // CNST // dst - 1, Direct // imm = 0xFFFE (-2) // // SUBT // dst - 0, Direct // a - 0, Direct // b - 1, Direct { foot::Emulator emu = run_instructions({ 0x00204567, 0x0021FFFE, 0x0A202120 }); if (!check(0x4569, emu.register_at(0))) { return 1; } } return 0; }