΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£©¿ÎºóÏ°Ìâ´ð°¸ÍêÕû°æ

΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç

651AH£¬D761HºÍ007BH£¬ÇëÎÊÎïÀíµØÖ·388H£¬389H£¬38AH£¬38BH£¬38CHºÍ38DH 6¸öµ¥ÔªÖзֱðÊÇʲôÊý¾Ý£¿

´ð£º£¨388H£©=1AH£¬£¨389H£©=65H£¬£¨38AH£©=61H£¬£¨38BH£©=DTH£¬£¨38CH£©=7BH£¬£¨38DH£©=00H

10. 8086΢´¦ÀíÆ÷ÓÐÄļ¸ÖÖ¹¤×÷ģʽ£¿¸÷ÓÐʲôÌص㣿 ´ð£º8086΢´¦ÀíÆ÷ÓÐ×î´óºÍ×îС¹¤×÷ģʽ¡£

ÔÚ×îСģʽÏ£º8086 CPUÖ±½Ó²úÉúÈ«²¿×ÜÏß¿ØÖÆÐźţ¨DT/R£¬DEN£¬ALE£¬M/IO£©ºÍÃüÁîÊä³öÐźţ¨RD£¬WR£¬INTA£©²¢Ìá³öÇëÇó·ÃÎÊ×ÜÏßµÄÂß¼­ÐźÅHOLD£¬HLDA¡£

ÔÚ×î´ó¹¤×÷ģʽÏ£¬±ØÐëÅäÖÃ8288×ÜÏß¿ØÖÆÆ÷£¬²¢ÇÒ¸ù¾Ý8086ÌṩµÄ״̬ÐźÅS2£¬S1£¬S0£¬Êä³ö¶Áд¿ØÖÆÃüÁ¿ÉÒÔÌṩÁé»î¶à±äµÄϵͳÅäÖã¬ÒÔʵÏÖ×î¼ÑµÄϵͳÐÔÄÜ¡£

11. ¼òÊö8086Òý½ÅÐźÅÖÐM/IO£¬DT/R£¬RD£¬WR£¬ALE£¬DENºÍBHEµÄ×÷Óá£

´ð£ºM/IO£ºÊä³öÐźţ¬¸ßµçƽʱ£¬±íʾCPUÓë´æ´¢Æ÷Ö®¼äÊý¾Ý´«Ê䣻µÍµçƽʱ£¬±íʾCPUÓëI/OÉ豸֮¼äÊý¾Ý´«Êä¡£

DT/R£º¿ØÖÆÆäÊý¾Ý´«Êä·½ÏòµÄÐźš£DT/R=1ʱ£¬½øÐÐÊý¾Ý·¢ËÍ£»DT/R=0ʱ£¬½øÐÐÊý¾Ý½ÓÊÕ¡£

RD£ºCPUµÄ¶ÁÐźţ¬RD=0ʱ£¬±íʾ8086Ϊ´æ´¢¿Ú»òI/O¶Ë¿Ú¶Á²Ù×÷¡£ WR£ºCPUµÄдÐźţ¬WR =0ʱ£¬±íʾ8086Ϊ´æ´¢¿Ú»òI/O¶Ë¿Úд²Ù×÷¡£ ALE£ºµØÖ·´æËøÐźţ¬ÔÚT1ÄÜʱ¿ÌÓÐЧ¡£

DEN£ºÊý¾ÝѡͨÐźţ¬µ±DENÓÐЧʱ£¬±íʾÔÊÐí´«Êä¡£

BHE£ºÊý¾Ý×ÜÏßÔÊÐíÐźţ¬ÓëA0×éºÏʹÓ㬱íʾÊÇ·ñ·ÃÎÊÆæµØÖ·×Ö½Ú¡£

12. ¼òÊö8086¶Á×ÜÏßÖÜÆÚºÍд×ÜÏßÖÜÆÚºÍÒý½ÅÉϵÄÐźŶ¯¼â̬±ä»¯¹ý³Ì¡£8086µÄ¶ÁÖÜÆÚʱÐòºÍдÖÜÆÚʱÐòµÄÇø±ðÓÐÄÄЩ£¿ ´ð£ºÔÚ8086¶ÁÖÜÆÚÄÚ£¬ÓйØ×ÜÏßÐźŵı仯ÈçÏ£º

