smaller .js files
This commit is contained in:
parent
65e59d350d
commit
d64317ac11
2
dasm
2
dasm
|
@ -1 +1 @@
|
|||
Subproject commit 0010af096eb2e966e1f44b2238ceb787b391b269
|
||||
Subproject commit a938feeae106c7097882d4ad1581c06e91ef4b72
|
|
@ -56,6 +56,7 @@ body {
|
|||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
background-color: #666;
|
||||
}
|
||||
div.editor {
|
||||
position:absolute;
|
||||
|
@ -74,7 +75,6 @@ div.emulator {
|
|||
left:50%;
|
||||
top:0;
|
||||
width:50%;
|
||||
height:100vh;
|
||||
overflow-y: scroll;
|
||||
background-color: #666;
|
||||
margin-top: 20px auto 0;
|
||||
|
|
28715
src/worker/acme.js
28715
src/worker/acme.js
File diff suppressed because one or more lines are too long
26738
src/worker/dasm.js
26738
src/worker/dasm.js
File diff suppressed because one or more lines are too long
21377
src/worker/plasm.js
21377
src/worker/plasm.js
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
// set up require.js for worker
|
||||
importScripts("dasm.js");
|
||||
importScripts("acme.js");
|
||||
|
@ -158,8 +158,8 @@ function assembleACME(code) {
|
|||
var asym = FS.readFile("a.sym", {'encoding':'utf8'}); // TODO
|
||||
console.log("acme", code.length, "->", aout.length);
|
||||
//console.log(aout);
|
||||
console.log(alst);
|
||||
console.log(asym);
|
||||
console.log(alst); // TODO
|
||||
console.log(asym); // TODO
|
||||
var listing = parseDASMListing(alst, unresolved);
|
||||
return {exitstatus:Module.EXITSTATUS, output:aout, listing:listing};
|
||||
}
|
||||
|
@ -181,7 +181,8 @@ function compilePLASMA(code) {
|
|||
FS.writeFile("main.pla", code);
|
||||
Module.callMain(["-A"]);
|
||||
//console.log("plasm", code.length, "->", outstr.length);
|
||||
console.log(outstr);
|
||||
outstr = "INTERP = $e044\n" + outstr; // TODO
|
||||
console.log(outstr); // TODO
|
||||
return assembleACME(outstr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue