Ases

From Esolang
Jump to: navigation, search
Ases
Paradigm(s) imperative
Designed by Luiz Felipe
Appeared in 2017
Computational class Unknown
Major implementations GitHub
Influenced by Assembly, brainfuck
File extension(s) .ases


Ases (Assembly esotérico, or in english esoteric Assembly) is an esoteric programming language developed by a brazilian called Luiz Felipe. The objective of the esolang is be more functional as possible in order to possible develop more complex algorithms but with limitations for turn it into a challenge.

Some characteristics of the language (like registers and stack) is based on the Assembly language of the x86 architecture.

Interpreter

The interpreter of the esolang was developed in C language. The source code is distributed under the MIT license and can be found in the GitHub repository of the language.

Characteristics

One line commentaries in Ases is defined with the ; (semicolon) character. Any characters that is not an instruction is ignored.

The Ases have a memory with the size of 256 bytes and a limited maximum size code of 256 bytes. This limit is because the pointers have the size of 1 byte. Thus it is possible to only point to 256 different bytes in memory.

All instructions in Ases have just one character of length.

Examples

The Hello World in Ases

+++++ +++++ c ; C = 10
---         b ; B = 7

@
	C4     ; A += C
	D++++d ; D += 4
B-b%)      ; Repeat B times

D++++d     ; D += 4

; A = C * B
; D = 32

.++ 4   ; A += 2

.+++++! ; Memory[0] = 5

A1            ; "H"
=44444-4   A1 ; "e"
=4---4     A1 ; "l"
            1 ; "l"
.+++ 4 A>!< 1 ; "o" - Memory[1] = 'o'
           D1 ; " "
=5555-5    A1 ; "W"
>=a<       A1 ; "o"
.+++ 4     A1 ; "r"
=5 .+ 5    A1 ; "l"
=5--5 A1      ; "d"