Merge pull request #7 from yuriks/patch-1

Return correct value for a2/lcnt index register
This commit is contained in:
fincs 2016-01-22 11:17:33 +01:00
commit 8f402ad02a

View File

@ -542,7 +542,7 @@ static inline int convertIdxRegName(const char* reg)
{
if (stricmp(reg, "a0")==0) return 1;
if (stricmp(reg, "a1")==0) return 2;
if (stricmp(reg, "a2")==0 || stricmp(reg, "lcnt")==0) return 2;
if (stricmp(reg, "a2")==0 || stricmp(reg, "lcnt")==0) return 3;
return 0;
}