Help with piece of code 
Author Message
 Help with piece of code

: I'm trying to understand specifically how this piece of code works.
: In general it changes any numbers in   ATRESPA to 0 if values are
: not between 1 and 4.

: DO I = 1 TO 224;

:       B=UNSPEC(ATRESPA(I)); SUBSTR(B,1,4)='1111'B;
:       UNSPEC(ATRESPA(I)=B;
:       TRW(I)=ATRESPA(I);
:       IF TRW(I)<'1' | TRW(I)>'4' THEN TRW(I)='0';
:       END;

:     tia

I think we need to see the DCL's , too.  I think I can guess how
it's doing it (ugh!) -- but you're probably not interested in guesses.
--


WB0GNO          |  on CompuServe:  72103,443
                |  via snail-mail: 81230-1371



Mon, 17 Aug 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Need a piece of code...

2. Very nasty piece of code

3. code from "Lisp in Small Pieces"

4. piece of code

5. Interesting piece of code

6. Fast Additive Shading - A Piece of x86 Assembly Code

7. question about piece of code

8. piece of code

9. small piece of code

10. Performance monitoring a specific piece of code

11. WANTED: small piece of source code !!!!

12. How do you interpret this piece of code?

 

 
Powered by phpBB® Forum Software