aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/assembler.spec.ts6
-rw-r--r--src/utils/assembler.ts6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/assembler.spec.ts b/src/utils/assembler.spec.ts
index 7b1491f..f0daf64 100644
--- a/src/utils/assembler.spec.ts
+++ b/src/utils/assembler.spec.ts
@@ -13,7 +13,7 @@ describe('AVR assembler', () => {
expect(assemble('ADD r16, r11')).toEqual({
bytes: bytes('0b0d'),
errors: [],
- lines: [{ byteOffset: 0, bytes: '0d0b', line: 1, text: 'ADD r16, r11' }]
+ lines: [{ byteOffset: 0, bytes: '0d0b', line: 1, text: 'ADD r16, r11' }],
});
});
@@ -35,7 +35,7 @@ describe('AVR assembler', () => {
expect(assemble('')).toEqual({
bytes: new Uint8Array(0),
errors: [],
- lines: []
+ lines: [],
});
});
@@ -43,7 +43,7 @@ describe('AVR assembler', () => {
expect(assemble('LDI r15, 20')).toEqual({
bytes: new Uint8Array(0),
errors: ['Line 0: Rd out of range: 16<>31'],
- lines: []
+ lines: [],
});
});
diff --git a/src/utils/assembler.ts b/src/utils/assembler.ts
index 22ac948..17b20b4 100644
--- a/src/utils/assembler.ts
+++ b/src/utils/assembler.ts
@@ -763,7 +763,7 @@ const OPTABLE: { [key: string]: opcodeHandler } = {
throw 'Bad param, not Z';
}
return zeroPad(r);
- }
+ },
};
function passOne(inputdata: string) {
@@ -880,7 +880,7 @@ function passOne(inputdata: string) {
return {
labels: lableTable,
errors: errorTable,
- lines: lineTable
+ lines: lineTable,
};
}
@@ -950,7 +950,7 @@ export function assemble(input: string) {
return {
bytes: new Uint8Array(0),
errors: mid.errors,
- lines: []
+ lines: [],
};
}
return passTwo(mid.lines, mid.labels);
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.