TCHAR *p = buffer + _tcslen(buffer);
if (dp & 3) {
+ // indirect
_stprintf(p, _T("["));
p += _tcslen(p);
+ } else {
+ // (an,dn,word/long)
+ if (name) {
+ _stprintf(p, _T("%s,"), name);
+ p += _tcslen(p);
+ }
+ if (dr[0]) {
+ _stprintf(p, _T("%s%s,"), dr, mult);
+ p += _tcslen(p);
+ }
}
if ((dp & 0x30) == 0x20) { // BD SIZE = 2 (WORD)
_stprintf(p, _T("%s,"), name);
p += _tcslen(p);
}
- }
- if (!(dp & 0x04)) {
- if (dr[0]) {
- _stprintf(p, _T("%s%s,"), dr, mult);
- p += _tcslen(p);
+ if (!(dp & 0x04)) {
+ if (dr[0]) {
+ _stprintf(p, _T("%s%s,"), dr, mult);
+ p += _tcslen(p);
+ }
}
- }
- if (dp & 3) {
if (p[-1] == ',')
p--;
_stprintf(p, _T("],"));
p += _tcslen(p);
- }
- if ((dp & 0x04)) {
- if (dr[0]) {
- _stprintf(p, _T("%s%s,"), dr, mult);
- p += _tcslen(p);
+ if ((dp & 0x04)) {
+ if (dr[0]) {
+ _stprintf(p, _T("%s%s,"), dr, mult);
+ p += _tcslen(p);
+ }
}
+
}
if ((dp & 0x03) == 0x02) {