mov ax,0
xor ax,ax
¤ÎÆó¤Ä¤¬¤è¤¯»È¤ï¤ì¤ë¤â¤Î¤À¤Èʹ¤¤Þ¤¹¡£
¥×¥í¥°¥é¥Þ¡¼¥ºbible¤Ë¤è¤ë¤È¡¢286°Ê¹ß¤Ç¤Ï¤³¤ì¤é¤Ë®Å٤ΰ㤤¤Ï¤Ê¤¯¡¢286¤Ï2¡¢386¤Ï2¡¢486¤Ï1¤ÎÍͤǤ¹¡£
¥¼¥í¥Õ¥é¥°¤ÎÊѲ½¤¬°ã¤¦°Ê³°¤ÏƱ¤¸¤è¤¦¤Ë»È¤¨¤Þ¤¹¡£
¤·¤«¤·¡¢V30¥×¥í¥°¥é¥Þ¡¼¥º¥ê¥Õ¥¡¥ì¥ó¥¹¤Ë¤è¤ë¤È¡¢xor¤ò»È¤Ã¤¿¾ì¹ç¤ÏV30¤Ç2¥¯¥í¥Ã¥¯¡¢8086¤Ç¤Ï3¥¯¥í¥Ã¥¯¤ÇºÑ¤ß¤Þ¤¹¡£
°ìÊýmov¤Ç¤Ï¶¦¤Ë4¥¯¥í¥Ã¥¯¤«¤«¤ê¤Þ¤¹¡£
¤Þ¤¢¡¢¤è¤Û¤É¤Î¤³¤È¤¬¤Ê¤¤¸Â¤ê¤Ï¸íº¹¤Ç¤¹¤±¤É¡¢¸Å¤¤µ¡¼ïÂбþ¤Î¾ì¹ç¤Ïxor¤¬¤è¤¤¤è¤¦¤Ç¤¹¡£
Ì¿Îá¤Î¥Ð¥¤¥È¿ô¤Ï¡¢8bit¤Î¥ì¥¸¥¹¥¿¤Î¾ì¹ç¤Ï2¤ÇÅù¤·¤¯¡¢16bit°Ê¾å¤Ç¤Ïmov¤ÎÊý¤¬¿ôÃÍʬ¤À¤±ÍÆÎ̤ò¿©¤¦¤ß¤¿¤¤¤Ç¤¹¡£
xor ax,ax
¤ÎÆó¤Ä¤¬¤è¤¯»È¤ï¤ì¤ë¤â¤Î¤À¤Èʹ¤¤Þ¤¹¡£
¥×¥í¥°¥é¥Þ¡¼¥ºbible¤Ë¤è¤ë¤È¡¢286°Ê¹ß¤Ç¤Ï¤³¤ì¤é¤Ë®Å٤ΰ㤤¤Ï¤Ê¤¯¡¢286¤Ï2¡¢386¤Ï2¡¢486¤Ï1¤ÎÍͤǤ¹¡£
¥¼¥í¥Õ¥é¥°¤ÎÊѲ½¤¬°ã¤¦°Ê³°¤ÏƱ¤¸¤è¤¦¤Ë»È¤¨¤Þ¤¹¡£
¤·¤«¤·¡¢V30¥×¥í¥°¥é¥Þ¡¼¥º¥ê¥Õ¥¡¥ì¥ó¥¹¤Ë¤è¤ë¤È¡¢xor¤ò»È¤Ã¤¿¾ì¹ç¤ÏV30¤Ç2¥¯¥í¥Ã¥¯¡¢8086¤Ç¤Ï3¥¯¥í¥Ã¥¯¤ÇºÑ¤ß¤Þ¤¹¡£
°ìÊýmov¤Ç¤Ï¶¦¤Ë4¥¯¥í¥Ã¥¯¤«¤«¤ê¤Þ¤¹¡£
¤Þ¤¢¡¢¤è¤Û¤É¤Î¤³¤È¤¬¤Ê¤¤¸Â¤ê¤Ï¸íº¹¤Ç¤¹¤±¤É¡¢¸Å¤¤µ¡¼ïÂбþ¤Î¾ì¹ç¤Ïxor¤¬¤è¤¤¤è¤¦¤Ç¤¹¡£
Ì¿Îá¤Î¥Ð¥¤¥È¿ô¤Ï¡¢8bit¤Î¥ì¥¸¥¹¥¿¤Î¾ì¹ç¤Ï2¤ÇÅù¤·¤¯¡¢16bit°Ê¾å¤Ç¤Ïmov¤ÎÊý¤¬¿ôÃÍʬ¤À¤±ÍÆÎ̤ò¿©¤¦¤ß¤¿¤¤¤Ç¤¹¡£
¸ß´¹À¤òÊݤľì¹ç¤Ïshl ax,1¤ò½ñ¤Ï¢¤Í¤Æ¤¤¤¯¥Ñ¥¿¡¼¥ó¤È¡¢
mov cl,3
shl ax,cl
¤È¤¤¤¦¥Ñ¥¿¡¼¥ó¤¬¤¢¤ê¤Þ¤¹¡£
¹¹¤Ë¡¢186°Ê¹ß¤Ç¤Ïshl ax,3¤È¤¤¤¦½ñ¤Êý¤â¤¢¤ê¤Þ¤¹¡£
1¤ò½ñ¤Ï¢¤Í¤Æ¤¤¤¯¾ì¹ç¤Ï¡¢286¡¢V30¤ä8086¤Ç¤Ï2¥¯¥í¥Ã¥¯¤Ç¡¢2¥Ð¥¤¥È¤ÎÌ¿Îá¤Ç¤¹¡£
¤è¤Ã¤Æ¡¢n²ó¥·¥Õ¥È¤¹¤ë¤È2n¥¯¥í¥Ã¥¯¤Ç2n¥Ð¥¤¥È¤«¤«¤ê¤Þ¤¹¡£
386¤È486¤Ç¤Ï3¥¯¥í¥Ã¥¯¤«¤«¤ë¤Î¤Ç¡¢3n¥¯¥í¥Ã¥¯¤È¤Ê¤ê¤Þ¤¹¡£
cl¤ò¶´¤à¾ì¹ç¡¢V30¤Ê¤É¤Ç¤Ïmov¤À¤±¤Ç10¥¯¥í¥Ã¥¯°Ê¾å¤«¤«¤Ã¤Æ¡¢¹¹¤Ë¥·¥Õ¥È¼«ÂΤÇ7¥¯¥í¥Ã¥¯°Ê¾å¤«¤«¤ë¤Î¤Ç¤Þ¤º¾¡Éé¤Ë¤Ê¤ê¤Þ¤»¤ó¡£
¤·¤«¤·¡¢286¡¢386¤Îmov¤Ï2¥¯¥í¥Ã¥¯¡¢486¤Ë»ê¤Ã¤Æ¤Ï1¥¯¥í¥Ã¥¯¤ÇºÑ¤ß¡¢¥·¥Õ¥È¤Ï286¤Ç5¥¯¥í¥Ã¥¯¡¢386¤È486¤Ç¤Ï3¥¯¥í¥Ã¥¯¤Ê¤Î¤Ç¡¢¸ß´¹À¤ò°Ý»ý¤·¤¿¥×¥í¥°¥é¥à¤Î¾ì¹ç¤Ï¿·¤·¤¤µ¡¼ï¤Ç¤Ïcl¤ò¶´¤àÊý¤¬Á᤯¤Ê¤ê¤Þ¤¹¡£
186°Ê¹ß¤Ç»È¤¨¤ë¨ÃÍ»ØÄê¤Î¾ì¹ç¤Ï¡¢V30¤Ç7+n¥¯¥í¥Ã¥¯¡¢286¤Ç5¡¢386¤Ç3¡¢486¤Ç¤Ï2¤È¤Ê¤ë¤Î¤Ç¡¢8086¤Î¤«¤Ê¤ê¸Å¤¤µ¡¼ï¤ò̵»ë¤¹¤ë¤Î¤Ê¤é°ìÈֻȤ¤¤ä¤¹¤¤¤È»×¤ï¤ì¤Þ¤¹¡£
¢¨¥á¥â¥ê¤ò¥·¥Õ¥È¤¹¤ë¾ì¹ç¤Ï¤è¤êÃÙ¤¯¤Ê¤ê¡¢¥¯¥í¥Ã¥¯¿ô¤âÊѤï¤Ã¤Æ¤¤Þ¤¹¡£
mov cl,3
shl ax,cl
¤È¤¤¤¦¥Ñ¥¿¡¼¥ó¤¬¤¢¤ê¤Þ¤¹¡£
¹¹¤Ë¡¢186°Ê¹ß¤Ç¤Ïshl ax,3¤È¤¤¤¦½ñ¤Êý¤â¤¢¤ê¤Þ¤¹¡£
1¤ò½ñ¤Ï¢¤Í¤Æ¤¤¤¯¾ì¹ç¤Ï¡¢286¡¢V30¤ä8086¤Ç¤Ï2¥¯¥í¥Ã¥¯¤Ç¡¢2¥Ð¥¤¥È¤ÎÌ¿Îá¤Ç¤¹¡£
¤è¤Ã¤Æ¡¢n²ó¥·¥Õ¥È¤¹¤ë¤È2n¥¯¥í¥Ã¥¯¤Ç2n¥Ð¥¤¥È¤«¤«¤ê¤Þ¤¹¡£
386¤È486¤Ç¤Ï3¥¯¥í¥Ã¥¯¤«¤«¤ë¤Î¤Ç¡¢3n¥¯¥í¥Ã¥¯¤È¤Ê¤ê¤Þ¤¹¡£
cl¤ò¶´¤à¾ì¹ç¡¢V30¤Ê¤É¤Ç¤Ïmov¤À¤±¤Ç10¥¯¥í¥Ã¥¯°Ê¾å¤«¤«¤Ã¤Æ¡¢¹¹¤Ë¥·¥Õ¥È¼«ÂΤÇ7¥¯¥í¥Ã¥¯°Ê¾å¤«¤«¤ë¤Î¤Ç¤Þ¤º¾¡Éé¤Ë¤Ê¤ê¤Þ¤»¤ó¡£
¤·¤«¤·¡¢286¡¢386¤Îmov¤Ï2¥¯¥í¥Ã¥¯¡¢486¤Ë»ê¤Ã¤Æ¤Ï1¥¯¥í¥Ã¥¯¤ÇºÑ¤ß¡¢¥·¥Õ¥È¤Ï286¤Ç5¥¯¥í¥Ã¥¯¡¢386¤È486¤Ç¤Ï3¥¯¥í¥Ã¥¯¤Ê¤Î¤Ç¡¢¸ß´¹À¤ò°Ý»ý¤·¤¿¥×¥í¥°¥é¥à¤Î¾ì¹ç¤Ï¿·¤·¤¤µ¡¼ï¤Ç¤Ïcl¤ò¶´¤àÊý¤¬Á᤯¤Ê¤ê¤Þ¤¹¡£
186°Ê¹ß¤Ç»È¤¨¤ë¨ÃÍ»ØÄê¤Î¾ì¹ç¤Ï¡¢V30¤Ç7+n¥¯¥í¥Ã¥¯¡¢286¤Ç5¡¢386¤Ç3¡¢486¤Ç¤Ï2¤È¤Ê¤ë¤Î¤Ç¡¢8086¤Î¤«¤Ê¤ê¸Å¤¤µ¡¼ï¤ò̵»ë¤¹¤ë¤Î¤Ê¤é°ìÈֻȤ¤¤ä¤¹¤¤¤È»×¤ï¤ì¤Þ¤¹¡£
¢¨¥á¥â¥ê¤ò¥·¥Õ¥È¤¹¤ë¾ì¹ç¤Ï¤è¤êÃÙ¤¯¤Ê¤ê¡¢¥¯¥í¥Ã¥¯¿ô¤âÊѤï¤Ã¤Æ¤¤Þ¤¹¡£
ºÇ¿·¥³¥á¥ó¥È
2023-03-05
2020-09-15