1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-25 15:30:03 +00:00

fixed a couple sentry bugs

This commit is contained in:
Steven Hugg 2020-01-28 09:50:38 -06:00
parent 899e3f7067
commit b749d58de6
3 changed files with 12 additions and 4 deletions

View File

@ -384,3 +384,11 @@ Emulator Lib
- VCS
- NES
- MAME
Markdown (showdown) interface
- add code patches to files
- cursor shows current state/errors (must map markdown->src lines)
- show preview emulator at each step (play button? run when viewed?)

View File

@ -75,7 +75,7 @@ var AtariVectorPlatform = function(mainElement) {
[0x2400, 0x2407, 0x7, function(a) { return switches[a+8]; }],
[0x4000, 0x4fff, 0xfff, function(a) { return dvgram.mem[a]; }],
[0x5000, 0x5fff, 0xfff, function(a) { return vecrom[a]; }],
[0x6800, 0x7fff, 0, function(a) { return rom[a - 0x6800]; }],
[0x6800, 0x7fff, 0, function(a) { return rom ? rom[a - 0x6800] : 0; }],
], {gmask:0x7fff}),
write: newAddressDecoder([
@ -224,7 +224,7 @@ var AtariColorVectorPlatform = function(mainElement) {
//[0x7000, 0x7000, 0, function(a) { /* EAROM read */ return 0; }],
//[0x8940, 0x897f, 0x3f, function(a) { /* EAROM data */ return 0; }],
[0x8900, 0x8900, 0, function(a) { /* EAROM read */ return earom_data; }],
[0x9000, 0xffff, 0xffff, function(a) { return rom[a - 0x9000]; }],
[0x9000, 0xffff, 0xffff, function(a) { return rom ? rom[a - 0x9000] : 0; }],
]),
write: newAddressDecoder([
@ -373,7 +373,7 @@ var Z80ColorVectorPlatform = function(mainElement, proto) {
bus = {
read: newAddressDecoder([
[0x0, 0x7fff, 0, function(a) { return rom[a]; }],
[0x0, 0x7fff, 0, function(a) { return rom ? rom[a] : 0; }],
[0x8000, 0x800f, 0xf, function(a) { return switches[a]; }],
[0x8100, 0x810f, 0xf, function(a) { return mathram[a]; } ],
[0xa000, 0xdfff, 0x3fff, function(a) { return dvgram.mem[a]; }],

View File

@ -371,7 +371,7 @@ var VerilogPlatform = function(mainElement, options) {
timerCallback = () => {
if (!this.isRunning())
return;
gen.switches = switches[0];
if (gen) gen.switches = switches[0];
this.updateFrame();
};
this.setFrameRate(60);