Adj

From Esolang
Jump to navigation Jump to search

Adj (a is ADd a to b, then Jump to c) aka a=a+b; goto c

command = ADJ a b c

label = x:

add only = ADJ a b X

jump only = ADJ X X c

output = ADJ 0 b c or ADJ 0 b X

input = ADJ 1 b c or ADJ 1 b X

Examples

Add 1 and 1

ADJ a 1 X
ADJ b 1 X
ADJ a b X
ADJ 0 a X

Add in1 and in2

ADJ 1 a X
ADJ 1 b X
ADJ a b X
ADJ 0 a X

Jump to line

ADJ 1 a X
ADJ X X a