foot/emulator/tests/clsh-instruction.cpp
shylie f3773fc82b
All checks were successful
Test / build (push) Successful in 12s
Add more tests, fix division and modulus
2025-07-08 15:54:54 -04:00

20 lines
338 B
C++

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