57
|
1 * Test for 6309 instructions, compare with Forth assembler output.
|
|
2 PSHSW
|
|
3 PULSW
|
|
4 PSHUW
|
|
5 PULUW
|
|
6 LDW ,W
|
|
7 STW $1234,W
|
|
8 ADDW ,--W
|
|
9 SUBW ,W++
|
|
10 ANDD [,W]
|
|
11 ORD [$1234,W]
|
|
12 EORD [,--W]
|
|
13 CMPD [,W++]
|
|
14 SEXW
|
|
15 TFM X+,Y+
|
|
16 TFM D-,U-
|
|
17 TFM X+,D
|
|
18 TFM U,X+
|
|
19 ADDR A,B
|
|
20 ADCR B,A
|
|
21 ORR D,W
|
|
22 ANDR W,Y
|
|
23 EORR X,U
|
|
24 CMPR E,F
|
|
25 LDQ #$12345678
|
|
26 LDQ <$1f
|
|
27 STQ $1234
|
|
28 ADDD E,X
|
|
29 ADDD F,X
|
|
30 ADDD W,X
|
|
31 ASLD
|
|
32 RORW
|
|
33 COME
|
|
34 INCF
|
|
35 AIM #$80,<$12
|
|
36 OIM #$40,$1234
|
|
37 EIM #$20,5,U
|
|
38 TIM #$10,,W
|
|
39 LDBT A,1,0,$FE
|
|
40 BOR B,0,1,$FE
|
|
41 STBT CC,0,7,$FE
|
|
42 BIAND A,1,4,$FE
|
|
43 MULD # $12
|
|
44 DIVD # $12
|
|
45 DIVQ [$1234]
|
|
46 LDE #4
|
|
47 STE [$34,X]
|
|
48 LDMD #$01
|
|
49 BITMD #$80
|
|
50 PULU A, B, X, S
|