Fix #4345 - Add scas{bwd} for x86.nz

This commit is contained in:
pancake 2016-03-18 16:59:47 +01:00
parent b858467162
commit 446add902f

View File

@ -204,6 +204,10 @@ static int assemble(RAsm *a, RAsmOp *ao, const char *str) {
memmove (op, op+4, strlen (op+4)+1);
}
if (!strcmp (op, "scasb")) { data[l++] = 0xae; return l; }
if (!strcmp (op, "scasw")) { data[l++] = 0x66; return l; }
if (!strcmp (op, "scasd")) { data[l++] = 0xaf; return l; }
if (!strcmp (op, "movsb")) { data[l++] = 0xa4; return l; }
if (!strcmp (op, "movsw")) { data[0] = 0x66; data[1] = 0xa5; return 2; }
if (!strcmp (op, "movsd")) { data[0] = 0xa5; return 1; }