mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
17 lines
389 B
Plaintext
17 lines
389 B
Plaintext
let p=_BIOS.FIRST_BOOTABLE_PORT;
|
|
com.sendMessage(p[0],"DEVRST\x17");
|
|
com.sendMessage(p[0],'OPENR"DESKTOP",'+p[1]);
|
|
let r=com.getStatusCode(p[0]);
|
|
if(0==r)
|
|
if(com.sendMessage(p[0],"READ"),r=com.getStatusCode(p[0]),0==r){
|
|
let g=com.pullMessage(p[0]);
|
|
eval(g)
|
|
}
|
|
else
|
|
println("I/O Error");
|
|
else {
|
|
println("DESKTOP not found");
|
|
}
|
|
|
|
println("CPU halted");
|