diff options
| author | Uri Shaked | 2020-12-27 00:05:54 +0200 |
|---|---|---|
| committer | Uri Shaked | 2020-12-27 00:05:54 +0200 |
| commit | 988070a92d4654a40a0bf55a9b3ff5c0b7e1ae5e (patch) | |
| tree | 07e6c0467ea0f47e31d69afa9e8e6e2377791dbc /src/utils/assembler.ts | |
| parent | 0.14.7 (diff) | |
| download | avr8js-988070a92d4654a40a0bf55a9b3ff5c0b7e1ae5e.tar.gz avr8js-988070a92d4654a40a0bf55a9b3ff5c0b7e1ae5e.tar.bz2 avr8js-988070a92d4654a40a0bf55a9b3ff5c0b7e1ae5e.zip | |
fix(timer): Output Compare in PWM modes #78
close #78
Diffstat (limited to '')
| -rw-r--r-- | src/utils/assembler.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/assembler.ts b/src/utils/assembler.ts index 4823937..278e944 100644 --- a/src/utils/assembler.ts +++ b/src/utils/assembler.ts @@ -29,7 +29,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -interface LabelTable { +export interface LabelTable { [key: string]: number; } @@ -938,7 +938,7 @@ function passTwo(lineTable: LineTablePass1[], labels: LabelTable) { } } - return { errors: errorTable, bytes: resultTable, lines: lineTable as LineTable[] }; + return { errors: errorTable, bytes: resultTable, lines: lineTable as LineTable[], labels }; } /** @@ -951,6 +951,7 @@ export function assemble(input: string) { bytes: new Uint8Array(0), errors: mid.errors, lines: [], + labels: {}, }; } return passTwo(mid.lines, mid.labels); |
