“you thought you did something there, didn’t you?”

  • 0 Posts
  • 99 Comments
Joined 9 months ago
cake
Cake day: September 25th, 2023

help-circle







  • You’re remembering correctly, every other logic gate can be built from NAND gates, which is the foundation of this sort of minimal-instruction-set exercise. Beyond that, you need to be able to move data and change your program counter (jump, often conditionally). Then, if you want parity with modern instruction sets beyond just being turning complete, you need return and interrupt for control flow.



  • Bookmarking your comment so I can come back to it in a couple hours, if I hopefully remember to.

    But yes, almost. I don’t think the interrupt is necessary and the return isn’t under certain architectures. I have a doc on my computer somewhere where I was investigating what the absolute minimum was to make a turning complete machine and, to my recollection, there was only 4-6 instructions that were absolutely necessary. The ones I remember off the top of my head are NAND, MOV, JUMPIF, and then I believe I included NOP in accordance with some principle. RET and INT were convenience features in this design.









  • If it wasn’t obvious that the Debian box is a parody, here’s what the Japanese Chinese text along the top reads on each box:

    Please read the instructions carefully and use it under the guidance of a physician. It is strictly prohibited to be used in food and feed processing.

    Please read the installation instructions carefully and use it under the guidance of the administrator. It is strictly prohibited to use for server installation.

    so yes, the title is correct-- this is not a coincidence, the Debian box was made explicitly for this joke

    edit: thanks for the correction folks, honestly thought it looked more like Japanese than Chinese at first glance and I am obviously not an expert in either. Appreciate the call-out, very deserved.