Add jsmoo tests for all implemented instructions

old-bit-manip
Nick Krichevsky 2023-04-30 19:19:02 -04:00
parent a8736052d1
commit 555800dbd1
19 changed files with 11 additions and 11 deletions

View File

@ -1,17 +1,17 @@
use ferris_boi::{cpu::Processor, register};
macro_rules! assert_flags_eq {
($processor: expr, $(($flag: path, $value: expr)),+ $(,)?) => {
$(
assert_eq!(
$value,
$processor.registers.get_flag_bit($flag),
"{:?} flag had unexpected value",
$flag
);
)+
};
}
($processor: expr, $(($flag: path, $value: expr)),+ $(,)?) => {
$(
assert_eq!(
$value,
$processor.registers.get_flag_bit($flag),
"{:?} flag had unexpected value",
$flag
);
)+
};
}
pub(crate) use assert_flags_eq;