runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 127 forks source link

Hard Drive Access #125

Open RossComputerGuy opened 8 years ago

RossComputerGuy commented 8 years ago

I found how to access the hard drive. Check out the io port http://wiki.osdev.org/I/O_Ports

var driverUtils = require("/node_modules/runtimejs/js/core/driver-utils");
var ioPort = driverUtils.ioPort(0x01F0);
console.log(ioPort.read8(0)); // returns 255
console.log(ioPort.read16(0)); // returns 0
console.log(ioPort.read32(0)); // returns 0

I'm going to make a package for runtime called runtime-hard-drive.

piranna commented 8 years ago

Awesome :-) El 9/7/2016 5:47 PM, "SpaceboyRoss01" notifications@github.com escribió:

I found how to access the hard drive. Check out the io port http://wiki.osdev.org/I/O_Ports

var driverUtils = require("/node_modules/runtimejs/js/core/driver-utils");var ioPort = driverUtils.ioPort(0x01F0);console.log(ioPort.read8(0)); // returns 255console.log(ioPort.read16(0)); // returns 0console.log(ioPort.read32(0)); // returns 0

I'm going to make a package for runtime called runtime-hard-drive.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/runtimejs/runtime/issues/125, or mute the thread https://github.com/notifications/unsubscribe/AAgfvtxPvz-wHvYxExCk_M3FDo9NhQnRks5qT8JzgaJpZM4JIpG8 .

RossComputerGuy commented 8 years ago

522 == head size

RossComputerGuy commented 8 years ago

Check out the wiki

RossComputerGuy commented 8 years ago

@piranna can you please try to write the code I need so I can run sata/ata commands?

RossComputerGuy commented 8 years ago

I did some changes, this is what it returns: 502 0497 0500 45501 27503 160496 60496 60496 60496 60496 60496 60496 2364294967295

RossComputerGuy commented 8 years ago

@piranna I got an idea, no graphics.. ...but web desktop instead? Great idea, isn't it. (Installer is terminal graphics)

RossComputerGuy commented 8 years ago

@piranna pull the new update.

piranna commented 8 years ago

@piranna I got an idea, no graphics.. ...but web desktop instead? Great idea, isn't it. (Installer is terminal graphics)

That's just what NodeOS wants to achieve...