Skip to content

0.1.2-R1-test

Latest
Compare
Choose a tag to compare
@DEntis-T DEntis-T released this 15 Jan 22:17
· 24 commits to main since this release

Full Changelog: 0.1.1-R3-test...0.1.2-R1-test

NewASM Release Notes

Welcome to NewASM: interpreted low-level language that mimics assembly.

  • Version: 0.1.2
  • Release: 1
  • Release type: test

NOTE: This is a pre-release which means that this product version doesn't represent the final quality of the product - it may contain bugs and problems that aren't yet discovered.

What's new

  • If you try to use an end instruction without creating a procedure, you will get an exception with exit code 32. Namely:
_:start
    end ; error
    ; other stuff
  • Added the new -log argument.

  • Added the new dynamic library system which is explained in the README.md in details.

  • Added more exception codes.

What's changed

  • No changes were made to other existing systems.

Fixed issues

  • No fixed issues.

Building from source

  • Use the following command to compile your own build of NewASM; make sure that you have G++ installed:
C:\path_to_your_compiler\g++ -static -std=c++20 index.cpp -o index.exe
  • If you are using Windows Subsystem for Linux, use the following command:
wsl g++ -m32 -static -std=c++20 index.cpp -o index.out

Downloading

  • Download one of the following archives that suits your system. Once you have downloaded it, extract the archive into a folder of your choice and begin using the application.

Using the application

  • Use the following command to execute your NewASM programs on Windows:
newasm -input yourfile.asm
  • If you are on Linux, just add the .out extension:
./newasm.out -input yourfile.asm

Writing your first NewASM app

  • Create the file named yourfile.asm, or just name it whatever you like, and edit it with an editor of your choice:
_ : start
    mov . tlr , "Hello world!"
    mov . stl , %endl
    mov . fdx , 1
    syscall . 0 , %ios
    retn . 0 , 0

Output:

Hello world!