Hexssembly

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.

Hexssembly is an esolang designed by User:Infinitehexagon to mimic assembly language.

Instructions Description
JUMP a b Jump to label b when argument a is equal to label b.
NEW b Create new label b.
END b End label b.
INC b Increment the acumulator by b in hexadecimal.
OUT Output the accumulator
INP b Input a hexadecimal value to the accumulator.
DEC b Decrement the acumulator by b in hexadecimal.
SEV a b Set variable a to argument b.
DIS b Display variable b.
ADD a b Add hexadecimal b to variable a.
SUB a b Subtract hexadecimal b to variable a.

Program Examples

Hello World Program

INC 48   |h|
OUT
INC 001D   |e|
OUT
INC 0007   |l|
OUT
OUT
INC 0003   |o|
OUT
DEC 002B   |\44|
OUT
DEC 000B   |\32|
OUT
INC 004C   |W|
OUT
INC 0018   |o|
OUT
INC 0003   |r|
OUT
DEC 0006   |l|
OUT
DEC 0008   |d|
OUT
DEC 004F   |!|
OUT