Skip to content

Commit

Permalink
fix(cpu): don't clear RAM on reset #107
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Apr 29, 2022
1 parent 358a1e8 commit ec735c7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cpu/cpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec735c7

Please sign in to comment.