dos kernel wip

This commit is contained in:
minjaesong
2020-10-29 11:52:31 +09:00
parent 5167bf1034
commit 219bc641cf
10 changed files with 105 additions and 79 deletions

View File

@@ -1,6 +1,10 @@
println("TERRAN Megatrends inc.");
//println("Main RAM:"+(system.maxmem() >> 10)+" KBytes");
///////////////////////////////////////////////////////////////////////////////
// Perform memtest
let memptr = 0;
const memtestptn = [
// Overclockers will LOVE this!
@@ -62,4 +66,20 @@ catch (e) {
}
}
///////////////////////////////////////////////////////////////////////////////
// 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);
///////////////////////////////////////////////////////////////////////////////
con.move(4,1);