4 ms·
To be fair. I'm impressed it's able to do it at all. I compiled a "hello world" in C staticly on my laptop the other week as a demo of how things have grown; t
by dijit 9y ago
To be fair. I'm impressed it's able to do it at all.
I compiled a "hello world" in C staticly on my laptop the other week as a demo of how things have grown; to my horror it wouldn't have even fit in memory of my first computer.
- nicklaf 9y agoSome people still care! Chuck Moore's colorForth has this inplementation of an IDE driver in just five lines of code: bsy 1f7 p@ 80 and if bsy ; then ; rdy 1f7 p@ 8 and if 1f0 a! 256 ; then rdy ; sector 1f3 a! swap p!+ /8 p!+ /8 p!+ /8 e0 or p!+ drop p!+ drop 4 * ; read 20 sector 256 for rdy insw next drop ; write bsy 30 sector 25 6 for rdy outsw next drop ; comments p@ read 8-bit port p!+ write 8-bit port, increment port insw read n words from port outsw write n words to port /8 shift right 8 bits bsy wait till busy bit clear rdy wait till data-ready bit set sector set logical sector and command read read 256 sectors write write 256 sectors https://web.archive.org/web/20160304043631/http://www.colorforth.com/ide.html https://web.archive.org/web/20160304043631/http://www.colorf...
- arthurcolle 9y agosame environment other than memory constraints? ... I'd think this wouldn't even work at all
- userbinator 9y agoSHA256 doesn't require all that much storage nor code --- a few KB at most for a simple, not very fast implementation.
- kens 9y agoWell, I got SHA-256 running on a 1960s punched card machine with 16K of memory so the hardware requirements aren't too much. http://www.righto.com/2015/05/bitcoin-mining-on-55-year-old-ibm-1401.html http://www.righto.com/2015/05/bitcoin-mining-on-55-year-old-...