1        .text
2        .global main
3main:
4	######################
5	#  storb reg abs20/24
6	######################
7	storb r0,0x0
8	storb r1,0xff
9	storb r3,0xfff
10	storb r4,0x1234
11	storb r5,0x1234
12	storb r0,0x7A1234
13	storb r1,0xBA1234
14	storb r2,0xffffff
15	######################
16	#  storb abs20 rel reg
17	######################
18	storb r0,[r12]0x0
19	storb r0,[r13]0x0
20	storb r1,[r12]0xff
21	storb r1,[r13]0xff
22	storb r3,[r12]0xfff
23	storb r3,[r13]0xfff
24	storb r4,[r12]0x1234
25	storb r4,[r13]0x1234
26	storb r5,[r12]0x1234
27	storb r5,[r13]0x1234
28	storb r2,[r12]0x4567
29	storb r2,[r13]0xA1234
30	###################################
31	#  storb reg rbase(disp20/-disp20)
32	###################################
33	storb r1,0x4(r1,r0)
34	storb r3,0x4(r3,r2)
35	storb r4,0x1234(r1,r0)
36	storb r5,0x1234(r3,r2)
37	storb r6,0xA1234(r1,r0)
38	storb r1,-0x4(r1,r0)
39	storb r3,-0x4(r3,r2)
40	storb r4,-0x1234(r1,r0)
41	storb r5,-0x1234(r3,r2)
42	storb r6,-0xA1234(r1,r0)
43	#################################################
44	#  storb reg rpbase(disp4/disp16/disp20/-disp20)
45	#################################################
46	storb r0,0x0(r1,r0)
47	storb r0,0x0(r1,r0)
48	storb r0,0xf(r1,r0)
49	storb r1,0xf(r1,r0)
50	storb r2,0x1234(r1,r0)
51	storb r3,0xabcd(r3,r2)
52	storb r4,0xAfff(r4,r3)
53	storb r5,0xA1234(r6,r5)
54	storb r0,-0xf(r1,r0)
55	storb r1,-0xf(r1,r0)
56	storb r2,-0x1234(r1,r0)
57	storb r3,-0xabcd(r3,r2)
58	storb r4,-0xAfff(r4,r3)
59	storb r5,-0xA1234(r6,r5)
60	####################################
61	#  storb rbase(disp0/disp14) rel reg
62	####################################
63	storb r0,[r12]0x0(r1,r0)
64	storb r1,[r13]0x0(r1,r0)
65	storb r2,[r12]0x1234(r1,r0)
66	storb r3,[r13]0x1abcd(r1,r0)
67	#################################
68	#  storb reg rpbase(disp20) rel
69	#################################
70	storb r4,[r12]0xA1234(r1,r0)
71	storb r5,[r13]0xB1234(r1,r0)
72	storb r6,[r13]0xfffff(r1,r0)
73	#######################
74	# storb reg, uimm16/20
75	######################
76	storb $4,0xbcd
77	storb $5,0xaabcd
78	storb $3,0xfaabcd
79
80	#######################
81	# storb reg, uimm16/20
82	######################
83	storb $5,[r12]0x14
84	storb $4,[r13]0xabfc
85	storb $3,[r12]0x1234
86	storb $3,[r13]0x1234
87	storb $3,[r12]0x34
88	#######################
89	# storb imm, index-rbase
90	######################
91	storb $3,[r12]0xa7a(r1,r0)
92	storb $3,[r12]0xa7a(r3,r2)
93	storb $3,[r12]0xa7a(r4,r3)
94	storb $3,[r12]0xa7a(r5,r4)
95	storb $3,[r12]0xa7a(r6,r5)
96	storb $3,[r12]0xa7a(r7,r6)
97	storb $3,[r12]0xa7a(r9,r8)
98	storb $3,[r12]0xa7a(r11,r10)
99	storb $3,[r13]0xa7a(r1,r0)
100	storb $3,[r13]0xa7a(r3,r2)
101	storb $3,[r13]0xa7a(r4,r3)
102	storb $3,[r13]0xa7a(r5,r4)
103	storb $3,[r13]0xa7a(r6,r5)
104	storb $3,[r13]0xa7a(r7,r6)
105	storb $3,[r13]0xa7a(r9,r8)
106	storb $3,[r13]0xa7a(r11,r10)
107	storb $5,[r13]0xb7a(r4,r3)
108	storb $1,[r12]0x17a(r6,r5)
109	storb $1,[r13]0x134(r6,r5)
110	storb $3,[r12]0xabcde(r4,r3)
111	storb $5,[r13]0xabcd(r4,r3)
112	storb $3,[r12]0xabcd(r6,r5)
113	storb $3,[r13]0xbcde(r6,r5)
114	#######################
115	# storb imm4, rbase(disp)
116	######################
117	storb $5,0x0(r2)
118	storb $3,0x34(r12)
119	storb $3,0xab(r13)
120	storb $5,0xad(r1)
121	storb $5,0xcd(r2)
122	storb $5,0xfff(r0)
123	storb $3,0xbcd(r4)
124	storb $3,0xfff(r12)
125	storb $3,0xfff(r13)
126	storb $3,0xffff(r13)
127	storb $3,0x2343(r12)
128	storb $3,0x12345(r2)
129	storb $3,0x4abcd(r8)
130	storb $3,0xfabcd(r13)
131	storb $3,0xfabcd(r8)
132	storb $3,0xfabcd(r9)
133	storb $3,0x4abcd(r9)
134	##########################
135	# storb imm, disp20(rpbase)
136	#########################
137	storb $3,0x0(r2,r1)
138	storb $5,0x1(r2,r1)
139	storb $4,0x1234(r2,r1)
140	storb $3,0x1234(r2,r1)
141	storb $3,0x12345(r2,r1)
142	storb $3,0x123(r2,r1)
143	storb $3,0x12345(r2,r1)
144