making bootloader to load the dos kernel to run a shell

This commit is contained in:
minjaesong
2020-10-30 23:34:31 +09:00
parent d8f7bb3973
commit 21dd2ead8f
9 changed files with 46 additions and 22 deletions

17
assets/bootsec_source.js Normal file
View File

@@ -0,0 +1,17 @@
// load TVDOS.SYS
let p = _BIOS.FIRST_BOOTABLE_PORT;
com.sendMessage(p[0], 'OPENR"tvdos/TVDOS.SYS",'+p[1]);
let r = com.getStatusCode(p[0]);
if (r == 0){
com.sendMessage(p[0], "READ");
r = com.getStatusCode([0]);
if (r == 0) {
let g=com.pullMessage(p[0]);
eval(g);
0;
}
else
println("I/O Error");
}
else
println("TVDOS.SYS not found");