You are browsing as a guest. Sign up (or log in) to start making projects!

38m 12s logged

More arithmetics

I have been kind of stupid, thinking only add and sub will be enough. So I added all arithmetic and bitwise operation instructions needed and even more to make things easier.

I added (all except for ‘not’ also have a dynamic version through registers):

  • Mul
  • Div
  • And
  • Or
  • Xor
  • Not
  • ShR (Shift Right)
  • ShL (Shift Left)
  • SAR (Shift Arithmetic Right)

Further changes

I also updated the docs. Of course about the instructions, but also about the registers. Last time I added stack functionality, so I added the SP in the docs and removed the part that said the stack wasn’t included.

The screenshot below is simply the code for the new instructions in the CPU loop

0
7

Comments 0

No comments yet. Be the first!