Once more,  VLIST answers the question:

00001:       FOR A1 = 1 TO X
00001 00000 : 0F8 move           0  => A1
00001 00006 : 098 forincr        A1 X 1 00058:

00002:          FOR A2 = 1 TO Y
00002 00014 : 0F8 move           0  => A2
00002 0001A : 098 forincr        A2 Y 1 00050:

00003:             * <little twisted logic>

00004:             IF G = H THEN EXIT ; EXIT
00004 00028 : 06E eq             G H  => $R0
00004 00030 : 2DE testfw         $R0 00048:
00004 00038 : 0C2 jump           00050: <-----   1st EXIT.
00004 00040 : 0C2 jump 00050: <----- 2nd EXIST. hey, same jump as 1st!
                                                                                
   (but would nexer be reached. we already jumped.)

00005:             * <twisted little logic>

00006:          NEXT A2
00006 00048 : 0C2 jump           0001A:

00007:          * <twisting little logic>

00008:       NEXT A1 <--- 0050x where that exit takes us.
00008 00050 : 0C2 jump           00006:


00009:       * <little twisting logic>
00010 00058 : 190 stop

On 4/19/2012 3:35 PM, Dave Laansma wrote:
Given:
FOR A1 = 1 TO X
   FOR A2 = 1 TO Y
     <little twisted logic>
     IF G = H THEN EXIT ; EXIT
     <twisted little logic>
   NEXT A2
   <twisting little logic>
NEXT A1
<little twisting logic>

The question is, if G = H, will the two EXIT commands drop out of both
loops, skipping BOTH<twisted little logic>  and<twisting little logic>,
and resume execution at<little twisting logic>  ?
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to