6673846771

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

6673846771 is an esoteric programming language created by User:Xi-816

Description

6673846771 uses memory cells to store data. Buf unlike Brainfuck, it stores it with a changable address.

Commands

Command Description
push ac, b Sets the cell a to value b
add ac, bc, cc Add cells a and b, and store to cell c
sub ac, bc, cc Subtract cells a and b, and store to cell c
mul ac, bc, cc Multiply cells a and b, and store to cell c
div ac, bc, cc Divide cells a and b, and store to cell c
:label: Creates a label
jmp ac, label Jump to label if cell a is not 0
snd ac, d Send value from cell a to output structure d
mvp d, 1 Moves the structure d pointer (out do it automatically)
cll d Call the structure d
swp ac, bc Swaps the values in cells a and b
cpy ac, bc Copies the value from cell a to cell b
$Comment Comment

Programs

Hello World!

push 0c, 72
push 1c, 101
push 2c, 108
push 3c, 111
push 4c, 32
push 5c, 87
push 6c, 114
push 7c, 100
push 8c, 33

snd out, 0c
snd out, 1c
snd out, 2c
snd out, 2c
snd out, 3c
snd out, 4c
snd out, 5c
snd out, 3c
snd out, 6c
snd out, 2c
snd out, 7c
snd out, 8c

cll out

Hello World! (With math operations)

push 0c, 72
push 1c, 101

snd out, 0c
snd out, 1c
add 1c, 7, 1c
snd out, 1c
add 1c, 3, 1c
snd out, 1c
snd out, 1c

push 2c, 32
snd out, 2c
add 2c, 1, 2c
add 0c, 15, 0c
snd out, 0c
snd out, 1c
add 1c, 3, 1c
snd out, 1c
sub 1c, 6, 1c
snd out, 1c
sub 1c, 8, 1c
snd out, 1c
snd out, 2c

cll out

Truth-machine

push 0c, 49
push 9999c, 1
cll in

:loop:
add 1c, 48, 1c
snd out, 1c
cll out

sub 1c, 48, 1c
jmp 1c, loop