mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 18:33:11 +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',
|
||||
'ifnconst','if','else','endif','eif','repeat','repend'];
|
||||
var directives = {};
|
||||
for (var s of directives_list)
|
||||
directives[s] = 'keyword';
|
||||
directives_list.forEach(function(s) { directives[s] = 'keyword'; });
|
||||
|
||||
var opcodes = /^[a-z][a-z][a-z]\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"
|
||||
];
|
||||
var directives = {};
|
||||
for (var s of directives_list)
|
||||
directives[s] = 'keyword';
|
||||
directives_list.forEach(function(s) { directives[s] = 'keyword'; });
|
||||
|
||||
var numbers = /^([$][0-9a-f]+|[%][01]+|[0-9.]+)/i;
|
||||
|
||||
|
@ -133,7 +133,7 @@ class JSNESPlatform extends Base6502Platform implements Platform, Probeable {
|
||||
this.nes.stop = () => {
|
||||
// TODO: trigger breakpoint
|
||||
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
|
||||
this.nes.cpu._emulate = this.nes.cpu.emulate;
|
||||
|
Loading…
Reference in New Issue
Block a user