dustbox 0.0.1

PC x86 emulator with the goal of easily running MS-DOS games on Windows, macOS and Linux.
Documentation
1
2
3
4
5
6
7
8
use crate::cpu::flag::Flags;

#[test]
fn can_pack_unpack_flags() {
    let mut flags = Flags::new();
    flags.set_u16(0xFFFF);
    assert_eq!(0x0DD5, flags.u16());
}