mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +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 aout = FS.readFile(binpath);
|
||||||
var asym = FS.readFile(lstpath, {'encoding':'utf8'});
|
var asym = FS.readFile(sympath, {'encoding':'utf8'});
|
||||||
putWorkFile(binpath, aout);
|
putWorkFile(binpath, aout);
|
||||||
putWorkFile(lstpath, alst);
|
putWorkFile(lstpath, alst);
|
||||||
putWorkFile(sympath, asym);
|
putWorkFile(sympath, asym);
|
||||||
@ -602,7 +602,7 @@ function assembleDASM(step) {
|
|||||||
return;
|
return;
|
||||||
var symbolmap = {};
|
var symbolmap = {};
|
||||||
for (var s of asym.split("\n")) {
|
for (var s of asym.split("\n")) {
|
||||||
var toks = s.split(" ");
|
var toks = s.split(/\s+/);
|
||||||
if (toks && toks.length >= 2 && !toks[0].startsWith('-')) {
|
if (toks && toks.length >= 2 && !toks[0].startsWith('-')) {
|
||||||
symbolmap[toks[0]] = parseInt(toks[1], 16);
|
symbolmap[toks[0]] = parseInt(toks[1], 16);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user