esolang

Assemblei

Eight bits and a printer. Reading the binary is your job.

Oklomsy, 2020 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: 01101000 01100101

The idea

Oklomsy made Assemblei in 2020. It has eight cells named a to h, each one binary digit, and a pointer that starts on an empty place just before a. A program sets cells to 1 and prints all eight as a line of digits. That line is the code of a letter, but the interpreter never turns it into one. The specification gives the reason in two words, "Because Python."

Read the story

So the Hello World prints twelve lines of eight digits, and the reader decodes hello world!.

The machine

CommandDoes
! ?Move forward or back a cell
+Raise the cell by 1
#Print all eight cells as one line
.Print the name of the current cell
,Set every cell to 0

The specification leaves a few things open. In this implementation , also sends the pointer back to the empty place, which the Hello World needs. + keeps counting past 1, and moving past h is an error.

Example

The first two letters of the Hello World.

The first two letters of the Hello World. !!+ sets b, !+ sets c and !!+ sets e, which is 01101000, an h.

Expected: 00000000
Expected: a

Patterns it teaches

Further

Also in Jokes

Write your own in Run Convert a program from Assemblei

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: assemblei.

Command line

shib run assemblei -e '#'
shib manual assemblei

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/assemblei.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org