UNITY PRO XL

A

Thread Starter

AVI

I have a qustion. How can i put the value zero in a number of regesters in a short way. for example, in "modsoft" i make a xor command the source and the destination are the same address and the length is the nember of regesters that i want to make the value zero.

Tanks
Avi
 
The following should work:
(*put the register %MW100 to %MW109 to 0*)
%MW100:10 :=0;

Another way would be:
MOVE_WORD_ARWORD(0, Array1);

where ARRAY1 is your array of registers.
You have similar functions (MOVE_INT_ARINT, MOVE_REAL_ARREAL) for other types.

note: for the first method, you need to check an project option allowing the use of the symbol: for %MW100:10 to be accepted.

Best regards
Greg
 
Top