ÓãCÂÛ̳

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
²é¿´: 1104|»Ø¸´: 1

Ϊʲôѹջʱ£¬»¹Ã»push£¬¶¨ÒåµÄÕ»¶ÎÄÚÈݾͱäÁË

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2023-3-1 21:01:27 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ

ÂíÉÏ×¢²á£¬½á½»¸ü¶àºÃÓÑ£¬ÏíÓøü¶à¹¦ÄÜ^_^

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿Á¢¼´×¢²á

x
debugÖУº
mov ax,2000
mov ss,ax
mov sp,10
mov ax,3123
push ax
È»ºóÎÒ°ÑÄÚ´æ2000:0 fÕâ¶Î¸øÈ«²¿Ìî0ÁË
µ«Êǵ±Êµ¼ÊÔËÐÐÖ´Ðе½ mov sp,10Õâ¶Îʱ£¬¶¨ÒåµÄÕ»¶Î2000:f ͻȻ¾Í×Ô¼º¶à³öÄÚÈÝÁË£¬ËæºóÖ»Òª¶àÈκÎÖ¸Áî²Ù×÷£¨²»ÊÇpush£©£¬Õ»¶Î¶¼»á×Ô¼º±äÄÚÈÝ£¬µ«ÊÇÒѾ­Ñ¹½øÈ¥µÄÈç¹ûû´úÂë²Ù×÷²»»áÂұ䡣
ÕâÊÇɶԭÀí£¿£¨ps£ºÈç¹ûÑ­»·²Ù×÷Ò»¸öÃüÁî±ÈÈçmov sp,10Ñ­»·²Ù×÷3´Î£¬Õ»¶ÎµÄÖµÓÖÊDZ£³ÖºÍµÚÒ»´Î¸ÃÖ¸Áî²Ù×÷ÍêʱºòµÄ״̬²»±ä£©
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
·¢±íÓÚ 2023-3-25 16:07:58 | ÏÔʾȫ²¿Â¥²ã
ÕâÖÖÏÖÏóµÄÔ­ÒòÊÇÒòΪջָÕë sp Ö¸ÏòµÄÄÚ´æλÖñ»ÐÞ¸ÄÁË£¬µ¼ÖºóÐøµÄÕ»²Ù×÷³öÏÖÁËÎÊÌâ¡£

ÔÚÄãµÄ´úÂëÖУ¬Ê×ÏÈʹÓÃÁË mov ss,ax Ö¸Áջ¶ÎµÄÖµÉèÖÃΪ 2000H£¬È»ºóʹÓà mov sp,10 ½«Õ»Ö¸ÕëÖ¸ÏòÁËÆ«ÒÆÁ¿Îª 10H µÄλÖá£ÕâÑù£¬Õ»Ö¸Õë sp ËùÖ¸ÏòµÄµØÖ·¾ÍÊÇ 2000:10H¡£È»ºóÄãÓÖʹÓà mov ax,3123 ½«Êý¾Ý 3123H ѹÈëÕ»ÖС£ÓÉÓÚÕ»ÊÇÏòÏÂÔö³¤µÄ£¬Ò²¾ÍÊÇÕ»Ö¸Õë sp µÄÖµ¼õС£¬ËùÒÔ´ËʱջָÕë sp µÄÖµ±äΪÁË 2000:0EH£¬Õâ¸öµØÖ·ÉÏ´æ·ÅµÄÊÇÊý¾Ý 3123H¡£

½ÓÏÂÀ´£¬Ä㽫ÄÚ´æ 2000:0F µ½ 2000:FF µÄÄÚÈÝÈ«²¿ÉèÖÃΪ 0¡£ÓÉÓÚÕ»ÊÇÏòÏÂÔö³¤µÄ£¬Õ»Ö¸Õë sp µÄÖµ¼õС£¬ËùÒÔµ±ÄãÔÙ´ÎÐÞ¸ÄÕ»Ö¸Õë sp µÄֵʱ£¬¾Í»áÖ¸ÏòÒ»¸ö±»Ð޸ĹýµÄµØÖ·¡£Õâ¸öµØÖ·ÉÏÔ­±¾´æ·ÅµÄÊÇ䶨ÒåµÄÖµ£¬ÏÖÔÚ±»ÄãÐÞ¸ÄΪÁË 0£¬µ«ÊÇÕâ¸öµØÖ·µÄÖµÊDz»Îȶ¨µÄ£¬ÒòΪËü¿ÉÄܱ»ÆäËûµÄ³ÌÐò»òÕß²Ù×÷Ð޸ġ£Òò´Ë£¬ºóÐøµÄÕ»²Ù×÷³öÏÖÁËÎÊÌ⣬ÒòΪջָÕë sp ËùÖ¸ÏòµÄλÖÃÒѾ­±»ÄãÐÞ¸ÄÁË¡£

Èç¹ûÄãÑ­»·Ö´ÐÐͬһÌõÖ¸ÁջָÕë sp µÄÖµ²»±ä£¬Òò´ËÕ»¶ÎµÄÖµÒ²²»»á±ä¡£µ«ÊÇÈç¹ûÄãÖ´ÐÐÆäËûµÄÖ¸Á¿ÉÄÜ»áÐÞ¸ÄÕ»Ö¸Õë sp µÄÖµ£¬µ¼ÖÂÕ»¶ÎµÄÖµ·¢Éú±ä»¯¡£

ΪÁ˱ÜÃâÕâÖÖÎÊÌ⣬Ӧ¸Ã±ÜÃâÖ±½ÓÐÞ¸ÄÕ»Ö¸Õë sp µÄÖµ£¬¶øÊÇʹÓà push ºÍ pop Ö¸ÁîÀ´½øÐÐÕ»²Ù×÷¡£ÕâÑù¿ÉÒÔ±£Ö¤Õ»Ö¸Õë sp µÄֵʼÖÕÖ¸ÏòÕýÈ·µÄλÖá£
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

СºÚÎÝ|ÊÖ»ú°æ|Archiver|ÓãC¹¤×÷ÊÒ ( ÔÁICP±¸18085999ºÅ-1 | ÔÁ¹«Íø°²±¸ 44051102000585ºÅ)

GMT+8, 2024-12-22 13:48

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí