axtionscript v1.0.9
discord-easy-slash
A small compiled language that allowed you to write programs for a custom cpu my friend made.
Contact me for help, because I will respond. amukh1#9613
Prerequisites
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
BEFORE YOU INSTALL: please read the prerequisites
To install and set up the library, run:
$ npm install axtionscript
Or if you prefer using Yarn:
$ yarn add --dev axtionscript
Usage
Axtionscript takes 2 file extentions, .axs and .axm.
AXS is the language.. (AXTIONSCRIPT) and putting in an axs file compiles it to an axm file.
$ axtionscript ./file.axs
ASM is the ASSEMBLY language, which compiles to bytecode.
$ axtionscript ./file.axm
Example program:
/null/
/nullset/
/Noop/
/Jump <IMMD\RESULT>/
/If <CONDITION\0-7> <IMMD\RESULT>/
/# Ports are 0-(x-1)/
/Input <REG\DEST.> <PORT>/
/Output <REG\SOURCE> <PORT>/
/Load <REG\DEST.> <IMMD|SOURCE>/
/Save <IMMD\RAM_NUMBER> <REG\DEST.>/
/Fetch <REG\DEST.> <IMMD\RAM_NUMBER>/
/ALU A <REG\SOURCE>/
/ALU B <REG\SOURCE>/
/ALU INV <A\B>/
/Add <REG\DEST.>/
/BIT <REG\DEST.> <CONDITION\0-3> <REG\A> <REG\B>/
/BTN <REG\DEST.> <CONDITION\0-3> <REG\A> <REG\B>/
/# Or Return/
/End/
/# Comment/