Return correct value for a2/lcnt index register

This commit is contained in:
Yuri Kunde Schlesner 2016-01-21 23:18:05 -08:00
parent 36fa1cd15a
commit 02c0cd4b08

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;
}