1
0
Fork 0

DBG: allow assembling "jmp short 401000" (short is simply ignored now)

This commit is contained in:
Mr. eXoDia 2015-01-03 20:44:27 +01:00
parent 92b5110291
commit af790b5cc9
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ bool assemble(uint addr, unsigned char* dest, int* size, const char* instruction
#endif
parse.cbUnknown = cbUnknown;
parse.cip = addr;
strcpy(parse.instr, instruction);
String instr = instruction;
size_t pos = instr.find(" short ");
if(pos != String::npos)
instr.erase(pos, 6);
strcpy(parse.instr, instr.c_str());
if(XEDParseAssemble(&parse) == XEDPARSE_ERROR)
{
if(error)