EntropyAssembler

From Esolang
Jump to: navigation, search

EntropyAssembler, is an esoteric programming language with syntax like assembler, but datas in registers decays while programm runs(like in Entropy).

Examples

Hello, world!

SET 0 72 
OUT 0 
SET 0 0 
SET 0 101 
OUT 0 
SET 0 0 
SET 0 108 
OUT 0 
OUT 0 
SET 0 0 
SET 0 111 
OUT 0 
SET 0 0 
SET 0 44 
OUT 0 
SET 0 0 
SET 0 32 
OUT 0 
SET 0 0 
SET 0 87 
OUT 0 
SET 0 0 
SET 0 111 
OUT 0 
SET 0 0 
SET 0 114 
OUT 0 
SET 0 0 
SET 0 108 
OUT 0 
SET 0 0 
SET 0 100 
OUT 0 
SET 0 0 
SET 0 33 
OUT 0

Maybe it's output "Hello, world!", maybe "Hfllo, Xorld!", maybe "Hemmo- World!", maybe "Fello- World".

Docs

Name Params Desc
INC A increment register A
DEC A decrement register A
ADD A B A += B
SUB A B A -= B
MUL A B A *= B
DIV A B A /= B
MOD A B A %= B
MOV A B A = B
SET A value B A = value B
OUT A Outputs A as char
PUT A Outputs A as int
LABEL A Creates label A
GOTO A Gotos to label A
IN A Input char and puts his ASCII into register A
IFEQ A B yes no If A equals B goto to label yes, else goto label no
IFZERO A yes no If A equals 0 goto to label yes, else goto label no
IFLT A B yes no If A less than B goto to label yes, else goto label no
TEST A yes no If A true goto to label yes, else goto label no

External resources