We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
3ME
Jump to navigation
Jump to search
3ME is an attempt to emulate Sorry, Marvin! in one instruction by Unname4798.
Implementation
var reg = [0,0,0,0];
var progp = 0;
var regp = 0;
var MMME = function (prog) {
while (true) {
if (prog[progp] >= 0) {
regp = regp + 1 % reg.length;
reg[regp] += prog[progp];
progp++;
} else {
if (reg[regp] > 0) {
reg[regp]--;
progp++;
} else {
progp = progp + abs(prog[progp]) % prog.length;
}
}
return reg;
}
}