(labelName)
| 74 | return address |
| 75 | |
| 76 | def getLocationOfLabel(labelName): |
| 77 | location = 0 |
| 78 | for var in data: |
| 79 | if (labelName == var[0]): |
| 80 | varUseError(labelName) |
| 81 | location = location + 1 |
| 82 | for operations in program: |
| 83 | if (labelName == operations[0]): |
| 84 | return location |
| 85 | location = location + len(operations[1]) |
| 86 | return -1 |
| 87 | |
| 88 | def getVarIndex(varName): |
| 89 | i = 0 |
no test coverage detected