ºÃÎĵµ - רҵÎÄÊéд×÷·¶ÎÄ·þÎñ×ÊÁÏ·ÖÏíÍøÕ¾

´æ´¢Æ÷֪ʶµãС½á

ÓÉ ÌìÏ ·ÖÏí ʱ¼ä£º ¼ÓÈëÊÕ²Ø ÎÒҪͶ¸å µãÔÞ

CPU¹¤×÷µÄʵÖʼ´Îª²»¶Ï´ÓÄÚ´æÖÐÈ¡Ö¸Áî²¢Ö´ÐÐÖ¸ÁîµÄ¹ý³Ì¡£

Ò»¡¢8086CPU¹¹³É

CPUµÄ¹¤×÷£ºÈ¡Ö¸ÁîºÍÖ´ÐÐÖ¸Áî

1£® CPUÄÚ²¿Á½´ó¹¦Äܲ¿¼þ£º×ÜÏß½Ó¿Ú²¿¼þBIUºÍÖ´Ðв¿¼þEU£¨2²¿¼þ²¢ÐÐ

¹¤×÷Ìá¸ßÁËCPUµÄ¹¤×÷ЧÂÊ£©

Öص㣺Àí½â2¸ö¶ÀÁ¢¹¦Äܲ¿¼þµÄ·Ö¹¤ºÍЭͬÅäºÏ¹Øϵ¡£ Àí½âBIUÄÚµØÖ·¼Ó·¨Æ÷µÄ×÷Óã¬Àí½âÖ¸Áî¶ÓÁеÄ×÷Óá£

2£® ÕÆÎÕCPUÄÚ²¿¼Ä´æÆ÷µÄ×÷ÓÃ

°üÀ¨£ºÍ¨ÓüĴæÆ÷AX£¬BX£¬CX£¬DX£¬BP£¬SP£¬SI£¬DI ¶Î¼Ä´æÆ÷CS£¬DS£¬SS£¬ES Ö¸ÁîÖ¸Õë¼Ä´æÆ÷IP ±êÖ¾¼Ä´æÆ÷FLAG

¶þ¡¢´æ´¢Æ÷µÄ»ù´¡ÖªÊ¶

1£®ÎïÀíµØÖ·

