File: 7641.s

package info (click to toggle)
gdb-doc 16.3-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 244,264 kB
  • sloc: ansic: 2,134,731; asm: 375,582; exp: 206,875; cpp: 73,639; makefile: 70,232; sh: 26,038; python: 13,697; yacc: 11,341; ada: 7,358; xml: 6,098; perl: 5,077; pascal: 3,389; tcl: 2,986; f90: 2,764; lisp: 1,984; cs: 879; lex: 738; sed: 228; awk: 181; objc: 137; fortran: 57
file content (38 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Blackfin testcase for playing with TESTSET
# mach: bfin

	.include "testutils.inc"

	start

	loadsym P0, element1

	loadsym P1, element2

	R0 = B [P0];			// R0 should get 00
	R1 = B [P1];			// R1 should get 02

	TESTSET(P0);		    // should set CC and MSB of memory byte
	R0 = CC;
	TESTSET(P1);			// should clear CC and not change MSB of memory
	R1 = CC;

	R2 = B [P0];			// R2 should get 80
	R3 = B [P1];			// R3 should get 02

	dbga(R0.l,0x0001);
	dbga(R0.h,0x0000);
	dbga(R1.l,0x0000);
	dbga(R1.h,0x0000);
	dbga(R2.l,0x0080);
	dbga(R2.h,0x0000);
	dbga(R3.l,0x0082);
	dbga(R3.h,0x0000);

	pass

.data
.align 4;
element1: .long 0x0
element2: .long 0x2
element3: .long 0x4