| 27 | |
| 28 | namespace M4 { |
| 29 | static void ParseSemantic(const char* semantic, uint32_t* outputLength, uint32_t* outputIndex) |
| 30 | { |
| 31 | const char* semanticIndex = semantic; |
| 32 | |
| 33 | while (*semanticIndex && !isdigit(*semanticIndex)) { |
| 34 | semanticIndex++; |
| 35 | } |
| 36 | |
| 37 | *outputLength = (uint32_t)(semanticIndex - semantic); |
| 38 | *outputIndex = atoi(semanticIndex); |
| 39 | } |
| 40 | |
| 41 | // Parse register name and advance next register index. |
| 42 | static int ParseRegister(const char* registerName, int& nextRegister) |
no outgoing calls
no test coverage detected