8086µÄ´æ´¢Æ÷ÊÇÒÔ×Ö½Ú(¼´Ã¿¸öµ¥Ôª´æ·Å8λ¶þ½øÖÆÊý£©Îªµ¥Î»×éÖ¯µÄ¡£8086CPU¾ßÓÐ20ÌõµØÖ·×ÜÏߣ¬ËùÒÔ¿É·ÃÎʵĴ洢Æ÷µØÖ·¿Õ¼äÈÝÁ¿Îª220¼´£±£Í×Ö½Ú£¨±íʾΪ1MB£©¡£Ã¿¸öµ¥Ôª¶ÔÓ¦Ò»¸öΨһµÄ20λµØÖ·£¬¶ÔÓÚ1MB´æ´¢Æ÷£¬ÆäµØÖ··¶Î§ÓÃ16½øÖƱíʾΪ00000H¡«0FFFFFH£¬Èçͼ1Ëùʾ¡£

1 / 9ÏÂÔØÎĵµ¿É±à¼­

µØÖ·µÍ¶Ë

µØÖ·¸ß¶Ë

ͼ1 1MB´æ´¢Æ÷µØÖ·±íʾ

ÎïÀíµØÖ·£º´æ´¢Æ÷µÄÿ¸öµ¥Ôª¶¼ÓÐÒ»¸öΨһµÄ20λµØÖ·£¬½«Æä³ÆΪÎïÀíµØÖ·¡£

2£®×Ö½ÚµØÖ·Óë×ÖµØÖ·

´æ´¢Æ÷ÄÚÁ½¸öÁ¬ÐøµÄ×Ö½Ú£¬¶¨ÒåΪһ¸ö×Ö£¬Ò»¸ö×ÖÖеÄÿ¸ö×Ö½Ú£¬¶¼ÓÐÒ»¸ö×Ö½ÚµØÖ·£¬Ã¿¸ö×ֵĵÍ×Ö½Ú£¨µÍ8룩´æ·ÅÔڵ͵ØÖ·ÖУ¬¸ß×Ö½Ú£¨¸ß8룩´æ·ÅÔڸߵØÖ·ÖС£×ֵĵØÖ·Ö¸µÍ×ֽڵĵØÖ·¡£¸÷λµÄ±àºÅ·½·¨ÊÇ×îµÍλΪλ0£¬Ò»¸ö×Ö½ÚÖУ¬×î¸ßλ±àºÅΪλ7£»Ò»¸ö×ÖÖÐ×î¸ßλµÄ±àºÅΪλ15¡£

×ÖÊý¾ÝÔÚ´æ´¢Æ÷Öдæ·ÅµÄ¸ñʽÈçͼ2Ëùʾ¡£

µØÖ·µÍ¶Ë

µØÖ·¸ß¶Ë

2 / 9ÏÂÔØÎĵµ¿É±à¼­

3£®µ¥ÔªµØÖ·ÓëÄÚÈÝ

ͼ2 ×ÖÊý¾ÝÔÚ´æ´¢Æ÷ÖеĴæ·Å

ÄÚÈÝ

µ¥ÔªµØÖ·

ͼ3

Èçͼ3£¬µØÖ·ÊÇ00100HµÄ×Ö½Úµ¥ÔªµÄÄÚÈÝΪ27H£¬±íʾΪ £¨00100H£©= 27H¡£ ͼ3ÖÐ×ÖÊý¾Ý3427H´æ·ÅÔÚµØÖ·ÊÇ00100HºÍ00101HµÄÁ½¸ö×Ö½Úµ¥ÔªÖУ¬ÆäÖеÍ×Ö½Ú27HÔڵ͵ØÖ·µÄ×Ö½Úµ¥Ôª00100HÖУ¬¸ß×Ö½Ú34HÔڸߵØÖ·µÄ×Ö½Úµ¥Ôª00101HÖУ¬×ÖÊý¾Ý3427HµÄµØÖ·Êǵ͵ØÖ·00100H¡£ µØÖ·ÊÇ00100HµÄ×Öµ¥ÔªµÄÄÚÈÝΪ3427H£¬±íʾΪ £¨00100H£©= 3427H

¿É¼û Ò»¸öµØÖ·¼È¿É×÷×Ö½Úµ¥ÔªµÄµØÖ·£¬ÓÖ¿É×÷×Öµ¥ÔªµÄµØÖ·£¬ÊÓʹÓÃÇé¿ö¶ø¶¨¡£

×ܽ᣺

×Ö½Úµ¥Ôª£º£¨00100H£©=27H ×Öµ¥Ôª£º £¨00100H£©=3427H Éè¼Ä´æÆ÷DS=0000H£¬

ÓÃMOVÖ¸Áî·ÃÎÊ×Ö½Úµ¥Ôª£ºMOV AL£¬[0100H] ÓÃMOVÖ¸Áî·ÃÎÊ×Öµ¥Ôª£º MOV AX£¬[0100H] Èý¡¢´æ´¢Æ÷µÄ·Ö¶Î

1£®

ΪʲôҪ·Ö¶Î

3 / 9ÏÂÔØÎĵµ¿É±à¼­

8086CPUÓÐ20λµØÖ·×ÜÏߣ¬¿ÉÑ°Ö·µÄ×î´óÄÚ´æ¿Õ¼ä´ï1M×Ö½Ú£¬µØÖ··¶Î§Îª00000H-0FFFFFH¡£ÄÚ´æÖÐÿ¸ö×Ö½Úµ¥ÔªÓÐΨһµÄ20λÎïÀíµØÖ·£¬CPU´æÈ¡ÄÚ´æÖеijÌÐòºÍÊý¾Ý±ØÐëʹÓÃ20λÎïÀíµØÖ·¡£

ÎÊÌ⣺8086 CPU·ÃÎÊ1MB¿Õ¼äµÄÄÚ´æ±ØÐëÓÐ20λµØÖ·£¬¶øÆäÄÚ²¿µÄ¼Ä´æÆ÷¾ùΪ16λµÄ£¬ÄÇôÔÚ´«ÊäµØַʱһ´ÎÖ»ÄÜ´«Êä16λµØÖ·£¬¼´Ö»ÄÜ·ÃÎÊ64K×Ö½ÚµØÖ·¿Õ¼ä¡£

8086 CPUÓ¦ÈçºÎÌṩ20λµØÖ·£¬ÒÔÑ°Ö·1MBÄڴ棿 2£®ÈçºÎ·Ö¶Î

ΪÁËʹ8086 CPUÄÜ·ÃÎʵ½1MBÄÚ´æ¿Õ¼äÖÐÈκÎÒ»¸öµ¥Ôª£¬8086ÇÉÃîµØ²ÉÓÃÁ˵ØÖ··Ö¶Î·½·¨£¨¼´½«1MB¿Õ¼ä·Ö³ÉÈô¸É¸öÂß¼­¶Î£©£¬´Ó¶ø½«Ñ°Ö··¶Î§À©´óµ½ÁË1MB¡£

·Ö¶ÎµÄ¹æÔò£º

£¨1£©ÎªÁËÄÜÔÚ1MB¿Õ¼äÄÚ½øÐÐÈ«·¶Î§Ñ°Ö·£¬¼´¿É·ÃÎʵ½1MB´æ´¢Æ÷µÄÈκÎÒ»¸ö´æ´¢µ¥Ôª£¬°ÑlMB´æ´¢Æ÷·Ö³ÉÈô¸É¶Î(segment)£¬Ã¿Ò»¶Î×î´óΪ64KB¡£

£¨2£©ÔÚ·Ö¶Îʱ£¬ÒªÇó¶ÎÆðʼµ¥ÔªµÄ20λÎïÀíµØÖ·µÄµÍ4λȫΪ0£¨¼´ÊÇ16

4 / 9ÏÂÔØÎĵµ¿É±à¼­

µÄÕûÊý±¶£©£¬Ð´³ÉÊ®Áù½øÖÆ£¬×îºóһλӦÊÇ0£¬¼´XXXX0H£¨XΪÈÎÒ»¸öÊ®Áù½øÖÆÊýÂ룩¡£

ͼ4 ·Ö¶ÎʾÒâͼ

·ÖÎö£º¼ÈÈ»¶ÎÆðʼµØÖ·µÄµÍ4λΪÁ㣬ÔòÖ»Ð轫¶ÎÆðʼµØÖ·µÄ¸ß16λ±£´æµ½CPUÄÚ²¿µÄ¼Ä´æÆ÷ÖУ¨±£´æ¶ÎÆðʼµØÖ·µÄ¼Ä´æÆ÷³Æ֮Ϊ¶Î¼Ä´æÆ÷£©

3£®ÓйØÄÚ´æµØÖ·µÄ¸ÅÄî

¶Î»ùÖ·£º½«¶ÎÆðʼµØÖ·µÄ¸ß16λ³ÆΪ¶Î»ùÖ·¡£

Æ«ÒÆÁ¿£º¶ÎÄÚ¸÷´æ´¢µ¥ÔªÏà¶Ô¶ÎµÄÆðʼµ¥Ôª¶¼ÓÐÒ»¸ö¾àÀ룬³ÆΪ¶ÎÄÚÆ«ÒÆÁ¿£¬ÓÖ³ÆÆ«ÒƵØÖ·»òÓÐЧµØÖ·£¨EA£©¡£

Òò¶ÎµÄ´óС²»³¬¹ý64KB£¬ËùÒÔ¶ÎÄÚÈκÎÒ»¸öµ¥Ôª¾àÀë¶ÎÊ×µÄÆ«ÒÆÁ¿¾ùÔÚ0000H-FFFFHÖ®¼ä£¬¼´Æ«ÒÆÁ¿¿ÉÒÔÓÃÒ»¸ö16λ¶þ½øÖÆÊý±íʾ¡£

×ܽ᣺¶Î»ùÖ·¾ö¶¨ÁËÒ»¸ö¶ÎÔÚÄÚ´æµÄ¿ªÊ¼Î»Ö㨼´¶ÎÊ×µØÖ·£©£¬Æ«ÒƵØÖ·ÃèÊöÁ˸õ¥ÔªÓë¶ÎÊ׵ľàÀë¡£

¿É¼û£¬ÓɶλùÖ·ÓëÆ«ÒƵØÖ·¿ÉÃèÊö³öÒ»¸öµ¥ÔªÔÚÄÚ´æµÄ¿Õ¼äλÖá£ÀýÈ磺һ¸öµ¥ÔªËùÔڶεĶλùַΪ1234H£¬¸Ãµ¥ÔªÓë¶ÎÊ׵ľàÀëΪ2£¬¸Ãµ¥ÔªÔÚÄÚ´æµÄλÖñíʾÈçͼ5¡£

µØÖ·µÍ¶Ë

µØÖ·¸ß¶Ë

Âß¼­µØÖ·±íʾ£º1234H£º0000H

12340H-----¶ÎÊ×£¨ÎïÀíµØÖ·±íʾ£©

¸Ãµ¥ÔªËùÔڵĶλùַΪ1234H£¬ Ëü¾àÀë¶ÎÊ×Æ«ÒÆ2¸öµ¥Ôª Âß¼­µØÖ·±íʾ£º1234H£º0002H

ͼ5 ÄÚ´æµ¥ÔªµÄÎïÀíµØÖ·ÓëÂß¼­µØÖ·±íʾ

5 / 9ÏÂÔØÎĵµ¿É±à¼­

´æ´¢Æ÷֪ʶµãС½á

CPU¹¤×÷µÄʵÖʼ´Îª²»¶Ï´ÓÄÚ´æÖÐÈ¡Ö¸Áî²¢Ö´ÐÐÖ¸ÁîµÄ¹ý³Ì¡£Ò»¡¢8086CPU¹¹³ÉCPUµÄ¹¤×÷£ºÈ¡Ö¸ÁîºÍÖ´ÐÐÖ¸Áî1£®CPUÄÚ²¿Á½´ó¹¦Äܲ¿¼þ£º×ÜÏß½Ó¿Ú²¿¼þBIUºÍÖ´Ðв¿¼þEU£¨2²¿¼þ²¢Ðй¤×÷Ìá¸ßÁËCPUµÄ¹¤×÷ЧÂÊ£©Öص㣺Àí½â2¸ö¶ÀÁ¢¹¦Äܲ¿¼þµÄ·Ö¹¤ºÍЭͬÅäºÏ¹Øϵ¡£Àí½âBIUÄÚµØÖ·¼Ó·¨Æ÷µÄ×÷Óã¬Àí½âÖ¸Áî¶ÓÁеÄ
ÍƼö¶È£º
µã»÷ÏÂÔØÎĵµÎĵµÎªdoc¸ñʽ
80fa96jhht4ncj33s2bw8iiwn4795r0189o
ÁìÈ¡¸£Àû

΢ÐÅɨÂëÁìÈ¡¸£Àû

΢ÐÅɨÂë·ÖÏí