Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

div

The div instruction divides a value.

Synopsis

div(type.dst,type.src)

Description

The div instruction divides the type.dst value by the type.src value. The integer quotient is returned in type.dst. The div instruction returns a value of 0 (zero) in Register 0 if no error occurred. If division by 0 is done and a -1 value is returned in Register 0, the result is set to the largest positive or negative integer, depending on whether type.dst was positive or negative originally.

Example

The following example divides r.3 by the value defined by NSTKS.

div(r.3,NSTKS)

© 2006 Avaya Inc. All Rights Reserved.