basic:SAVE function, filesystem:write

This commit is contained in:
minjaesong
2020-11-14 11:56:05 +09:00
parent c3cc6f4d1a
commit 5c73205d44
8 changed files with 375 additions and 242 deletions

21
assets/bios/basicbios.js Normal file
View File

@@ -0,0 +1,21 @@
println("Main RAM:"+(system.maxmem() >> 10)+" KBytes");
///////////////////////////////////////////////////////////////////////////////
// probe bootable device
var _BIOS = {};
// Syntax: [Port, Drive-number]
// Port #0-3: Serial port 1-4
// #4+ : Left for future extension
// Drive-number always starts at 1
_BIOS.FIRST_BOOTABLE_PORT = [0,1]; // ah screw it
Object.freeze(_BIOS);
///////////////////////////////////////////////////////////////////////////////
// load a BASIC rom
sys.mapRom(1);
eval("let _appStub=function(exec_args){"+sys.romReadAll()+"};_appStub;")();