¢ÙM/IO£ºÔÚÕû¸ö¶ÁÖÜÆÚ±£³ÖÓÐЧ£¬µ±½øÐд洢Æ÷¶Á²Ù×÷ʱ£¬M/IOΪ¸ßµçƽ£»µ±½øÐÐI/O¶Ë¿Ú¶Á²Ù×÷ʱ£¬M/IOΪµÍµçƽ¡£

6

΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç

¢ÚA19/S6¡«A16/S3£ºÔÚT1Æڼ䣬Êä³öCPUÒª¶ÁÈ¡µÄ´æ´¢µ¥Ôª»òI/O¶Ë¿ÚµÄµØÖ·¸ß4λ¡£T2¡«T4ÆÚ¼äÊä³ö״̬ÐÅÏ¢S6-S3¡£

¢ÛBHE/S7£ºÔÚT1Æڼ䣬Êä³öBHEÓÐЧÐźÅ(BHEΪµÍµçƽ)£¬±íʾ¸ß8λÊý¾Ý×ÜÏßÉϵÄÐÅÏ¢¿ÉÒÔʹÓã¬BHEÐźÅͨ³£×÷ΪÆæµØÖ·´æ´¢ÌåµÄÌåÑ¡ÐźÅ(żµØÖ·´æ´¢ÌåµÄÌåÑ¡ÐźÅÊÇ×îµÍµØַλA0)¡£T2¡ªT4ÆÚ¼äÊä³ö¸ßµçƽ¡£

¢ÜADl5¡«AD0£ºÔÚT1Æڼ䣬Êä³öCPUÒª¶ÁÈ¡µÄ´æ´¢µ¥Ôª»òI/O¶Ë¿ÚµÄµØÖ·A15¡«A0¡£T2ÆÚ¼äΪ¸ß×è̬£¬T3¡«T4Æڼ䣬´æ´¢µ¥Ôª»òI/O¶Ë¿Ú½«Êý¾ÝËÍÉÏÊý¾Ý×ÜÏß¡£CPU´ÓADl5¡«AD0ÉϽÓÊÕÊý¾Ý¡£

¢ÝALE£ºÔÚT1ÆÚ¼äµØÖ·Ëø´æÓÐЧÐźţ¬ÎªÒ»ÕýÂö³å£¬ÏµÍ³ÖеĵØÖ·Ëø´æÆ÷ÕýÊÇÀûÓøÃÂö³åµÄϽµÑØÀ´Ëø´æA19/S6¡«A16/S3£¬ADl5¡«AD0ÖеÄ20λµØÖ·ÐÅÏ¢ÒÔ¼°BHE¡£

¢ÞRD£ºT2ÆÚ¼äÊä³öµÍµçƽË͵½±»Ñ¡ÖеĴ洢Æ÷»òI/O½Ó¿Ú£¬×¢Ò⣬ֻÓб»µØÖ·ÐźÅÑ¡ÖеĴ洢µ¥Ôª»òI/O¶Ë¿Ú£¬²Å»á±»RDÐźŴÓÖжÁ³öÊý¾Ý(Êý¾ÝËÍÉÏÊý¾Ý×ÜÏßADl5¡«AD0)¡£

¢ßDT/R£ºÔÚÕû¸ö×ÜÏßÖÜÆÚÄÚ±£³ÖµÍµçƽ£¬±íʾ±¾×ÜÏßÖÜÆÚΪ¶ÁÖÜÆÚ£¬ÔÚ½ÓÓÐÊý¾Ý×ÜÏßÊÕ·¢Æ÷µÄϵͳÖУ¬ÓÃÀ´¿ØÖÆÊý¾Ý´«Êä·½Ïò¡£

¢àDEN£ºÔÚT2¡«T3ÆÚ¼äÊä³öÓÐЧµÍµçƽ£¬±íʾÊý¾ÝÓÐЧ£¬ÔÚ½ÓÓÐÊý¾Ý×ÜÏßÊÕ·¢Æ÷µÄϵͳÖУ¬ÓÃÀ´ÊµÏÖÊý¾ÝµÄѡͨ¡£

×ÜÏßд²Ù×÷µÄʱÐòÓë¶Á²Ù×÷ʱÐòÏàËÆ£¬Æ䲻ͬ´¦ÔÚÓÚ£º

