Making a CPU in snap: need instruction ideas

It sounds complicated, but it's simpler than it sounds. I just need instruction ideas for my Snap! CPU. (For those of you who don't know, CPU instructions are just very basic commands that the CPU, the "brain" of your computer, can understand.)

I have 76 spaces for unique instructions, and most of the "basic" instructions, so get creative.

How does the architecture work?

What do you mean by that?


Sorry. I was in chemistry class. I meant

I haven't decided on the clock speed, so it will just be how fast Snap! can run it. It will have a small instruction set, just 1-byte for the actual instruction part. It has 8 registers, 2 of which are the PC, I haven't thought about the stack yet.

Okay. How about a JZERO instruction? I'd suggest 0xf0 for the opcode, and have it expect 2 bytes as the address to jump to if the "A" register equals zero. I'd also suggest 0xea as NOP, which takes two cycles to run.

you should write a program that can run real linux inside snap

Oh, yeah! RISC-5 exists!


Snubuntu or Snac? Or Snindows?