· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Á¶°ÇºÐ±â¸í·É¾î

Á¶°ÇºÐ±â ¸í·É¾î


1.1. °³¿ä

  • ÀÌ ¹®¼­ÀÇ ³»¿ëÀº MASM, TASMÀÇ ¸í·É¾î ±âÁØÀ¸·Î OPÀÇ ¼ø¼­(ºÎµîÈ£Á¶°Ç)¸¦ °¡Á¤ÇÕ´Ï´Ù.
  • AT&T ¹®¹ý¿¡¼­´Â ºÎµîÈ£ Á¶°ÇÀÌ (¹æÇ⸸)¹Ý´ë¶ó°í »ý°¢ÇÏ½Ã¸é µË´Ï´Ù.

1.2. Á¶°ÇºÐ±â ¸í·É¾î ¿ä¾àÇ¥

  • ¾Æ·¡ÀÇ Ç¥¿¡¼­ SF¿Í OF¸¦ ºñ±³ÇÏ´Â Á¶°ÇÀº ºÎÈ£¸¦ ½Äº°ÇÑ´Ù´Â °ÍÀ¸·Î »ý°¢ÇÏ½Ã¸é µË´Ï´Ù.
  • ZF´Â »óÈ£ »¬¼ÀÀ» ÇÏ¿´À»¶§ 0Àΰæ¿ì¸¦ 1·Î º¾´Ï´Ù. Áï, °ªÀÌ °°À»¶§ 1ÀÌ µË´Ï´Ù.
  • OF(Overflow)¿Í CF(Carry)ÀÇ Â÷À̸¦ È¥µ·ÇϽô ºÐÀÌ °è½Ç°Å °°Àºµ¥ CF´Â ÀÚ¸®ºô¸²À» ÇÏ´Â °æ¿ìÀÌ°í OF´Â °è»ê°á°ú°¡ Sign bit°¡ ¹ÝÀüµÉ¶§ ¹ß»ýÇÕ´Ï´Ù.

    ¸í·É¾î ºÎµîÈ£ Á¶°Ç Flag Á¶°Ç
    JMP 1(True)
    JA > CF=0 & ZF=0
    JNBE > CF=0 & ZF=0
    JAE >= CF=0 | ZF=1
    JNB >= CF=0 | ZF=1
    JB < CF=1
    JNAE < CF=1
    JBE <= CF=1 | ZF=1
    JNA <= CF=1 | ZF=1
    JCXZ CX == 0 .
    JE == ZF=1
    JZ == ZF=1
    JG > ZF=0 & SF == OF
    JNLE > ZF=0 & SF == OF
    JGE >= SF == OF
    JNL >= SF == OF
    JL < SF != OF
    JGNE < SF != OF
    JLE <= ZF == 1 | SF != OF
    JNG <= ZF == 1 | SF != OF
    JNE != ZF == 0
    JNZ != ZF == 0
    JNO No overflow OF == 0
    JNP No parity (Ȧ¼ö) PF == 0
    JPO No parity (Ȧ¼ö) PF == 0
    JNS No sign (¾ç¼ö) SF == 0
    JO Overflow OF == 1
    JP Parity (ÀÛ¼ö) PF == 1
    JS Sign (À½¼ö) SF == 1

1.3. Âü°í: SUBÀÇ Carry µ¿ÀÛ

SUB¸¦ ADD¿¬»êÀ¸·Î ´ëüÇÏ¿© Ç¥ÇöÇÒ°æ¿ì CarryÀÇ Æ¯¼º ([http]SeeAlso)
MOV AL, 4 /* ¸ñÀûÁö ÇÇ¿¬»êÀÚ */
MOV CL, 1 /* ¼Ò½º ÇÇ¿¬»êÀÚ */
NEG CL /* 2ÀÇ º¸¼ö */
ADD AL, CL /* µ¡¼À */
CMC /* Carry flag ¹ÝÀü */


1.4. ¹®¼­¸¦ ¸¶Ä¡¸ç

  • Á¦°¡ ¾Ë°í Àִ°ŠÁ¤¸®ÇÑ°Ì´Ï´Ù. Ȥ½Ã Ʋ¸°ºÎºÐ ÀÖÀ¸¸é ÀÎÁ¤»çÁ¤ º¸Áö ¸¶½Ã°í °íÃÄÁÖ¼¼¿ä.
  • x86¿ÜÀÇ ´Ù¸¥ CPU°è¿­µµ ´©±º°¡ Á¤¸®ÇØÁÖ½Ã¸é ¿©·¯ºÐµé¿¡°Ô µµ¿òÀÌ µÇÁö ¾ÊÀ»±î »ý°¢µË´Ï´Ù.
  • ÀÌ ¹®¼­ÀÇ ÃÖ±Ù ¹öÁ¯Àº http://www.minzkn.com:2744/ ¿¡¼­ º¸½Ç¼ö ÀÖ½À´Ï´Ù.



ID
Password
Join
You will be surrounded by luxury.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-04-16 09:42:09
Processing time 0.0058 sec