HSDPA and driver implementation

This commit is contained in:
minjaesong
2025-08-17 01:09:42 +09:00
parent e6fc6ed070
commit 1d3d3bd246
8 changed files with 886 additions and 24 deletions

View File

@@ -1388,7 +1388,7 @@ Object.freeze(unicode);
///////////////////////////////////////////////////////////////////////////////
// patch con to use VTs
con.move = function(y, x) {
/*con.move = function(y, x) {
let activeVT = _TVDOS.ACTIVE_VT || 0 // 0 is physical terminal
let vt = _TVDOS.VT_CONTEXTS[activeVT]
@@ -1400,7 +1400,7 @@ con.getyx = function() {
let vt = _TVDOS.VT_CONTEXTS[activeVT]
return vt.getCursorYX()
};
};*/
///////////////////////////////////////////////////////////////////////////////
@@ -1516,6 +1516,16 @@ var execApp = (cmdsrc, args, appname) => {
///////////////////////////////////////////////////////////////////////////////
// Load HSDPA driver
try {
let hsdpadrvFile = files.open("A:/tvdos/HSDPADRV.SYS")
if (hsdpadrvFile.exists) {
eval(hsdpadrvFile.sread())
}
} catch (e) {
serial.println("Warning: Could not load HSDPA driver: " + e.message)
}
// Boot script
serial.println(`TVDOS.SYS initialised on VM ${sys.getVmId()}, running boot script...`);