Lines Matching +full:- +full:replace
11 if i == -1: # no more hex number
20 a = a.replace(hexnum, str(num))
39 mode = mode.replace(' ', '')
86 ("CS_ARCH_X86", "CS_MODE_32"): ['-triple=i386'],
87 ("CS_ARCH_X86", "CS_MODE_64"): ['-triple=x86_64'],
88 ("CS_ARCH_ARM", "CS_MODE_ARM"): ['-triple=armv7'],
89 ("CS_ARCH_ARM", "CS_MODE_THUMB"): ['-triple=thumbv7'],
90 ("CS_ARCH_ARM", "CS_MODE_ARM+CS_MODE_V8"): ['-triple=armv8'],
91 ("CS_ARCH_ARM", "CS_MODE_THUMB+CS_MODE_V8"): ['-triple=thumbv8'],
92 ("CS_ARCH_ARM", "CS_MODE_THUMB+CS_MODE_MCLASS"): ['-triple=thumbv7m'],
93 ("CS_ARCH_ARM64", "0"): ['-triple=aarch64'],
94 ("CS_ARCH_MIPS", "CS_MODE_MIPS32+CS_MODE_BIG_ENDIAN"): ['-triple=mips'],
95 ("CS_ARCH_MIPS", "CS_MODE_MIPS32+CS_MODE_MICRO"): ['-triple=mipsel', '-mattr=+micromips'],
96 ("CS_ARCH_MIPS", "CS_MODE_MIPS64"): ['-triple=mips64el'],
97 ("CS_ARCH_MIPS", "CS_MODE_MIPS32"): ['-triple=mipsel'],
98 ("CS_ARCH_MIPS", "CS_MODE_MIPS64+CS_MODE_BIG_ENDIAN"): ['-triple=mips64'],
99 …("CS_ARCH_MIPS", "CS_MODE_MIPS32+CS_MODE_MICRO+CS_MODE_BIG_ENDIAN"): ['-triple=mips', '-mattr=+mic…
100 …("CS_ARCH_MIPS", "CS_MODE_MIPS32+CS_MODE_BIG_ENDIAN+CS_MODE_MICRO"): ['-triple=mips', '-mattr=+mic…
101 ("CS_ARCH_PPC", "CS_MODE_BIG_ENDIAN"): ['-triple=powerpc64'],
102 ('CS_ARCH_SPARC', 'CS_MODE_BIG_ENDIAN'): ['-triple=sparc'],
103 ('CS_ARCH_SPARC', 'CS_MODE_BIG_ENDIAN+CS_MODE_V9'): ['-triple=sparcv9'],
104 ('CS_ARCH_SYSZ', '0'): ['-triple=s390x', '-mcpu=z196'],
126 hex_code = code.replace('0x', '')
127 hex_code = hex_code.replace(',', '')
141 cs_output2 = cs_output2.replace(' ', '')
145 cs_output2 = cs_output2.replace('$at', '$1')
146 cs_output2 = cs_output2.replace('$v0', '$2')
147 cs_output2 = cs_output2.replace('$v1', '$3')
149 cs_output2 = cs_output2.replace('$a0', '$4')
150 cs_output2 = cs_output2.replace('$a1', '$5')
151 cs_output2 = cs_output2.replace('$a2', '$6')
152 cs_output2 = cs_output2.replace('$a3', '$7')
154 cs_output2 = cs_output2.replace('$t0', '$8')
155 cs_output2 = cs_output2.replace('$t1', '$9')
156 cs_output2 = cs_output2.replace('$t2', '$10')
157 cs_output2 = cs_output2.replace('$t3', '$11')
158 cs_output2 = cs_output2.replace('$t4', '$12')
159 cs_output2 = cs_output2.replace('$t5', '$13')
160 cs_output2 = cs_output2.replace('$t6', '$14')
161 cs_output2 = cs_output2.replace('$t7', '$15')
162 cs_output2 = cs_output2.replace('$t8', '$24')
163 cs_output2 = cs_output2.replace('$t9', '$25')
165 cs_output2 = cs_output2.replace('$s0', '$16')
166 cs_output2 = cs_output2.replace('$s1', '$17')
167 cs_output2 = cs_output2.replace('$s2', '$18')
168 cs_output2 = cs_output2.replace('$s3', '$19')
169 cs_output2 = cs_output2.replace('$s4', '$20')
170 cs_output2 = cs_output2.replace('$s5', '$21')
171 cs_output2 = cs_output2.replace('$s6', '$22')
172 cs_output2 = cs_output2.replace('$s7', '$23')
174 cs_output2 = cs_output2.replace('$k0', '$26')
175 cs_output2 = cs_output2.replace('$k1', '$27')
186 #print("Usage: ./test_mc.py <input-file.s.cs>")