1# mach: all
2# output:
3# sim: --environment operating
4
5.include "t-macros.i"
6
7	start
8
9	;; clear FX
10	loadpsw2 0x8004
11	loadacc2 a0 0x80 0x0000 0x0000
12	loadacc2 a1 0x00 0x0000 0x5000
13	load r10 0x0123
14	load r11 0x4567
15test_rac1:
16	RAC	r10, a0, #-2
17	checkpsw2 1 0x8008
18	check2w2 2 r10 0x8000 0x0000
19
20	exit0
21