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
Not to be confused with NOR Machine.

This is a computation model / esolang created by islptng. It has a queue and operates on integers.

Commands

Instruction Meaning
I rot Dequeue one value and enqueue it back
A dup Dequeue one value and enqueue it back twice
X swp Dequeue A and B, enqueue B and A
V nor Dequeue two values, bitwise NOR, enqueue the result
L shl Dequeue one value, bitwise shift left by one, enqueue the result
R shr Dequeue one value, bitwise shift right by one, enqueue the result

I/O

Input some numbers and they'll be enqueued.
Performing NOR with only one value in the queue will cause it to be printed and halt.
The program will loop forever otherwise.