test method

void test()

Implementation

void test() {
  //Debugger.verbose('${pcHex(-1)} [test]');
  //final pp = PC - 1;

  final operands = mem.loadb(programCounter- 1) < 193
      ? visitOperandsLongForm()
      : visitOperandsVar(2, false);

  // final jumpByte = mem.loadb(PC);

  // bool branchOn = BinaryHelper.isSet(jumpByte, 7);
  final bitmap = operands[0].value!;
  final flags = operands[1].value!;

  //Debugger.verbose('   [0x${pp.toRadixString(16)}] testing bitmap($branchOn) "${bitmap.toRadixString(2)}" against "${flags.toRadixString(2)}" ${(bitmap & flags) == flags}');

  branch((bitmap & flags) == flags);
}