Difference between revisions of "User:Derrickthewhite"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
woooooow | woooooow | ||
</pre> | </pre> | ||
+ | |||
+ | <pre><nowiki> | ||
+ | // MASTER CONTROL PROGRAM | ||
+ | |||
+ | GNDT = `__GNDT` | ||
+ | MCPOutput = "" | ||
+ | |||
+ | if (GNDT == "__" + "GNDT") { | ||
+ | printLine("Illegal execution? A GNDT dump must be provided."); | ||
+ | } else { | ||
+ | GNDTLines = GNDT.split("\n") | ||
+ | |||
+ | GNDTLines.forEach(function(entry) { | ||
+ | GNDTFields = entry.split("\t") | ||
+ | programName = GNDTFields[0] | ||
+ | programInput = GNDTFields[1] | ||
+ | programOutput = GNDTFields[2] | ||
+ | |||
+ | if (programName == "card") { | ||
+ | return 0 | ||
+ | } | ||
+ | |||
+ | inputRegister = programInput.charCodeAt(0) + programInput.charCodeAt(1) | ||
+ | outputRegister = programOutput.charCodeAt(0) + programOutput.charCodeAt(1) | ||
+ | |||
+ | if (inputRegister < outputRegister) { | ||
+ | printLine(programName + " check OK") | ||
+ | } else { | ||
+ | printLine(programName + " register disparity") | ||
+ | } | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | function printLine(message) { | ||
+ | MCPOutput += "[" + message + "]<"+"br"+">" | ||
+ | } | ||
+ | </nowiki></pre> |
Revision as of 16:12, 2 October 2018
My Dynasties: [None recoreded, but they exist]
Wiki Experiments:
woooooow oooooooo oooooooo oooxxooo oooxxooo oooooooo oooooooo woooooow
// MASTER CONTROL PROGRAM GNDT = `__GNDT` MCPOutput = "" if (GNDT == "__" + "GNDT") { printLine("Illegal execution? A GNDT dump must be provided."); } else { GNDTLines = GNDT.split("\n") GNDTLines.forEach(function(entry) { GNDTFields = entry.split("\t") programName = GNDTFields[0] programInput = GNDTFields[1] programOutput = GNDTFields[2] if (programName == "card") { return 0 } inputRegister = programInput.charCodeAt(0) + programInput.charCodeAt(1) outputRegister = programOutput.charCodeAt(0) + programOutput.charCodeAt(1) if (inputRegister < outputRegister) { printLine(programName + " check OK") } else { printLine(programName + " register disparity") } }); } function printLine(message) { MCPOutput += "[" + message + "]<"+"br"+">" }