28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PL2 Mnemonics<br />

GENERAL<br />

The general form for a Mnemonic is:<br />

Mnemonic [Mnemonic Operator]<br />

Mnemonic operators are used with a Mnemonic to fully define an Instruction.<br />

STANDARD SET MNEMONICS<br />

Mnemonic Mnemonic<br />

Operator<br />

and<br />

Argument[s]<br />

Nop Has no function.<br />

Description<br />

Stop Stops execution. Execution may later resume at<br />

the following line using the CONT command.<br />

End Ends execution. Informative message is sent to<br />

the terminal.<br />

End SILENT Ends execution. No message is sent.<br />

Disp Lval Displays XReg, Reg or Const on the terminal.<br />

Goto Line Execution proceeds at the indicated line.<br />

Gosub Line Calls a subroutine at indicated line.<br />

IdxGoto Rval ,Line Execution proceeds at the indicated line number<br />

stated in the Register + the Line number<br />

IdxGosub Rvat,Line Calls a subroutine at the indicated line number<br />

stated in the Register + the Line number<br />

IdxGoto Rval Execution proceeds at the indicated line number<br />

stated in the Register<br />

IdxGosub Calls a subroutine at the indicated line number<br />

stated in the Register<br />

Return Return from a subroutine to the line immediately<br />

following the GOSUB line.<br />

IReturn SYS Sval Returns from a system interrupt routine and<br />

enable the specified interrupts.<br />

Binary OR Sval to Int.SysMask.<br />

IReturn IN Sval Returns from an I/O interrupt routine and enable<br />

the specified interrupts.<br />

Binary OR Sval to Int.Mask.<br />

IReturn CASn Sval Returns from a cascaded interrupt routine and<br />

enable the specified cascaded interrupts.<br />

Binary OR Sval to the mask register <strong>of</strong> the<br />

cascade handler, the Int.SysMask is<br />

automatically re-enabled.<br />

Where n is the cascade handler number.<br />

Loop Reg, Line Decrement Reg by one. If Reg is > 0, then goto<br />

the indicated Line; else proceed with the<br />

following line.<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001 41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!