1.include "macros.inc" 2 3start 4 5test_name AND_1 6mvi r1, 0 7mvi r2, 0 8and r3, r1, r2 9check_r3 0 10 11test_name AND_2 12mvi r1, 0 13mvi r2, 1 14and r3, r1, r2 15check_r3 0 16 17test_name AND_3 18mvi r1, 1 19mvi r2, 1 20and r3, r1, r2 21check_r3 1 22 23test_name AND_4 24mvi r3, 7 25and r3, r3, r3 26check_r3 7 27 28test_name AND_5 29mvi r1, 7 30and r3, r1, r1 31check_r3 7 32 33test_name AND_6 34mvi r1, 7 35mvi r3, 0 36and r3, r1, r3 37check_r3 0 38 39test_name AND_7 40load r1 0xaa55aa55 41load r2 0x55aa55aa 42and r3, r1, r2 43check_r3 0 44 45end 46