Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Hard Drive Access #125

Open
RossComputerGuy opened this issue Jul 9, 2016 · 8 comments
Open

Hard Drive Access #125

RossComputerGuy opened this issue Jul 9, 2016 · 8 comments

Comments

@RossComputerGuy
Copy link

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
Copy link

piranna commented Jul 9, 2016

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
#125, or mute the thread
https://github.com/notifications/unsubscribe/AAgfvtxPvz-wHvYxExCk_M3FDo9NhQnRks5qT8JzgaJpZM4JIpG8
.

@RossComputerGuy
Copy link
Author

522 == head size

@RossComputerGuy
Copy link
Author

Check out the wiki

@RossComputerGuy
Copy link
Author

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

@RossComputerGuy
Copy link
Author

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

@RossComputerGuy
Copy link
Author

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

@RossComputerGuy
Copy link
Author

@piranna pull the new update.

@piranna
Copy link

piranna commented Jul 10, 2016

@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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants