(nm: string, offset: number, width: number)
| 2566 | const intval = parseInt(val.toLowerCase()); |
| 2567 | res.type = `Register: $${reg} Thread#${threadId}, Frame#${frameId}\n` + toStringDecHexOctBin(intval); |
| 2568 | const field = (nm: string, offset: number, width: number): string => { |
| 2569 | const v = extractBits(intval, offset, width); |
| 2570 | return `\n ${nm}: ${v.toString()}`; |
| 2571 | }; |
| 2572 | // TODO: someday, fake these registers as a struct to VSCode |
| 2573 | if (reg.toLowerCase() === 'xpsr') { |
| 2574 | res.type += field('Negative Flag (N)', 31, 1); |
nothing calls this directly
no test coverage detected