aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorUri Shaked2020-08-01 15:47:35 +0300
committerUri Shaked2020-08-01 15:47:35 +0300
commitb0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b (patch)
tree00c2dce9476c7c412b2d81445249d681ef368994 /src/utils
parentchore(deps): npm audit fix (diff)
downloadavr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.tar.gz
avr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.tar.bz2
avr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.zip
test(timer): use TestProgramRunner
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/test-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/test-utils.ts b/src/utils/test-utils.ts
index dfb6b32..ca483f3 100644
--- a/src/utils/test-utils.ts
+++ b/src/utils/test-utils.ts
@@ -7,7 +7,7 @@ export function asmProgram(source: string) {
if (errors.length) {
throw new Error('Assembly failed: ' + errors);
}
- return { program: new Uint16Array(bytes.buffer), lines };
+ return { program: new Uint16Array(bytes.buffer), lines, instructionCount: lines.length };
}
export class TestProgramRunner {
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.