Skip to content

Commit

Permalink
Class-i-fy via
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Dec 24, 2023
1 parent e37af97 commit 5938441
Show file tree
Hide file tree
Showing 2 changed files with 513 additions and 503 deletions.
4 changes: 2 additions & 2 deletions 6502.js
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ export class Cpu6502 extends Base6502 {
this.videoDisplayPage = 0;
this.scheduler = new Scheduler();
this.soundChip.setScheduler(this.scheduler);
this.sysvia = via.SysVia(
this.sysvia = new via.SysVia(
this,
this.video,
this.soundChip,
Expand All @@ -1170,7 +1170,7 @@ export class Cpu6502 extends Base6502 {
this.config.keyLayout,
this.config.getGamepads,
);
this.uservia = via.UserVia(this, this.model.isMaster, this.config.userPort);
this.uservia = new via.UserVia(this, this.model.isMaster, this.config.userPort);
if (this.config.printerPort) this.uservia.ca2changecallback = this.config.printerPort.outputStrobe;
this.touchScreen = new TouchScreen(this.scheduler);
this.acia = new Acia(this, this.soundChip.toneGenerator, this.scheduler, this.touchScreen);
Expand Down
Loading

0 comments on commit 5938441

Please sign in to comment.