News for hackers. Stuff that matters.
Re:Show HN: Q8, an In-Browser VM for Learning and Visualizin... by beefok on Monday January 09, 2017 @04:52PM (#13360153)
Cute little cpu! I like the OPR instruction, neat way of handling increment/decrement (DEC by way of NOT and INC). Are ROR and ROL also chained? That's neat too.
Re:Show HN: Q8, an In-Browser VM for Learning and Visualizin... by zenojevski on Monday January 09, 2017 @06:59PM (#13361195)
Thanks! It is derived PDP-8's own OPR instruction, which goes even further, with many carefully aligned combinations leading to clever results. A testament of ingenuity which reveals fine craftsmanship.

In reality, I've considered switching to a regular mapping, so to have 32 no-operand instructions instead, which would fit the original five operations, all sensible combinations, plus more.

But chaining operands is definitely a more extravagant thing, so I think it can be instructive in showing how creative a solution can be in face of limitations .

Re:Show HN: Q8, an In-Browser VM for Learning and Visualizin... by beefok on Wednesday January 11, 2017 @10:05AM (#13374364)
The chaining kind of reminds me of how z80's ALU works [1]. It's kind of chained in together over time.

[1] http://www.righto.com/2013/09/the-z-80-has-4-bit-alu-heres-h...