1# Example of XGATE instructions
2	.sect .text
3_start:
4L0: 	adc r1, r2, r3
5L1:	bcc END_CODE
6L2:	add r4, r5, r6
7L3:	add r7 , #225
8L4:	addh r1, 255
9L5:	addl r2, #255
10L6:	add  r4, 8004
11L7:	and r3, r4, r5
12L8:	and r1, #0x8004
13L9: 	add r5, END_CODE
14L10:    and r7, END_CODE
15L11:	and r4, #65281
16L12:    andl r3, #01
17L13:    andh r6, #255
18L14:    asr r0, #3
19L15:    asr r1, r2
20L16:    bcc END_CODE
21L17:    bcs END_CODE
22L18:    beq END_CODE
23L19:    bfext r3, r4, r5
24L20:    bffo r6, r7
25L21:    bfins r0, r1, r2
26L22:    bfinsi r3, r4, r5
27L23:    bfinsx r6, r7, r0
28L24:    bge END_CODE
29L25:    bgt END_CODE
30L26:    bhi END_CODE
31L27:    bhs END_CODE
32L28:    bith r1, #32
33L29:    bitl r2, #0
34L30:    ble  END_CODE
35L31:    blo END_CODE
36L32:    bls END_CODE
37L33:	blt END_CODE
38L34:	bmi END_CODE
39L35:    bne END_CODE
40L36:    bpl END_CODE
41L37:    bra END_CODE
42L38:    brk
43L39:    bvc END_CODE
44L40:    bvs END_CODE
45L41:    cmp r1, r2
46L42:    cmpl r3, #255
47L43:    com r4, r5
48L44:    cpc r6, r7
49L45:    cmp r1, #65535
50L46:    cpch r2, #255
51L47:    csem #4
52L48:    csem r5
53L49:    csl r6, #11
54L50:    csl r7, r0
55L51:    csr r1, #2
56L52:    csr r2, r3
57L53:    jal r4
58L54:    ldb r5, (r6, #20)
59L55:    ldb r7, (r0, r1+)
60L56:    ldb r7, (r0, -r1)
61L57:    ldb r0, (r0, r0)
62L58:    ldh r1, #255
63L59:    ldl r2, #255
64L60:	ldd r3, END_CODE
65L61:    ldw r4, (r5, #20)
66L62:    ldw r5, (r6, r7+)
67L63:    ldw r5, (r6, -r7)
68L64:    ldw r1, (r2, r4)
69L65:    lsl r1, #4
70L66:    lsl r2, r3
71L67:    lsr r4, #5
72L68:    lsr r5, r6
73L69:    mov r6, r7
74L70:    neg r1, r2
75L71:    nop
76L72:    or r1, r2, r3
77L73:    orh r4, #255
78L74:    orl r5, #255
79L75:    par r6
80L76:    rol r7, #6
81L77:    rol r1, r2
82L78:    ror r3, #5
83L79:    ror r4, r5
84L80:    rts
85L81:    sbc r1, r2, r3
86L82:    ssem #4
87L83:    ssem r1
88L84:    sex r2
89L85:    sif
90L86:    sif r4
91L87:    stb r5, (r6, #5)
92L88:    stb r0, (r0, r0+)
93L89:    stb r0, (r0, -r0)
94L90:    stb r2, (r0, r0)
95L91:    stw r1, (r2, #16)
96L92:    stw r1, (r2, r3+)
97L93:    stw r1, (r2, -r3)
98L94:    stw r2, (r3 ,r4)
99L95:    sub r3, r4, r6
100L96:    sub r4, #65535
101L97:    subh r5, #255
102L98:    subl r6, #255
103L99:    tfr r7, pc
104L100:   tfr r7,ccr
105L101:   tfr ccr, r7
106L102:   tst r1
107L103:   xnor r1, r2, r3
108L104:   xnorh r4, #255
109L105:   xnorl r5, #255
110L106:   com r3
111END_CODE:
112
113