7800: fixed vsync bug

This commit is contained in:
Steven Hugg 2022-10-04 10:32:13 -05:00
parent fc767a6e1f
commit 03eb4f5e6f
3 changed files with 5 additions and 4 deletions

View File

@ -54,4 +54,4 @@ syncprod: distro
cp config.js $(TMP)
#aws --profile pzp s3 sync --follow-symlinks $(TMP)/ s3://8bitworkshop.com/v$(VERSION)/
s3cmd -c ~/.s3pzp sync -MFP --no-mime-magic $(TMP)/ config.js s3://8bitworkshop.com/v$(VERSION)/
rsync --stats -riltz --chmod=a+rx -e "ssh" $(TMP)/ config.js $(RSYNC_PATH)/v$(VERSION)/
rsync --stats --del -riltz --chmod=a+rx -e "ssh" $(TMP)/ config.js $(RSYNC_PATH)/v$(VERSION)/

View File

@ -464,7 +464,7 @@ export class Atari7800 extends BasicMachine implements RasterFrameBased {
}
getRasterX() { return this.lastFrameCycles % colorClocksPerLine; }
getRasterY() { return Math.floor(this.lastFrameCycles / colorClocksPerLine); }
getRasterY() { return this.scanline; }
loadROM(data) {
if (data.length == 0xc080) data = data.slice(0x80); // strip header

View File

@ -90,6 +90,7 @@ function testPlatform(exports, platform_id, platform_name, numPresets) {
var ex = module.exports;
ex['@tags'] = []
testPlatform(ex, 'vcs', 'Atari 2600', 35);
testPlatform(ex, 'nes', 'NES', 30);
testPlatform(ex, 'vicdual', 'VIC Dual', 7);
@ -107,7 +108,7 @@ testPlatform(ex, 'verilog', 'Verilog', 33);
testPlatform(ex, 'apple2', 'Apple ][+', 10);
testPlatform(ex, 'basic', 'BASIC', 10);
testPlatform(ex, 'zmachine', 'Z-Machine', 19);
//testPlatform(ex, 'atari8-800xl.mame', 'Atari 800XL', 9);
testPlatform(ex, 'msx', 'MSX', 5);
testPlatform(ex, 'zx', 'ZX', 3);
//testPlatform(ex, 'zx', 'ZX', 3);
testPlatform(ex, 'c64', 'Commodore 64', 15);
testPlatform(ex, 'atari8-800', 'Atari 800', 9);