#
# 6280_test_8
#
# test bit test instructions
#

#
# test BIT ZPage (0x24)
#

start bit zpage (0x24), take 1
set mem 0x2000 = 0x24
set mem 0x2001 = 0x40
set mem 0x0040 = 0x55
set reg a = 0xaa
set flags 0x00
set pc 0x2000
set cycles 3
run
check cycles 0
check pc 0x2002
check flags 0x42
done

#
# test BIT Abs (0x2c)
#

start bit abs (0x2c), take 1
set mem 0x2000 = 0x2c
set mem 0x2001 = 0x40
set mem 0x2002 = 0x55
set mem 0x5540 = 0x55
set reg a = 0xaa
set flags 0x00
set pc 0x2000
set cycles 4
run
check cycles 0
check pc 0x2003
check flags 0x42
done

#
# EOF
#
