GVM commands

Top  Previous  Next

All the VM commands are mostly the same as in VM Commands.

There are few changes and few additions:

 

Goto uses string labels, not a line number
Sub-Registers can be used
Aliases can be used for GPRM registers
If -then-else condition
you can have empty lines between code
you can have comments within code

 

Explicit Empty lines

Global VM will ignore any empty lines during Build. However if you really want to have empty lines in the final VM code (for example if you plan to add code manually using IFoedit or PGCedit after DVD compilation) then simply specify Nop as a command

 

A code:

PRE "Menu 1"

 Nop

 Nop

 Nop

 GPRM2 = 3

END

 

will generate three empty command lines before the set operation.

 

Comments

A line comment is created by typing double slash and then text. A comment can be on a new line, or simply after a line commands.

Example:

// This is comment

GPRM1 = 15 //This is another comment

 

A block comment is created by surrounding text inside /*   and   */

Example:

/*

This is a block comment

It will be ignored

*/

 

You can also comment out any code if you don't want to use it in the build.

 

Object
Any references to the objects must be surrounded in quotation marks. Example:

LinkPGCN "Menu 1"

linkto "Movie 1"