mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-04-20 00:17:04 +00:00
smaller .js files
This commit is contained in:
+1
-1
Submodule dasm updated: 0010af096e...a938feeae1
+1
-1
@@ -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;
|
||||
|
||||
+12
-28703
File diff suppressed because one or more lines are too long
+8
-26730
File diff suppressed because one or more lines are too long
+11
-21366
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user