Microsoft DirectX 9.0

loop (Çȼ¿ ¼ÎÀÌ´õ)


loop...endloop ºí·ÏÀ» ½ÃÀÛ ÇÑ´Ù.

±¸¹®

loop aL, integerRegister

¿©±â¼­

ÁÖÀÇ

Çȼ¿ ¼ÎÀÌ´õÀÇ ¹öÀü1_11_21_31_42_02_x2_sw3_03_sw
loopxx

ÀÌ ¸í·ÉÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ´Â ¸í·ÉÀº, Á¤¼öÇü ·¹Áö½ºÅÍ»ÓÀÌ´Ù. loop ¸í·ÉÀº ¹Ýº¹À» À§ÇÑ ¸í·ÉÀ¸·Î, ·çÇÁ Ä«¿îÅÍ ·¹Áö½ºÅÍÀÇ ÀÚµ¿ ÀÎÅ©¸®¸ÕÆ®(increment)¸¦ Áö¿ø ÇÑ´Ù. À̰ÍÀ» ÀÌ¿ëÇØ, Á¤¼ö ¹è¿­ÀÇ ¿ä¼Ò¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. ³×½ºÆ® µÇ°í ÀÖ´Â °æ¿ì, ·çÇÁ Ä«¿îÅÍ ·¹Áö½ºÅ͸¦ »ç¿ëÇÒ ¶§´Â Ç×»ó, ÇöÀçÀÇ ·çÇÁ¸¦ ÂüÁ¶ÇÑ´Ù.

ÀÌ ¸í·ÉÀÇ ±â´ÉÀ» ´ÙÀ½¿¡ ³ªÅ¸³½´Ù.

StartLoopOffset = next instruction offset
LoopCounter      = IntegerReg.x
IterationCount   = IntegerReg.y
LoopStep         = InteferReg.z
if (IterationCounter <= 0)
  Continue execution after the next EndLoop instruction


© 2002 Microsoft Corporation. All rights reserved.
¡èTOP