aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/cpu.ts3
-rw-r--r--src/cpu/instruction.spec.ts5
-rw-r--r--src/cpu/instruction.ts3
-rw-r--r--src/cpu/interrupt.spec.ts3
-rw-r--r--src/cpu/interrupt.ts3
5 files changed, 16 insertions, 1 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts
index cd9e3e4..62ff40a 100644
--- a/src/cpu/cpu.ts
+++ b/src/cpu/cpu.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
/**
* AVR 8 CPU data structures
* Part of AVR8js
diff --git a/src/cpu/instruction.spec.ts b/src/cpu/instruction.spec.ts
index cf3e547..aa01876 100644
--- a/src/cpu/instruction.spec.ts
+++ b/src/cpu/instruction.spec.ts
@@ -1,7 +1,10 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
import { CPU } from './cpu';
import { avrInstruction } from './instruction';
import { assemble } from '../utils/assembler';
-import { describe, it, expect, vi } from 'vitest';
+import { describe, it, expect, vi, beforeEach } from 'vitest';
const r0 = 0;
const r1 = 1;
diff --git a/src/cpu/instruction.ts b/src/cpu/instruction.ts
index d29bfb8..d815733 100644
--- a/src/cpu/instruction.ts
+++ b/src/cpu/instruction.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
/**
* AVR-8 Instruction Simulation
* Part of AVR8js
diff --git a/src/cpu/interrupt.spec.ts b/src/cpu/interrupt.spec.ts
index 944dbb9..fbf2ebe 100644
--- a/src/cpu/interrupt.spec.ts
+++ b/src/cpu/interrupt.spec.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
import { describe, expect, it } from 'vitest';
import { CPU } from './cpu';
import { avrInterrupt } from './interrupt';
diff --git a/src/cpu/interrupt.ts b/src/cpu/interrupt.ts
index 2e4ceb9..73b56ee 100644
--- a/src/cpu/interrupt.ts
+++ b/src/cpu/interrupt.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
/**
* AVR-8 Interrupt Handling
* Part of AVR8js
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.