MightyPirates / TIS-3D

TIS-100 inspired low-tech computing in Minecraft.
https://www.curseforge.com/minecraft/mc-mods/tis-3d
Other
109 stars 35 forks source link

Hard Drive Module [It's simple I promise] #203

Open lanc12 opened 5 months ago

lanc12 commented 5 months ago

I think a simple Hard Drive Module would allow for much more complex programming. I've come up with a simple spec for hard drives.

Each hard drive is (unfourtunately not) 5 MB, (un) like the Model 9427H Hawk drive made by Control Data Corporation.

Request header

The drive is split into 256-byte chunks.
This is the header:

+-------+---------+------+ | Chunk | Address | Data | +-------+---------+------+

Chunk [0-19] Defines the 256 byte chunk to be addressed.

Address [0-127, 0x00-0x80] Defines the address in the chunk to be addressed.

NOTE: Each data segment is 2 bytes to comply with the TIS-3D computer standard, halving the address space

Data [0x0000-0xFFFF] Defines the data to be read or written.

NOTE: Read or write operations are determined by which happens first.

patc4 commented 4 months ago

I logged just to tell you that the chunk addresses of 0-19 for addressing 256 byte chunks only lets you use 5120 bytes, in other words that is about 1/1000 of 5MB.

lanc12 commented 1 month ago

Oh... hold on.

Yeah, it's probably better that way.