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.

NOR Machine

From Esolang
Jump to navigation Jump to search

NOR Machine is an esolang made by Unname4798.

Command

Two commands only:

[number] push [number]th bit of user input into the stack
n pop two top bits, push NOR of two top bits

After all instructions have been done, output all bits from top to bottom from the stack to the console.

Examples

NOR gate:

0 1 n

NOT gate:

0 0 n

OR gate:

0 1 n 0 1 n n

AND gate:

0 0 n 1 1 n n