From b40a156ae61aa2c6b6383650f8a22fbac923fb43 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Sun, 19 May 2019 18:18:41 -0400 Subject: [PATCH] added getRasterScanline() for profiler --- src/platform/galaxian.ts | 5 +++++ src/platform/vicdual.ts | 7 +++++++ src/platform/williams.ts | 2 ++ 3 files changed, 14 insertions(+) diff --git a/src/platform/galaxian.ts b/src/platform/galaxian.ts index edffb41a..b7010cc3 100644 --- a/src/platform/galaxian.ts +++ b/src/platform/galaxian.ts @@ -201,6 +201,8 @@ const _GalaxianPlatform = function(mainElement, options) { ]; class GalaxianPlatform extends BaseZ80Platform implements Platform { + + scanline : number; getPresets() { return GALAXIAN_PRESETS; @@ -305,6 +307,7 @@ const _GalaxianPlatform = function(mainElement, options) { advance(novideo : boolean) { for (var sl=0; sl= 0x4020 && (data[0x4000] || data[0x401f])) { diff --git a/src/platform/williams.ts b/src/platform/williams.ts index 607996d5..149b4f86 100644 --- a/src/platform/williams.ts +++ b/src/platform/williams.ts @@ -308,6 +308,8 @@ var WilliamsPlatform = function(mainElement, proto) { pixels = video.getFrameData(); timer = new AnimationTimer(60, this.nextFrame.bind(this)); } + + this.getRasterScanline = function() { return video_counter; } this.advance = function(novideo:boolean) { var cpuCyclesPerSection = Math.round(cpuCyclesPerFrame / 65);