aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/cpu.ts
diff options
context:
space:
mode:
authorUri Shaked2022-04-30 00:58:40 +0300
committerUri Shaked2022-04-30 00:58:40 +0300
commitec735c7e09678eb333d73d5920004947d361f589 (patch)
treef4b437adcb0bf051293e0aa4e011d3595a403943 /src/cpu/cpu.ts
parentMerge pull request #124 from wokwi/dependabot/npm_and_yarn/minimist-1.2.6 (diff)
downloadavr8js-ec735c7e09678eb333d73d5920004947d361f589.tar.gz
avr8js-ec735c7e09678eb333d73d5920004947d361f589.tar.bz2
avr8js-ec735c7e09678eb333d73d5920004947d361f589.zip
fix(cpu): don't clear RAM on reset #107
wokwi/wokwi-features#282
Diffstat (limited to 'src/cpu/cpu.ts')
-rw-r--r--src/cpu/cpu.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts
index 77a6b05..d26ef8f 100644
--- a/src/cpu/cpu.ts
+++ b/src/cpu/cpu.ts
@@ -85,7 +85,6 @@ export class CPU {
}
reset() {
- this.data.fill(0);
this.SP = this.data.length - 1;
this.pc = 0;
this.pendingInterrupts.fill(null);