1# Blackfin testcase for playing with TESTSET 2# mach: bfin 3 4 .include "testutils.inc" 5 6 start 7 8 loadsym P0, element1 9 10 loadsym P1, element2 11 12 R0 = B [P0]; // R0 should get 00 13 R1 = B [P1]; // R1 should get 02 14 15 TESTSET(P0); // should set CC and MSB of memory byte 16 R0 = CC; 17 TESTSET(P1); // should clear CC and not change MSB of memory 18 R1 = CC; 19 20 R2 = B [P0]; // R2 should get 80 21 R3 = B [P1]; // R3 should get 02 22 23 dbga(R0.l,0x0001); 24 dbga(R0.h,0x0000); 25 dbga(R1.l,0x0000); 26 dbga(R1.h,0x0000); 27 dbga(R2.l,0x0080); 28 dbga(R2.h,0x0000); 29 dbga(R3.l,0x0082); 30 dbga(R3.h,0x0000); 31 32 pass 33 34.data 35.align 4; 36element1: .long 0x0 37element2: .long 0x2 38element3: .long 0x4 39