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

According to the original '98 specification , Ben Olmstead Malbolge VM fills empty memory cells with the crazy op in the previous two cells. "Cells that are not initialized are set by re-executing op in the previous two cells." I.e.

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

For the sake of sanity, what if the program contains only 1 instruction?

Or should I assume that the last character is always EOF?

+4
source share
1 answer

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

  • " ", , - char malbolge , .

  • [m] = crz [m-2], [m-1], . ( , , ) unsigned short ( int) . 2 1 (m-2), 0xffff, decimal 65535 ( . ), mbolge 59049. , 0xffff ( !), fail .

    • 0xffffffff 0xffff 0xffffffff, , .

,

  • , , .
  • , .
  • , , , , , 0xffff - , . , malbolge?
+1

Source: https://habr.com/ru/post/1539628/


All Articles