Skip to content

Commit ec735c7

Browse files
committed
fix(cpu): don't clear RAM on reset #107
wokwi/wokwi-features#282
1 parent 358a1e8 commit ec735c7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/cpu/cpu.ts

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class CPU {
8585
}
8686

8787
reset() {
88-
this.data.fill(0);
8988
this.SP = this.data.length - 1;
9089
this.pc = 0;
9190
this.pendingInterrupts.fill(null);

0 commit comments

Comments
 (0)