defi - Define integer constants

defi - Define integer constants

Calling Format

defi    dest, count, init, step

Operands

Name Register
dest Integer register
count Integer value.
Specifies a value that is one less than the number of times to run the group of instructions situated between the loop and endloop instructions. You can specify values between 0 and 255 (inclusive).
init Integer value.
Specifies an initial value for the loop counter register. You can specify values between -128 and 127 (inclusive).
Specified using two's complement when the integer value is given in hexadecimal.
step Integer value.
Specifies the amount by which to increment the loop-counter register for each loop iteration. You can specify values between -128 and 127 (inclusive).
Specified using two's complement when the integer value is given in hexadecimal.

Overview

Sets the values of integer registers. Integer registers are used by loop instructions.

Code Example

defi    i0 , 8 , 0 , 1 // Loops 9 times. aL has an initial value of 0 and is incremented by one during each loop iteration.
defi    i1 , 10 , 4 , 2 // Loops 11 times. aL has an initial value of 4 and is incremented by two during each loop iteration.

Revision History

2011/12/20
Initial version.

CONFIDENTIAL