blob: 56a8366ff9795a1dc72e1dbda093865b54330ee8 [file] [log] [blame]
Greg Clayton64c84432011-01-21 22:02:52 +00001//===-- EmulateInstructionARM.cpp -------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "EmulateInstructionARM.h"
Johnny Chen4baf2e32011-01-24 18:24:53 +000011#include "ARMUtils.h"
Greg Clayton64c84432011-01-21 22:02:52 +000012
13using namespace lldb;
14using namespace lldb_private;
15
16// ARM constants used during decoding
17#define REG_RD 0
18#define LDM_REGLIST 1
19#define PC_REG 15
20#define PC_REGLIST_BIT 0x8000
21
Johnny Chen251af6a2011-01-21 22:47:25 +000022#define ARMv4 (1u << 0)
Greg Clayton64c84432011-01-21 22:02:52 +000023#define ARMv4T (1u << 1)
24#define ARMv5T (1u << 2)
25#define ARMv5TE (1u << 3)
26#define ARMv5TEJ (1u << 4)
Johnny Chen251af6a2011-01-21 22:47:25 +000027#define ARMv6 (1u << 5)
Greg Clayton64c84432011-01-21 22:02:52 +000028#define ARMv6K (1u << 6)
29#define ARMv6T2 (1u << 7)
Johnny Chen251af6a2011-01-21 22:47:25 +000030#define ARMv7 (1u << 8)
Johnny Chen60c0d622011-01-25 23:49:39 +000031#define ARMv8 (1u << 9)
Greg Clayton64c84432011-01-21 22:02:52 +000032#define ARMvAll (0xffffffffu)
33
Johnny Chen7dc60e12011-01-24 19:46:32 +000034typedef enum
Greg Clayton64c84432011-01-21 22:02:52 +000035{
36 eEncodingA1,
37 eEncodingA2,
38 eEncodingA3,
39 eEncodingA4,
40 eEncodingA5,
41 eEncodingT1,
42 eEncodingT2,
43 eEncodingT3,
44 eEncodingT4,
45 eEncodingT5,
46} ARMEncoding;
47
Johnny Chen7dc60e12011-01-24 19:46:32 +000048typedef enum
49{
50 eSize16,
51 eSize32
52} ARMInstrSize;
53
Johnny Chen4baf2e32011-01-24 18:24:53 +000054// Typedef for the callback function used during the emulation.
Johnny Chen3c75c762011-01-22 00:47:08 +000055// Pass along (ARMEncoding)encoding as the callback data.
56typedef bool (*EmulateCallback) (EmulateInstructionARM *emulator, ARMEncoding encoding);
57
Johnny Chen7dc60e12011-01-24 19:46:32 +000058typedef struct
Greg Clayton64c84432011-01-21 22:02:52 +000059{
60 uint32_t mask;
61 uint32_t value;
62 uint32_t variants;
63 ARMEncoding encoding;
Johnny Chen7dc60e12011-01-24 19:46:32 +000064 ARMInstrSize size;
Greg Clayton64c84432011-01-21 22:02:52 +000065 EmulateCallback callback;
Johnny Chen4bee8ce2011-01-22 00:59:07 +000066 const char *name;
Johnny Chen7dc60e12011-01-24 19:46:32 +000067} ARMOpcode;
Greg Clayton64c84432011-01-21 22:02:52 +000068
69static bool
Johnny Chence1ca772011-01-25 01:13:00 +000070emulate_push (EmulateInstructionARM *emulator, ARMEncoding encoding)
Greg Clayton64c84432011-01-21 22:02:52 +000071{
72#if 0
73 // ARM pseudo code...
74 if (ConditionPassed())
75 {
76 EncodingSpecificOperations();
77 NullCheckIfThumbEE(13);
78 address = SP - 4*BitCount(registers);
79
80 for (i = 0 to 14)
81 {
82 if (registers<i> == 1’)
83 {
84 if i == 13 && i != LowestSetBit(registers) // Only possible for encoding A1
85 MemA[address,4] = bits(32) UNKNOWN;
86 else
87 MemA[address,4] = R[i];
88 address = address + 4;
89 }
90 }
91
92 if (registers<15> == 1’) // Only possible for encoding A1 or A2
93 MemA[address,4] = PCStoreValue();
94
95 SP = SP - 4*BitCount(registers);
96 }
97#endif
98
99 bool success = false;
100 const uint32_t opcode = emulator->OpcodeAsUnsigned (&success);
101 if (!success)
102 return false;
103
104 if (emulator->ConditionPassed())
105 {
106 const uint32_t addr_byte_size = emulator->GetAddressByteSize();
107 const addr_t sp = emulator->ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, 0, &success);
108 if (!success)
109 return false;
Johnny Chen3c75c762011-01-22 00:47:08 +0000110 uint32_t registers = 0;
Johnny Chen91d99862011-01-25 19:07:04 +0000111 uint32_t Rt; // the source register
Johnny Chen3c75c762011-01-22 00:47:08 +0000112 switch (encoding) {
Johnny Chenaedde1c2011-01-24 20:38:45 +0000113 case eEncodingT1:
Johnny Chen108d5aa2011-01-26 01:00:55 +0000114 registers = Bits32(opcode, 7, 0);
Johnny Chenaedde1c2011-01-24 20:38:45 +0000115 // The M bit represents LR.
Johnny Chen108d5aa2011-01-26 01:00:55 +0000116 if (Bits32(opcode, 8, 8))
Johnny Chenaedde1c2011-01-24 20:38:45 +0000117 registers |= 0x000eu;
118 // if BitCount(registers) < 1 then UNPREDICTABLE;
119 if (BitCount(registers) < 1)
120 return false;
121 break;
Johnny Chen7dc60e12011-01-24 19:46:32 +0000122 case eEncodingT2:
123 // Ignore bits 15 & 13.
Johnny Chen108d5aa2011-01-26 01:00:55 +0000124 registers = Bits32(opcode, 15, 0) & ~0xa000;
Johnny Chen7dc60e12011-01-24 19:46:32 +0000125 // if BitCount(registers) < 2 then UNPREDICTABLE;
126 if (BitCount(registers) < 2)
127 return false;
128 break;
129 case eEncodingT3:
Johnny Chen108d5aa2011-01-26 01:00:55 +0000130 Rt = Bits32(opcode, 15, 12);
Johnny Chen7dc60e12011-01-24 19:46:32 +0000131 // if BadReg(t) then UNPREDICTABLE;
Johnny Chen91d99862011-01-25 19:07:04 +0000132 if (BadReg(Rt))
Johnny Chen7dc60e12011-01-24 19:46:32 +0000133 return false;
Johnny Chen91d99862011-01-25 19:07:04 +0000134 registers = (1u << Rt);
Johnny Chen7dc60e12011-01-24 19:46:32 +0000135 break;
Johnny Chen3c75c762011-01-22 00:47:08 +0000136 case eEncodingA1:
Johnny Chen108d5aa2011-01-26 01:00:55 +0000137 registers = Bits32(opcode, 15, 0);
Johnny Chena33d4842011-01-24 22:25:48 +0000138 // Instead of return false, let's handle the following case as well,
139 // which amounts to pushing one reg onto the full descending stacks.
140 // if BitCount(register_list) < 2 then SEE STMDB / STMFD;
Johnny Chen3c75c762011-01-22 00:47:08 +0000141 break;
142 case eEncodingA2:
Johnny Chen108d5aa2011-01-26 01:00:55 +0000143 Rt = Bits32(opcode, 15, 12);
Johnny Chen7dc60e12011-01-24 19:46:32 +0000144 // if t == 13 then UNPREDICTABLE;
Johnny Chen91d99862011-01-25 19:07:04 +0000145 if (Rt == dwarf_sp)
Johnny Chen3c75c762011-01-22 00:47:08 +0000146 return false;
Johnny Chen91d99862011-01-25 19:07:04 +0000147 registers = (1u << Rt);
Johnny Chen3c75c762011-01-22 00:47:08 +0000148 break;
Johnny Chence1ca772011-01-25 01:13:00 +0000149 default:
150 return false;
Johnny Chen3c75c762011-01-22 00:47:08 +0000151 }
Johnny Chence1ca772011-01-25 01:13:00 +0000152 addr_t sp_offset = addr_byte_size * BitCount (registers);
Greg Clayton64c84432011-01-21 22:02:52 +0000153 addr_t addr = sp - sp_offset;
154 uint32_t i;
155
156 EmulateInstruction::Context context = { EmulateInstruction::eContextPushRegisterOnStack, eRegisterKindDWARF, 0, 0 };
157 for (i=0; i<15; ++i)
158 {
Johnny Chen108d5aa2011-01-26 01:00:55 +0000159 if (BitIsSet (registers, 1u << i))
Greg Clayton64c84432011-01-21 22:02:52 +0000160 {
161 context.arg1 = dwarf_r0 + i; // arg1 in the context is the DWARF register number
162 context.arg2 = addr - sp; // arg2 in the context is the stack pointer offset
163 uint32_t reg_value = emulator->ReadRegisterUnsigned(eRegisterKindDWARF, context.arg1, 0, &success);
164 if (!success)
165 return false;
166 if (!emulator->WriteMemoryUnsigned (context, addr, reg_value, addr_byte_size))
167 return false;
168 addr += addr_byte_size;
169 }
170 }
171
Johnny Chen108d5aa2011-01-26 01:00:55 +0000172 if (BitIsSet (registers, 1u << 15))
Greg Clayton64c84432011-01-21 22:02:52 +0000173 {
174 context.arg1 = dwarf_pc; // arg1 in the context is the DWARF register number
Johnny Chen3c75c762011-01-22 00:47:08 +0000175 context.arg2 = addr - sp; // arg2 in the context is the stack pointer offset
Greg Clayton64c84432011-01-21 22:02:52 +0000176 const uint32_t pc = emulator->ReadRegisterUnsigned(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, 0, &success);
177 if (!success)
178 return false;
179 if (!emulator->WriteMemoryUnsigned (context, addr, pc + 8, addr_byte_size))
180 return false;
181 }
182
183 context.type = EmulateInstruction::eContextAdjustStackPointer;
184 context.arg0 = eRegisterKindGeneric;
185 context.arg1 = LLDB_REGNUM_GENERIC_SP;
186 context.arg2 = sp_offset;
187
188 if (!emulator->WriteRegisterUnsigned (context, eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, sp - sp_offset))
189 return false;
190 }
191 return true;
192}
193
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000194// A sub operation to adjust the SP -- allocate space for local storage.
195static bool
196emulate_sub_sp_imm (EmulateInstructionARM *emulator, ARMEncoding encoding)
197{
198#if 0
199 // ARM pseudo code...
200 if (ConditionPassed())
201 {
202 EncodingSpecificOperations();
203 (result, carry, overflow) = AddWithCarry(SP, NOT(imm32), 1’);
204 if d == 15 then // Can only occur for ARM encoding
205 ALUWritePC(result); // setflags is always FALSE here
206 else
207 R[d] = result;
208 if setflags then
209 APSR.N = result<31>;
210 APSR.Z = IsZeroBit(result);
211 APSR.C = carry;
212 APSR.V = overflow;
213 }
214#endif
215
216 bool success = false;
217 const uint32_t opcode = emulator->OpcodeAsUnsigned (&success);
218 if (!success)
219 return false;
220
221 if (emulator->ConditionPassed())
222 {
223 const addr_t sp = emulator->ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, 0, &success);
224 if (!success)
225 return false;
226 uint32_t imm32;
227 switch (encoding) {
Johnny Chene4455022011-01-26 00:08:59 +0000228 case eEncodingT1:
229 imm32 = ThumbImmScaled(opcode); // imm32 = ZeroExtend(imm7:'00', 32)
Johnny Chen60c0d622011-01-25 23:49:39 +0000230 case eEncodingT2:
231 imm32 = ThumbExpandImm(opcode); // imm32 = ThumbExpandImm(i:imm3:imm8)
232 break;
233 case eEncodingT3:
234 imm32 = ThumbImm12(opcode); // imm32 = ZeroExtend(i:imm3:imm8, 32)
235 break;
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000236 case eEncodingA1:
Johnny Chen60c0d622011-01-25 23:49:39 +0000237 imm32 = ARMExpandImm(opcode); // imm32 = ARMExpandImm(imm12)
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000238 break;
239 default:
240 return false;
241 }
242 addr_t sp_offset = imm32;
243 addr_t addr = sp - sp_offset; // the adjusted stack pointer value
244
245 EmulateInstruction::Context context = { EmulateInstruction::eContextAdjustStackPointer,
246 eRegisterKindGeneric,
247 LLDB_REGNUM_GENERIC_SP,
248 sp_offset };
249
250 if (!emulator->WriteRegisterUnsigned (context, eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, addr))
251 return false;
252 }
253 return true;
254}
255
256// A store operation to the stacks that also updates the SP.
Johnny Chence1ca772011-01-25 01:13:00 +0000257static bool
258emulate_str_rt_sp (EmulateInstructionARM *emulator, ARMEncoding encoding)
259{
260#if 0
261 // ARM pseudo code...
262 if (ConditionPassed())
263 {
264 EncodingSpecificOperations();
265 offset_addr = if add then (R[n] + imm32) else (R[n] - imm32);
266 address = if index then offset_addr else R[n];
267 MemU[address,4] = if t == 15 then PCStoreValue() else R[t];
268 if wback then R[n] = offset_addr;
269 }
270#endif
271
272 bool success = false;
273 const uint32_t opcode = emulator->OpcodeAsUnsigned (&success);
274 if (!success)
275 return false;
276
277 if (emulator->ConditionPassed())
278 {
279 const uint32_t addr_byte_size = emulator->GetAddressByteSize();
280 const addr_t sp = emulator->ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, 0, &success);
281 if (!success)
282 return false;
Johnny Chen91d99862011-01-25 19:07:04 +0000283 uint32_t Rt; // the source register
Johnny Chence1ca772011-01-25 01:13:00 +0000284 uint32_t imm12;
285 switch (encoding) {
286 case eEncodingA1:
Johnny Chen108d5aa2011-01-26 01:00:55 +0000287 Rt = Bits32(opcode, 15, 12);
288 imm12 = Bits32(opcode, 11, 0);
Johnny Chence1ca772011-01-25 01:13:00 +0000289 break;
290 default:
291 return false;
292 }
293 addr_t sp_offset = imm12;
294 addr_t addr = sp - sp_offset;
295
296 EmulateInstruction::Context context = { EmulateInstruction::eContextPushRegisterOnStack, eRegisterKindDWARF, 0, 0 };
Johnny Chen91d99862011-01-25 19:07:04 +0000297 if (Rt != 15)
Johnny Chence1ca772011-01-25 01:13:00 +0000298 {
Johnny Chen91d99862011-01-25 19:07:04 +0000299 context.arg1 = dwarf_r0 + Rt; // arg1 in the context is the DWARF register number
300 context.arg2 = addr - sp; // arg2 in the context is the stack pointer offset
Johnny Chence1ca772011-01-25 01:13:00 +0000301 uint32_t reg_value = emulator->ReadRegisterUnsigned(eRegisterKindDWARF, context.arg1, 0, &success);
302 if (!success)
303 return false;
304 if (!emulator->WriteMemoryUnsigned (context, addr, reg_value, addr_byte_size))
305 return false;
306 }
307 else
308 {
309 context.arg1 = dwarf_pc; // arg1 in the context is the DWARF register number
310 context.arg2 = addr - sp; // arg2 in the context is the stack pointer offset
311 const uint32_t pc = emulator->ReadRegisterUnsigned(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, 0, &success);
312 if (!success)
313 return false;
314 if (!emulator->WriteMemoryUnsigned (context, addr, pc + 8, addr_byte_size))
315 return false;
316 }
317
318 context.type = EmulateInstruction::eContextAdjustStackPointer;
319 context.arg0 = eRegisterKindGeneric;
320 context.arg1 = LLDB_REGNUM_GENERIC_SP;
321 context.arg2 = sp_offset;
322
323 if (!emulator->WriteRegisterUnsigned (context, eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP, sp - sp_offset))
324 return false;
325 }
326 return true;
327}
328
Greg Clayton64c84432011-01-21 22:02:52 +0000329static ARMOpcode g_arm_opcodes[] =
330{
Johnny Chene4455022011-01-26 00:08:59 +0000331 // push register(s)
Johnny Chence1ca772011-01-25 01:13:00 +0000332 { 0x0fff0000, 0x092d0000, ARMvAll, eEncodingA1, eSize32, emulate_push,
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000333 "push <registers> ; <registers> contains more than one register" },
Johnny Chence1ca772011-01-25 01:13:00 +0000334 { 0x0fff0fff, 0x052d0004, ARMvAll, eEncodingA2, eSize32, emulate_push,
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000335 "push <registers> ; <registers> contains one register, <Rt>" },
336
337 // adjust the stack pointer
338 { 0x0ffff000, 0x024dd000, ARMvAll, eEncodingA1, eSize32, emulate_sub_sp_imm,
Johnny Chen60c0d622011-01-25 23:49:39 +0000339 "sub sp, sp, #<const>"},
Johnny Chence1ca772011-01-25 01:13:00 +0000340
341 // if Rn == '1101' && imm12 == '000000000100' then SEE PUSH;
342 { 0x0fff0000, 0x052d0000, ARMvAll, eEncodingA1, eSize32, emulate_str_rt_sp,
Johnny Chen60c0d622011-01-25 23:49:39 +0000343 "str Rt, [sp, #-<imm12>]!" }
Greg Clayton64c84432011-01-21 22:02:52 +0000344};
345
Johnny Chen347320d2011-01-24 23:40:59 +0000346static ARMOpcode g_thumb_opcodes[] =
347{
Johnny Chene4455022011-01-26 00:08:59 +0000348 // push register(s)
349 { 0xfffffe00, 0x0000b400, ARMvAll, eEncodingT1, eSize16, emulate_push,
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000350 "push <registers>" },
Johnny Chence1ca772011-01-25 01:13:00 +0000351 { 0xffff0000, 0xe92d0000, ARMv6T2|ARMv7, eEncodingT2, eSize32, emulate_push,
Johnny Chen4c0e0bc2011-01-25 22:45:28 +0000352 "push.w <registers> ; <registers> contains more than one register" },
Johnny Chence1ca772011-01-25 01:13:00 +0000353 { 0xffff0fff, 0xf84d0d04, ARMv6T2|ARMv7, eEncodingT3, eSize32, emulate_push,
Johnny Chen60c0d622011-01-25 23:49:39 +0000354 "push.w <registers> ; <registers> contains one register, <Rt>" },
355
356 // adjust the stack pointer
Johnny Chene4455022011-01-26 00:08:59 +0000357 { 0xffffff80, 0x0000b080, ARMvAll, eEncodingT1, eSize16, emulate_sub_sp_imm,
358 "sub{s} sp, sp, #<imm>"},
359 // adjust the stack pointer
Johnny Chen60c0d622011-01-25 23:49:39 +0000360 { 0xfbef8f00, 0xf1ad0d00, ARMv6T2|ARMv7, eEncodingT2, eSize32, emulate_sub_sp_imm,
361 "sub{s}.w sp, sp, #<const>"},
362 // adjust the stack pointer
363 { 0xfbff8f00, 0xf2ad0d00, ARMv6T2|ARMv7, eEncodingT3, eSize32, emulate_sub_sp_imm,
364 "subw sp, sp, #<imm12>"}
Johnny Chen347320d2011-01-24 23:40:59 +0000365};
366
Greg Clayton64c84432011-01-21 22:02:52 +0000367static const size_t k_num_arm_opcodes = sizeof(g_arm_opcodes)/sizeof(ARMOpcode);
Johnny Chen347320d2011-01-24 23:40:59 +0000368static const size_t k_num_thumb_opcodes = sizeof(g_thumb_opcodes)/sizeof(ARMOpcode);
Greg Clayton64c84432011-01-21 22:02:52 +0000369
370bool
371EmulateInstructionARM::ReadInstruction ()
372{
373 bool success = false;
374 m_inst_cpsr = ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_FLAGS, 0, &success);
375 if (success)
376 {
377 addr_t pc = ReadRegisterUnsigned (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, LLDB_INVALID_ADDRESS, &success);
378 if (success)
379 {
380 Context read_inst_context = {eContextReadOpcode, 0, 0};
381 if (m_inst_cpsr & MASK_CPSR_T)
382 {
383 m_inst_mode = eModeThumb;
384 uint32_t thumb_opcode = ReadMemoryUnsigned(read_inst_context, pc, 2, 0, &success);
385
386 if (success)
387 {
388 if ((m_inst.opcode.inst16 & 0xe000) != 0xe000 || ((m_inst.opcode.inst16 & 0x1800u) == 0))
389 {
390 m_inst.opcode_type = eOpcode16;
391 m_inst.opcode.inst16 = thumb_opcode;
392 }
393 else
394 {
395 m_inst.opcode_type = eOpcode32;
396 m_inst.opcode.inst32 = (thumb_opcode << 16) | ReadMemoryUnsigned(read_inst_context, pc + 2, 2, 0, &success);
397 }
398 }
399 }
400 else
401 {
402 m_inst_mode = eModeARM;
403 m_inst.opcode_type = eOpcode32;
404 m_inst.opcode.inst32 = ReadMemoryUnsigned(read_inst_context, pc, 4, 0, &success);
405 }
406 }
407 }
408 if (!success)
409 {
410 m_inst_mode = eModeInvalid;
411 m_inst_pc = LLDB_INVALID_ADDRESS;
412 }
413 return success;
414}
415
416uint32_t
417EmulateInstructionARM::CurrentCond ()
418{
419 switch (m_inst_mode)
420 {
421 default:
422 case eModeInvalid:
423 break;
424
425 case eModeARM:
426 return UnsignedBits(m_inst.opcode.inst32, 31, 28);
427
428 case eModeThumb:
429 return 0x0000000Eu; // Return always for now, we need to handl IT instructions later
430 }
431 return UINT32_MAX; // Return invalid value
432}
433bool
434EmulateInstructionARM::ConditionPassed ()
435{
436 if (m_inst_cpsr == 0)
437 return false;
438
439 const uint32_t cond = CurrentCond ();
440
441 if (cond == UINT32_MAX)
442 return false;
443
444 bool result = false;
445 switch (UnsignedBits(cond, 3, 1))
446 {
447 case 0: result = (m_inst_cpsr & MASK_CPSR_Z) != 0; break;
448 case 1: result = (m_inst_cpsr & MASK_CPSR_C) != 0; break;
449 case 2: result = (m_inst_cpsr & MASK_CPSR_N) != 0; break;
450 case 3: result = (m_inst_cpsr & MASK_CPSR_V) != 0; break;
451 case 4: result = ((m_inst_cpsr & MASK_CPSR_C) != 0) && ((m_inst_cpsr & MASK_CPSR_Z) == 0); break;
452 case 5:
453 {
454 bool n = (m_inst_cpsr & MASK_CPSR_N);
455 bool v = (m_inst_cpsr & MASK_CPSR_V);
456 result = n == v;
457 }
458 break;
459 case 6:
460 {
461 bool n = (m_inst_cpsr & MASK_CPSR_N);
462 bool v = (m_inst_cpsr & MASK_CPSR_V);
463 result = n == v && ((m_inst_cpsr & MASK_CPSR_Z) == 0);
464 }
465 break;
466 case 7:
467 result = true;
468 break;
469 }
470
471 if (cond & 1)
472 result = !result;
473 return result;
474}
475
476
477bool
478EmulateInstructionARM::EvaluateInstruction ()
479{
480 return false;
481}