Posts

Showing posts from March, 2024

V P U

Image
Just thinking about a hypothetical "VPU", or Voxel Processing Unit. It would only require 16 instructions: NOT - bitwise NOT of register.  OR - bitwise OR of register.  AND - bitwise AND of register.  ADD - register addition with register.  SUB - register subtraction with register.  MUL - register multiplied with register. RS11 - right shift register 11 bits.  RS13 - right shift register 13 bits.  RS8 - right shift register 8 bits.  ZSUB - zero subtracted from register.  AND255 - register AND 255. 256SUB - 256 subtracted from register.  ADD256 - 256 added to register.  SUB256 - register subtracted 256. JELZ - jump if equal or less than zero.  JEGZ - jump if equal or greater than zero.  A total of 23 variables are used in calculations so they could be loaded into a 32 general register system at the start with a final pixel colour returned.  Alternatively a RISC-V approach can be taken. First registers are constants: register0 = 0 register1 = 256 register2 = 255 register3 = 8 r