mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-10 16:29:48 +00:00
reorg asm.js and fs directories
This commit is contained in:
parent
2f6f426ecc
commit
3bf39dbde5
@ -1,13 +1,11 @@
|
|||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
- download ROM file
|
|
||||||
- NaN in cycle count for macros
|
- NaN in cycle count for macros
|
||||||
- debugging of scan line overflow
|
- debugging of scan line overflow
|
||||||
- confuse code/data in listing
|
- confuse code/data in listing
|
||||||
- show memory locations hovering over lines
|
- show memory locations hovering over lines
|
||||||
- don't play sound when debugging
|
- don't play sound when debugging
|
||||||
- coalesce compile events
|
|
||||||
- don't check against ROM signatures
|
- don't check against ROM signatures
|
||||||
- better errors when ROM format wrong
|
- better errors when ROM format wrong
|
||||||
- debugging inside of bank switching??? relocated segs?
|
- debugging inside of bank switching??? relocated segs?
|
||||||
@ -17,12 +15,14 @@ TODO:
|
|||||||
- show other TIA internal values
|
- show other TIA internal values
|
||||||
- case sensisitvity looking for mismatch variables
|
- case sensisitvity looking for mismatch variables
|
||||||
- remove pulldown when no preset?
|
- remove pulldown when no preset?
|
||||||
- some units test maybe
|
|
||||||
- can't step after reset (or when funky frame; TIA frame is out of sync)
|
- can't step after reset (or when funky frame; TIA frame is out of sync)
|
||||||
- break on BRK/illegal opcode?
|
- break on BRK/illegal opcode?
|
||||||
- last used filename for each platform
|
- skeleton for each platform/tool (check?)
|
||||||
- skeleton for each platform/tool
|
|
||||||
- disassembler/debugger
|
- disassembler/debugger
|
||||||
- multiple breakpoints, expression breakpoints
|
- 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
|
||||||
|
|
||||||
|
@ -140,12 +140,12 @@ var wasmBlob = {};
|
|||||||
function loadFilesystem(name) {
|
function loadFilesystem(name) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.responseType = 'blob';
|
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);
|
xhr.send(null);
|
||||||
fsBlob[name] = xhr.response;
|
fsBlob[name] = xhr.response;
|
||||||
xhr = new XMLHttpRequest();
|
xhr = new XMLHttpRequest();
|
||||||
xhr.responseType = 'json';
|
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);
|
xhr.send(null);
|
||||||
fsMeta[name] = xhr.response;
|
fsMeta[name] = xhr.response;
|
||||||
console.log("Loaded "+name+" filesystem", fsMeta[name].files.length, 'files', fsBlob[name].size, 'bytes');
|
console.log("Loaded "+name+" filesystem", fsMeta[name].files.length, 'files', fsBlob[name].size, 'bytes');
|
||||||
@ -154,7 +154,7 @@ function loadFilesystem(name) {
|
|||||||
var loaded = {}
|
var loaded = {}
|
||||||
function load(modulename, debug) {
|
function load(modulename, debug) {
|
||||||
if (!loaded[modulename]) {
|
if (!loaded[modulename]) {
|
||||||
importScripts(modulename+(debug?"."+debug+".js":".js"));
|
importScripts('asmjs/'+modulename+(debug?"."+debug+".js":".js"));
|
||||||
loaded[modulename] = 1;
|
loaded[modulename] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ function loadNative(modulename, debug) {
|
|||||||
// detect WASM
|
// detect WASM
|
||||||
if (typeof WebAssembly === 'object') {
|
if (typeof WebAssembly === 'object') {
|
||||||
loadWASM(modulename);
|
loadWASM(modulename);
|
||||||
return wasmBlob['sdcc'];
|
return wasmBlob[modulename];
|
||||||
} else {
|
} else {
|
||||||
load(modulename);
|
load(modulename);
|
||||||
}
|
}
|
||||||
@ -1320,7 +1320,7 @@ function compileInlineASM(code, platform, options, errors, asmlines) {
|
|||||||
|
|
||||||
function compileVerilator(code, platform, options) {
|
function compileVerilator(code, platform, options) {
|
||||||
loadNative("verilator_bin");
|
loadNative("verilator_bin");
|
||||||
load("verilator2js");
|
load("../verilator2js");
|
||||||
var errors = [];
|
var errors = [];
|
||||||
var asmlines = [];
|
var asmlines = [];
|
||||||
code = compileInlineASM(code, platform, options, errors, asmlines);
|
code = compileInlineASM(code, platform, options, errors, asmlines);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user