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,36 +1 @@
function getStatusMessage(portNo) {
return com.sendMessageGetBytes(portNo, "DEVSTU"+String.fromCharCode(0x17));
}
let ba = com.sendMessageGetBytes(0, "DEVNAM"+String.fromCharCode(0x17));
serial.println(ba);
ba = com.pullMessage(0)
serial.print(ba);
serial.println("# END OF MSG");
ba = com.sendMessageGetBytes(1, "DEVNAM"+String.fromCharCode(0x17));
serial.println(ba);
serial.println(getStatusMessage(1));
ba = com.sendMessageGetBytes(1, "LIST");
ba = com.pullMessage(1);
println(ba);
serial.println(getStatusMessage(1));
com.sendMessage(1, "OPENR\"fsh.js\"");
println("Status code: "+com.getStatusCode(1));
com.sendMessage(1, "READ");
println("Status code: "+com.getStatusCode(1));
let source = com.pullMessage(1);
println(source);
eval(source);
serial.println("k bye")
println("Hello, world!");