smaller .js files

This commit is contained in:
Steven Hugg 2017-01-09 16:28:20 -05:00
parent 65e59d350d
commit d64317ac11
6 changed files with 38 additions and 76805 deletions

2
dasm

@ -1 +1 @@
Subproject commit 0010af096eb2e966e1f44b2238ceb787b391b269
Subproject commit a938feeae106c7097882d4ad1581c06e91ef4b72

View File

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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);
}