legacy r code support

This commit is contained in:
Akash Mozumdar 2018-08-30 16:48:14 -04:00
parent a40222285a
commit 4f1bc5a9b2
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ namespace
return {}; return {};
} }
RCode.remove(0, 1); RCode.remove(0, 1);
if (RCode.at(0).unicode() == L'0') RCode.remove(0, 1);
QRegExp stringGap("^\\*(\\-?[\\dA-F]+)"); QRegExp stringGap("^\\*(\\-?[\\dA-F]+)");
if (stringGap.indexIn(RCode) != -1) if (stringGap.indexIn(RCode) != -1)
{ {

View File

@ -16,7 +16,7 @@ static QString CodeInfoDump =
/H{A|B|W|S|Q|V}[N]data_offset[*deref_offset1][:split_offset[*deref_offset2]]@addr[:module]\r\n\ /H{A|B|W|S|Q|V}[N]data_offset[*deref_offset1][:split_offset[*deref_offset2]]@addr[:module]\r\n\
OR\r\n\ OR\r\n\
Enter read code\r\n\ Enter read code\r\n\
/R{S|Q|V}string_gap@addr\r\n\ /R{S|Q|V}{0|*deref_offset}@addr\r\n\
All numbers in hexadecimal\r\n\ All numbers in hexadecimal\r\n\
Use 0 for string_gap if string is in same location every time\r\n\ Use 0 for string_gap if string is in same location every time\r\n\
A/B: Shift-JIS char little/big endian\r\n\ A/B: Shift-JIS char little/big endian\r\n\