Menu

Assert

Dilshan R Jayakody

Function

procedure Assert(Expr : boolean);

Availability

  • In Revision 0 and newer versions

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

Related

Documentation: LiteASM – Virtual Machine Simulator Command Line Parameters
Documentation: Virtual Machine Simulator Scripting Functions