mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-23 03:29:39 +00:00
fixed DASM symbol map
This commit is contained in:
parent
ba12e481f7
commit
c43ecf046c
@ -592,7 +592,7 @@ function assembleDASM(step) {
|
||||
}
|
||||
}
|
||||
var aout = FS.readFile(binpath);
|
||||
var asym = FS.readFile(lstpath, {'encoding':'utf8'});
|
||||
var asym = FS.readFile(sympath, {'encoding':'utf8'});
|
||||
putWorkFile(binpath, aout);
|
||||
putWorkFile(lstpath, alst);
|
||||
putWorkFile(sympath, asym);
|
||||
@ -602,7 +602,7 @@ function assembleDASM(step) {
|
||||
return;
|
||||
var symbolmap = {};
|
||||
for (var s of asym.split("\n")) {
|
||||
var toks = s.split(" ");
|
||||
var toks = s.split(/\s+/);
|
||||
if (toks && toks.length >= 2 && !toks[0].startsWith('-')) {
|
||||
symbolmap[toks[0]] = parseInt(toks[1], 16);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user