¢ÙADl5¡«AD0£ºÔÚT2¡«T4ÆÚ¼äËÍÉÏÓûÊä³öµÄµÄÊý¾Ý£¬¶øÎÞ¸ß×è̬¡£

WRÒý½ÅÊä³öÓÐЧµÍµçƽ£¬¢ÚWR£º´ÓT2¡«T4£¬¸ÃÐźÅË͵½ËùÓеĴ洢Æ÷ºÍI/O

½Ó¿Ú¡£×¢Ò⣬ֻÓб»µØÖ·ÐźÅÑ¡ÖеĴ洢µ¥Ôª»òI/O¶Ë¿Ú²Å»á±»WRÐźÅдÈëÊý¾Ý¡£

¢ÛDT/R£ºÔÚÕû¸ö×ÜÏßÖÜÆÚÄÚ±£³Ö¸ßµçƽ£¬±íʾ±¾×ÜÏßÖÜÆÚΪдÖÜÆÚ£¬ÔÚ½ÓÓÐÊý¾Ý×ÜÏßÊÕ·¢Æ÷µÄϵͳÖУ¬ÓÃÀ´¿ØÖÆÊý¾Ý´«Êä·½Ïò¡£

7

΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç

Ï°Ìâ3

1. ¼Ù¶¨£¨DS£©=2000H£¬£¨ES£©=2100H£¬£¨SS£©=1500H£¬£¨SI£©=00A0H£¬£¨BX£©=0100H£¬£¨BP£©=0010H£¬Êý¾Ý±äÁ¿VALµÄÆ«ÒƵØַΪ0050H£¬ÇëÖ¸³öÏÂÁÐÖ¸ÁîÔ­²Ù×÷ÊýÊÇʲôѰַ·½Ê½£¬ÆäÎïÀíµØÖ·ÊǶàÉÙ£¿ (1) MOV AX, 0ABH (3) MOV AX, VAL

(2) MOV AX, [100H] (4) MOV BX, [SI] (6) MOV CL, [BX][SI] (8) MOV [BP][SI], 100

(5) MOV AL, VAL[BX] (7) MOV VAL[SI], BX

´ð£º(1) Á¢¼´ÊýÑ°Ö·£¬ÎÞÎïÀíµØÖ·

(2) Ö±½ÓÑ°Ö·£¬ÎïÀíµØÖ·=2000H¡Á10H+100H=20100H (3) Ö±½ÓÑ°Ö·£¬ÎïÀíµØÖ·=2000H¡Á10H+0050H=20050H (4) ¼Ä´æÆ÷¼ä½ÓÑ°Ö·£¬ÎïÀíµØÖ·=2000H¡Á10H+00A0=200A0H

(5) Ïà¶Ô¼Ä´æÆ÷Ñ°Ö·£¬ÎïÀíµØÖ·=2000H¡Á10H+£¨0050+0100H£©=20150H (6) »ùÖ·¼Ó±äÑ°Ö·£¬ÎïÀíµØÖ·=2000H¡Á10H+£¨0100H+00A0H£©=201A0H (7) ¼Ä´æÆ÷Ñ°Ö·£¬ÎÞÎïÀíµØÖ· (8) Á¢¼´ÊýÑ°Ö·£¬ÎÞÎïÀíµØÖ·

2. ÒÑÖª£¨SS£©=0FFA0H£¬£¨SP£©=00B0H£¬ÏÈÖ´ÐÐÁ½Ìõ°Ñ8057HºÍ0F79H·Ö±ð½øÕ»µÄPUSHÖ¸ÁÔÙÖ´ÐÐÒ»ÌõPOPÖ¸ÁÊÔ»­³ö¶ÑÕ»ÇøºÍSPÄÚÈݱ仯µÄ¹ý³ÌʾÒâͼ¡£ ´ð£º

¡°8057H¡±½øÕ»£¬ÔòSP×Ô¶¯´Ó00B0HÖ¸Ïò00B2H£¬¡°0F79H¡±½øÕ»£¬ÔòSP×Ô¶¯´Ó00B2HÖ¸Ïò00B4H£»Ö´ÐÐÒ»ÌõPOPÖ¸Á¡°0F79H¡±±»µ¯³öÕ»£¬SP´Ó00B4HÖ¸Ïò00B2H¡£Í¼ÂÔ¡£

