Introduction
NTASM is a simple text-based scripting language designed for creating interactive console programs. It supports variable assignment, arithmetic calculations, input/output commands, and labels for program flow control.
Basic Syntax
NTASM commands are line-based and usually start with a symbol indicating their purpose:
< NAME
TOTAL = num1 + num2 + num3
> — Output command
> @nl — Line break
< — Input command
= — Variable assignment and calculations
Labels and Jumps
NTASM supports labels using the @ prefix and jumping with ~:
> "Type 'exit' to quit or continue:" > @nl
< CMD
~LOOP
Labels allow you to structure your program, and jumps provide simple loops or conditional flow control.
Variables and Expressions
You can store strings or numeric values in variables and perform basic arithmetic:
num2 = 20
TOTAL = num1 + num2
NTASM evaluates arithmetic expressions automatically and replaces variables in output commands.
NXR Rolima (C++ based Interpreter + Runtime)
Rolima is a C++ based Interpreter that executes NTASM scripts, handling input/output, calculations, and control flow. It allows you to run your NTASM programs on your computer and experiment interactively.
Download RolimaTips
- Always use @nl if you want a line break.
- Use labels and jumps to structure loops and functions.
- Input values are read from the console using < commands.
- Rolima allows you to run NTASM scripts interactively.