mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-26 10:49:17 +00:00
minor fixes
This commit is contained in:
parent
41fc5f9e9a
commit
ec6ce6b448
@ -23,8 +23,7 @@ CodeMirror.defineMode('6502', function(_config, parserConfig) {
|
|||||||
'align','subroutine','equ','eqm','set','mac','endm','mexit','ifconst',
|
'align','subroutine','equ','eqm','set','mac','endm','mexit','ifconst',
|
||||||
'ifnconst','if','else','endif','eif','repeat','repend'];
|
'ifnconst','if','else','endif','eif','repeat','repend'];
|
||||||
var directives = {};
|
var directives = {};
|
||||||
for (var s of directives_list)
|
directives_list.forEach(function(s) { directives[s] = 'keyword'; });
|
||||||
directives[s] = 'keyword';
|
|
||||||
|
|
||||||
var opcodes = /^[a-z][a-z][a-z]\b/i;
|
var opcodes = /^[a-z][a-z][a-z]\b/i;
|
||||||
var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;
|
var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;
|
||||||
|
@ -43,8 +43,7 @@ CodeMirror.defineMode('bataribasic', function(_config, parserConfig) {
|
|||||||
"cyclescore","cycles","legacy"
|
"cyclescore","cycles","legacy"
|
||||||
];
|
];
|
||||||
var directives = {};
|
var directives = {};
|
||||||
for (var s of directives_list)
|
directives_list.forEach(function(s) { directives[s] = 'keyword'; });
|
||||||
directives[s] = 'keyword';
|
|
||||||
|
|
||||||
var numbers = /^([$][0-9a-f]+|[%][01]+|[0-9.]+)/i;
|
var numbers = /^([$][0-9a-f]+|[%][01]+|[0-9.]+)/i;
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ class JSNESPlatform extends Base6502Platform implements Platform, Probeable {
|
|||||||
this.nes.stop = () => {
|
this.nes.stop = () => {
|
||||||
// TODO: trigger breakpoint
|
// TODO: trigger breakpoint
|
||||||
console.log(this.nes.cpu.toJSON());
|
console.log(this.nes.cpu.toJSON());
|
||||||
throw new EmuHalt("CPU STOPPED @ PC $" + hex(this.nes.cpu.REG_PC));
|
throw new EmuHalt("CPU STOPPED");
|
||||||
};
|
};
|
||||||
// insert debug hook
|
// insert debug hook
|
||||||
this.nes.cpu._emulate = this.nes.cpu.emulate;
|
this.nes.cpu._emulate = this.nes.cpu.emulate;
|
||||||
|
Loading…
Reference in New Issue
Block a user