3. ÉèÓйؼĴæÆ÷¼°´æ´¢µ¥ÔªµÄÄÚÈÝÈçÏ£º

(DS)=2000H, (BX)=0100H, (AX)=1200H, (SI)=0002H, (20100H)=12H, (20101H)=34H,

(20102H)=56H,

(20103H)=78H,

(21200H)=2AH,

(21201H)=4CH, (21202H)=0B7H, (21203H)=65H.

ÊÔ˵Ã÷ÏÂÁи÷ÌõÖ¸Áîµ¥¶ÀÖ´ÐкóÏà¹Ø¼Ä´æÆ÷»ò´æ´¢µ¥ÔªµÄÄÚÈÝ¡£

8

΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç

(1) MOV AX, 1800H (2) MOV AX, BX

(3) MOV BX, [1200H] (4) MOV DX, 1100[BX] (5) MOV [BX][SI], AL (6) MOV AX, 1100[BX][SI] ´ð£º(1) (AX)=1800H (2) (AX)=0100H (3) (BX)=4C2AH

(4) (DX)=4C2AH (5) (20102H)=00H (6) (AX)=65B7H

4. д³öʵÏÖÏÂÁмÆËãµÄÖ¸ÁîÐòÁС£

(1) Z=W+(X+Z) (2) Z=W-(X+6)-(R+9) ´ð£º(1)

MOV AX, Z

ADD AX, X ADD AX, W MOV Z, AX (2) MOV AX, W ADD X, 6 SUB AX, X ADD R, 9 SUB AX, R MOV Z, AX

5. ÈôÔÚÊý¾Ý¶ÎÖдÓ×Ö½Ú±äÁ¿TABLEÏàÓ¦µÄµ¥Ôª¿ªÊ¼´æ·ÅÁË0~15µÄƽ·½Öµ£¬

ÊÔд³ö°üº¬XLATÖ¸ÁîµÄÖ¸ÁîÐòÁвéÕÒN£¨0~15£©ÖеÄij¸öƽ·½Êý¡£ ´ð£ºLEA BX, TABLE MOV AL, CL XLAT

6. д³öʵÏÖÏÂÁмÆËãµÄÖ¸ÁîÐòÁС£

(1) Z=(W*X)/(R+6) (2) Z=((W-X)/5*Y)*2 ´ð£º(1) MOV AX, W IMUL X ADD R, 6 IDIV R

9

΢»úÔ­ÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç

MOV Z, AX (2) MOV AX, W SUB AX, X MOV BL, 5 IDIV BL CBW IMUL Y MOV BX, 2 IMUL BX MOV Z, AX

7. ¼Ù¶¨(DX)=1100100110111001B,CL=3£¬CF=1, ÊÔÈ·¶¨ÏÂÁи÷ÌõÖ¸Áîµ¥¶ÀÖ´ÐкóDXµÄÖµ¡£

(1) SHR DX, 1

(2) SHL DL, 1

(3) SAL DH, 1 (4) SAR DX, CL

(5) ROR DX, CL (6) ROL DL, CL (7) RCR DL, 1 (8) RCL DX, CL ´ð£º(1) (DX)=0110 0100 1101 1100B (2) (DX)=1100 1001 0111 0010B

(3) (DX)=1001 0010 1011 1001B (4) (DX)= 1111 1001 0011 0111B (5) (DX)= 0011 1001 0011 0111B (6)(DX)= 0100 1101 1100 1110B (7) (DX)= 1110 0100 1101 1100B (8) (DX)= 1001 0011 0111 0011B

8. ÒÑÖª³ÌÐò¶ÎÈçÏ£º

MOV AX, 1234H MOV CL, 4 ROL AX, CL DEC AX MOV CX, 4 MUL CX INT 20H

ÊÔÎÊ£º£¨1£©Ã¿ÌõÖ¸ÁîÖ´Ðкó£¬AX¼Ä´æÆ÷µÄÄÚÈÝÊÇʲô£¿£¨2£©Ã¿ÌõÖ¸ÁîÖ´Ðкó£¬CF£¬SF¼°ZFµÄÖµ·Ö±ðÊÇʲô£¿£¨3£©³ÌÐòÔËÐнáÊøºó£¬AX¼°DX¼Ä´æÆ÷µÄֵΪ¶àÉÙ£¿

10

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@) ËÕICP±¸20003344ºÅ-4