Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Releases: cpp-script-lang/sasm

Version 0.3.0

02 Jul 12:38

Choose a tag to compare

Added support for multi-word arguments, so instead of typing

load Hello
printps
load 32
printpc
load World!
printps

you can write that

load Hello World!
printps

Changed behaviour of options -v and --verbose; rather than couting logs, they are couting tabulate::Table object.
Unfortunately, I don't know why, comments aren't displayed in that tables.
And I saw that not only print* and scan* don't work on GNU/LInux (I saw that inc doesn't work too).

Version 0.2.0-alpha+merged

26 May 16:02

Choose a tag to compare

Pre-release

Merged versions 0.1.0-beta+test and 0.1.0-beta+noverbose.
Added:

  • commandline options -v and --verbose which logs AST-like information like earlier +test versions.
  • .gitattributes which colours *.sasm files as ones with .asm and .S extensions.

In version beta logs colouring will be added and new lines (maybe all logs will be buffered and couted before or after whole output). between them and programs' output for readability. Also, options -l and --log-to-file.
In beta ready binaries will be added, too.

In further future also --defaults (xor --file and -f) option(s) with default options (as JSON), default defaults file (in .sasm directory located somewhere, for now I don't know where), and shebang feature, will be added.

In much further future, there will be also package manager with packages in the .sasm dir and .import directive with .smod files (SASM Module files), so also the call instruction.

Version 0.1.0-beta+test

24 May 19:41

Choose a tag to compare

Pre-release

Corrected indentation in logs.
Added possibility of empty line.

Version 0.1.0-beta+noverbose

24 May 19:46

Choose a tag to compare

Pre-release

Logging AST-like information disabled.

Version 0.1.0-alpha+test

24 May 16:00

Choose a tag to compare

Pre-release

This version additionally prints something similar to AST (not for all instructions). Comments mustn't be at the same line as instructions.
Example

; Add 5 and 5
load 4
inc
load 5
add

will print:

Interpreting file: examples\add-5-and-5.sasm
        Interpreting line: ; Add 5 and 5 with number: 1
        Mnemonic: COMMENT
        Interpreting line: load 4 with number: 2
        Mnemonic: load
                Arg: 4
        Interpreting line: inc with number: 3
        Mnemonic: inc
        Interpreting line: load 5 with number: 4
        Mnemonic: load
                Arg: 5
        Interpreting line: addi with number: 5
        Mnemonic: addi

Version 0.1.0-alpha+noverbose.

24 May 18:04

Choose a tag to compare

Pre-release

This version doesn't log any AST-like data.
Instructions added:

  • printc
  • printpc (no, it doesn't print any PC info, just prints some chars and pops it)