virtual-machineesoteric-languagesmalbolge

What should be memory filled with if my malbolge program contains only 1 instruction?


According to the original specification '98, Ben Olmstead Malbolge VM fill empty memory cells using crazy op on two previous cells. "Cells which are not initialized are set by performing op on the previous two cells repetitively." I.e.

[m] = crz [m-2], [m-1]

For the sake of sanity what should I do if the program contains only 1 instruction?

Or should I assume the last character always to be EOF?


Solution

  • Judging by the implementation and language-lawyering, there are two options -

    In short,