Wiredwalls
Jump to navigation
Jump to search
Wiredwalls is an esolang made by user:A().
Commands
Command | Instruction |
---|---|
* | Turns wire on |
i | Input |
- | Wire |
Wire | |
^ | Branch up |
v | Branch down |
> | Branch Right |
< | Branch Left |
[!] | Negate wire |
+ | Cross Wire |
[<&] | If two wires are on then output on to the left wire |
[&>] | If two wires are on then output on to the right wire |
E | End the wire |
Programs
Or gate
i--v >-E i--^
Xor
i--v--[&>]--[!]--v | | | | ^ >--E iv--+--[!] | | | >-^ v >[!][&>]----^ >-------^
Half Adder
iv---v--[&>]--[!]--v | | | | v----< | ^ >--E |iv---v--+--[!] | | | | | >-^ | | v >[!][&>]----^ | | >-------^ | >--[&>]--E | | | | >-----^
Full adder
iv---v--[&>]--[!]--v | | | | v----< | ^ >---v--[&>]--[!]-----v |iv---v--+--[!] | | | | >--E | | | | >-^ | | | | | | v >[!][&>]----^ v-< | | | | | >-------^ | | | | | >--[&>]----- | | | | | | | | | | | | | | | | >-----^ | | | | i------------------v-----+v---+-[!]^ | | || | >-----^ | v-<| >[!][&>]^ | | >--------^ | | | >-- >------