mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 05:01:50 +09:00
moving everything neatly into the assets directory
This commit is contained in:
18
assets/src/bootsec_source.js
Normal file
18
assets/src/bootsec_source.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// load TVDOS.SYS
|
||||
let p = _BIOS.FIRST_BOOTABLE_PORT;
|
||||
com.sendMessage(p[0], "DEVRST\x17");
|
||||
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(p[0]);
|
||||
if (r == 0) {
|
||||
let g=com.pullMessage(p[0]);
|
||||
eval(g);
|
||||
0;
|
||||
}
|
||||
else
|
||||
println("I/O Error");
|
||||
}
|
||||
else
|
||||
println("TVDOS.SYS not found");
|
||||
Reference in New Issue
Block a user