14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

2.6 System Call Instruction<br />

This instruction provides the means by which a program<br />

can call upon the system to perform a service.<br />

System Call<br />

SC-form<br />

sc<br />

LEV<br />

17 /// /// // LEV // 1 /<br />

0 6 11 16 20 27 30 31<br />

This instruction calls the system to perform a service. A<br />

complete description of this instruction can be found in<br />

Book III.<br />

The use of the LEV field is described in Book III. The<br />

LEV values greater than 1 are reserved, and bits 0:5 of<br />

the LEV field (instruction bits 20:25) are treated as a<br />

reserved field.<br />

When control is returned to the program that executed<br />

the System Call instruction, the contents of the registers<br />

will depend on the register conventions used by<br />

the program providing the system service.<br />

This instruction is context synchronizing (see Book III).<br />

Special Registers Altered:<br />

Dependent on the system service<br />

Programming Note<br />

sc serves as both a basic and an extended mnemonic.<br />

The Assembler will recognize an sc mnemonic<br />

with one operand as the basic form, and an<br />

sc mnemonic with no operand as the extended<br />

form. In the extended form the LEV operand is<br />

omitted and assumed to be 0.<br />

In application programs the value of the LEV operand<br />

for sc should be 0.<br />

Chapter 2. Branch Processor<br />

33

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

Saved successfully!

Ooh no, something went wrong!