MightyPirates / TIS-3D

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

Timer module to allow waiting for a specifiable amount of time #60

Closed fnuecke closed 7 years ago

fnuecke commented 7 years ago

Reads values from all sides, sets the internal timer to the specified value. Once the timer has reached zero, a value will be made readable on all sides. So to wait for the timer one would just try to read from it. Interrupts obviously being possible by using an execution module with MOV ANY ?.

Using milliseconds would waste a lot of precision, as the timer would be bound to ticks... so it'll probably just use ticks with some made up in-character explanation like hardware limitations.