NAME ^

myops.ops - Parrot Sample Ops

DESCRIPTION ^

A dynamic oplib loadable at demand.

Essential ops ^

fortytwo(out INT)

The famous and ever wanted opcode, proposed by Jos Visser in "We *need* this op! :-)".

what_do_you_get_if_you_multiply_six_by_nine(out INT)

Alternate spelling of this op, proposed by Nicholas Clark. It might bring imcc to its limits due the lengthy name.

hcf

Halt and Catch Fire. Tries to crash parrot.

q

Support for writing a very short quine.

bxand(out INT, in INT, in INT)

Binary operator, defined as A and B, but not BOTH.

alarm(in NUM, in PMC)

Call alarm handler sub $2 after $1 time has elapsed.

alarm(in NUM, in NUM, in PMC)

Call alarm handler sub $3 after $1 time has elapsed, repeat after $2.

conv_u2(inout INT)

Conversion of a two byte unsigned int to an INT. Formerly in dotgnu.ops. Used only in ./languages/Zcode/z3main.pir.


parrot