Special casing some VC++ traps.
This commit is contained in:
@@ -309,8 +309,15 @@ int Translate_DEBUG_BREAK_TRUE(TranslationContext& ctx, Instr* i) {
|
||||
}
|
||||
|
||||
uint32_t IntCode_TRAP(IntCodeState& ics, const IntCode* i) {
|
||||
// 0x0FE00014 is a 'debug print' where r3 = buffer r4 = length
|
||||
// TODO(benvanik): post software interrupt to debugger.
|
||||
switch (i->flags) {
|
||||
case 20:
|
||||
// 0x0FE00014 is a 'debug print' where r3 = buffer r4 = length
|
||||
break;
|
||||
case 22:
|
||||
// Always trap?
|
||||
break;
|
||||
}
|
||||
__debugbreak();
|
||||
return IA_NEXT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user