File: t-slae.s

package info (click to toggle)
gnat-gdb 5.3.gnat.0.0.20030225-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 75,144 kB
  • ctags: 101,348
  • sloc: ansic: 873,511; exp: 46,950; sh: 16,123; makefile: 11,757; yacc: 6,092; asm: 5,027; cpp: 4,044; perl: 2,624; lex: 877; sed: 550; lisp: 394; awk: 170; pascal: 57; java: 7; fortran: 5
file content (39 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (36)
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
39
.include "t-macros.i"

	start

test_slae_1:
	loadpsw2 PSW_ST|PSW_FX
	loadacc2 a0 0x00 0x0AFF 0xF000
	ldi r0, 4
	slae a0, r0
	checkacc2 1 a0 0x00 0x7FFF 0xFFFF

test_slae_2:
	loadpsw2 PSW_ST|PSW_FX
	loadacc2 a0 0xFF 0xF700 0x1000
	ldi r0, 4
	slae a0, r0
	checkacc2 2 a0 0xFF 0x8000 0x0000

test_slae_3:
	loadpsw2 PSW_ST|PSW_FX
	loadacc2 a0 0x00 0x0010 0xA000
	ldi r0, 4
	slae a0, r0
	checkacc2 3 a0 0x00 0x010A 0x0000

test_slae_4:
	loadpsw2 0
	loadacc2 a0 0x00 0x0010 0xA000
	ldi r0, 4
	slae a0, r0
	checkacc2 4 a0 0x00 0x010A 0x0000

test_slae_5:
	loadacc2 a0 0x00 0x0010 0xA000
	ldi r0, -4
	slae a0, r0
	checkacc2 4 a0 0x00 0x0001 0x0A00

	exit0