Giter Club home page Giter Club logo

ases's Introduction

Ases

Ases is an esoteric programming language developed with the objective of be more useful as possible. You can see examples of code clicking here.

To install, just run:

$ make
$ sudo make install

For see help about usage, run:

$ ases -h

Documentation

The documentation is generated with Doxygen. For see it online, click here.

Characteristics

  • 12 registers A, B, C .. L with the size of 2 bytes.
  • Data Pointer of 2 bytes to point the data memory location.
  • Stack of 2 bytes for work with instructions and functions.
  • Any characters that is not a instruction is ignored.

Instructions

Command Description
a .. l Stores the value of the stack to correspondent register
A .. L Gets the value of the correspondent register and stores in the stack
p Stores the value of the stack in the Data Pointer
P Gets the value of the Data Pointer and stores in the stack
$ Stores the address of the next instruction in L register
* Jumps for the instruction pointed by the value of L register
( Jumps for the address of the symbol @ matched in the right
) Jumps for the address of the symbol @ matched in the left
@ Does nothing
! Stores the value of the stack in the data memory location pointed by Data Pointer
= Gets the value in the data memory location pointed by Data Pointer and stores in the stack
> Increments the value of Data Pointer
< Decrements the value of Data Pointer
+ Increments the value of the stack
- Decrements the value of the stack
. Clears the value of the stack
? Only executes the next instruction if the value of the stack is zero
~ Only executes the next instruction if the value of the stack not is zero
# Commentary of one line

Functions

Function Description
0 Gets input of one character and stores in the stack
1 Prints a character stored in the stack
2 Prints the message "ERROR!" and stops the program (exit status = 255)
3 Exits the program with the status code defined by the value of the stack
4 Adds the value of the A register with the value of the stack
5 Subtracts the value of the A register with the value of the stack
6 Adds 10 to the stack
7 Subtracts 10 of the stack
8 Prints the state of the machine
9 If A > B, sets stack to zero. One otherwise

ases's People

Contributors

silva97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.