1# mach: all
2# output:
3# sim: --environment operating
4# as: -W
5
6.include "t-macros.i"
7
8	start
9
10	PSW_BITS = PSW_C|PSW_F0|PSW_F1
11
12	ldi	r6, #success@word
13	mvtc	r6, dpc
14	ldi	r6, #PSW_BITS
15	mvtc	r6, dpsw
16
17test_rdt:
18	RTD
19	exit47
20
21success:
22	checkpsw2 1 PSW_BITS
23	exit0
24