1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 23:41:32 +00:00

reorg asm.js and fs directories

This commit is contained in:
Steven Hugg 2018-06-24 13:14:59 -04:00
parent 2f6f426ecc
commit 3bf39dbde5
32 changed files with 11 additions and 11 deletions

View File

@ -1,13 +1,11 @@
TODO:
- download ROM file
- NaN in cycle count for macros
- debugging of scan line overflow
- confuse code/data in listing
- show memory locations hovering over lines
- don't play sound when debugging
- coalesce compile events
- don't check against ROM signatures
- better errors when ROM format wrong
- debugging inside of bank switching??? relocated segs?
@ -17,12 +15,14 @@ TODO:
- show other TIA internal values
- case sensisitvity looking for mismatch variables
- remove pulldown when no preset?
- some units test maybe
- can't step after reset (or when funky frame; TIA frame is out of sync)
- break on BRK/illegal opcode?
- last used filename for each platform
- skeleton for each platform/tool
- skeleton for each platform/tool (check?)
- disassembler/debugger
- multiple breakpoints, expression breakpoints
- current exec. pos in gutter
- cc65: parse listing
- faster Z80 compile
- projects w/ multiple files, navigation (need refactor UI)
- nes: tools (nesst, tiled) https://shiru.untergrund.net/software.shtml

View File

@ -140,12 +140,12 @@ var wasmBlob = {};
function loadFilesystem(name) {
var xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
xhr.open("GET", "fs"+name+".data", false); // synchronous request
xhr.open("GET", "fs/fs"+name+".data", false); // synchronous request
xhr.send(null);
fsBlob[name] = xhr.response;
xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.open("GET", "fs"+name+".js.metadata", false); // synchronous request
xhr.open("GET", "fs/fs"+name+".js.metadata", false); // synchronous request
xhr.send(null);
fsMeta[name] = xhr.response;
console.log("Loaded "+name+" filesystem", fsMeta[name].files.length, 'files', fsBlob[name].size, 'bytes');
@ -154,7 +154,7 @@ function loadFilesystem(name) {
var loaded = {}
function load(modulename, debug) {
if (!loaded[modulename]) {
importScripts(modulename+(debug?"."+debug+".js":".js"));
importScripts('asmjs/'+modulename+(debug?"."+debug+".js":".js"));
loaded[modulename] = 1;
}
}
@ -178,7 +178,7 @@ function loadNative(modulename, debug) {
// detect WASM
if (typeof WebAssembly === 'object') {
loadWASM(modulename);
return wasmBlob['sdcc'];
return wasmBlob[modulename];
} else {
load(modulename);
}
@ -1320,7 +1320,7 @@ function compileInlineASM(code, platform, options, errors, asmlines) {
function compileVerilator(code, platform, options) {
loadNative("verilator_bin");
load("verilator2js");
load("../verilator2js");
var errors = [];
var asmlines = [];
code = compileInlineASM(code, platform, options, errors, asmlines);