LiteASM Documentation
Light Weight & Customizable Assembly Compiler & Virtual Machine
Status: Planning
Brought to you by:
dilshan
Function
procedure Assert(Expr : boolean);
Availability
Description
Assert function check whether a given Boolean expression is true. In a script, Assert function test given predicate and immediately halt the script execution if it is fail.
In "LiteASM Virtual Machine Simulator" command line parameters are provided to ignore the run-time assertion checks. Check LiteASM – Virtual Machine Simulator Command Line Parameters topic for more details.
Example
Assert(ReadMemory($E)=$FF); //Test value of the memory address 0xE is 0xFF
Documentation: LiteASM – Virtual Machine Simulator Command Line Parameters
Documentation: Virtual Machine Simulator Scripting Functions