Anda di halaman 1dari 6
Answers to Odd-Numbered Problems CHAP. 1, 1-1.a 1b. 2c. 2% 13,4, 10b.2¢5 d. 161-5. 1,024, 4,096, 8K_1-7. 1010 1100, 1721.9. 201 1-11. 11O0OIIL, 199 1-13. 111000 1-15. 1001 0110 1-17, FS2B, F52C, FS2D, FS2E, FS2F, F530 1-19. a, III TI11b, 1010 1011 1100 c. 1100 1101 0100 0010 4.1111 0011 0010 1001 1-21..0011 1110,0000 1110, 1101 DIL, 0010 0000, O111 0110 1-23. a, 4,095 b. 16,383 c. 32,740 d, 46,040 1-25. 16,384, 16K 1-27. 0000, FFFF 1-29. a. EE b. ID7B c, 3BFF d. BSBS 1-31 a. 87 b. 9,043 ¢, 597,266 1-33. 100 1100, 100 1001, TOL OTT, 101 100 CHAP. 2, 2-1, One or more, one 2-3, Nonin- verter 2-5, 64, 000000 2-7.3,9,C,F. 2-9. 128, 111111 210,59 213.¥ = A+B, low 215.8 2-17. 0,7 = A+ B+ C,000t0 110, 111 2-19. ¥ = ABC, 0 21. ¥ = AB-+ CD, 16, 0000, 0001, 0010, 0100, 0101, 0110, 1000, 1001, 1010 2-23. a. 0000 b. 0001 c. JIM 4. OPR 2-25, a, Positiveb, Negativec. Positive d. Negative CHAP. 3, 3-1. High; low; inverter 3-3, None, Zs, 25 3-5. Q is 1, Q is 3-7. Change the output Nor gate of Fig. 3-28a toa bubbled aNb gate; all bubbles cancel leaving the simplified circuit of Fig. 3-28. 3.9.0, 1 3-11, 512 3-13, 16; 0, 1, 1,0 315. 1, 0, inverter 3-17. a, None b.Z, 6. Z: dX; and ¥; 319.0, 1 3-21, S12 3.23. Low, high 3-25. a. 0b. Te. 1d 1 3-27. a, L1010b, 01001 ¢. LILI d. 10010 3-29. Remove the inverter 3-31. a. CARRY = 0, SUM = 0.0, 1.0, 1d. 1,0 3.33. a, 0011 1100 b. 0101 0000 1100 e. 0001 1110 O10 1100 d. 1111 0000 1101 0010 CHAP. 4. 4-1. 1.075 mA, 1.387 mA 4.3.5 45. All, dete CHAP. 5. 5-1. ABCD, ABCD, ABCD 33. Aapeccod 55, AAgBceDD 57. as a aso 0 (000 elo 0 0 0 aafroria it aeajr. at 59. Akeactog 513 aagacdod aso fy “fe AABaCCOD 514 Answers to Odd-Numbered Problems 5-15. % > co co AagecenD CHAP. 6, 6-1. a, 0001 1000, 18H b. 0010 0100, 24H ©. 0010 1010, 24H d. O110 0011, 63H 6-3. a. 7BH b. 78H c, ASH d. DIH 65. a, +30 b, -7c, -28 . +49 6-7. a, POH. O1H c. 03H d. IFH 69. a, 1110 1101, EDH b. 1101 0000, DOH ¢, 0010 0101, 25H d. 1101 1111, DFH 6-11. 9BH, DDH CHAP. 7, 7-1. a,Cb.G 7-3. a, 0000, 1001 7-5. 3 MHz; the output frequency is half the input frequency 77.0=0,Y=1;0=1,¥ = CLK CHAP. 8. 8-1. a. 0001 0111 b. 1000 1101 8-3. 385 0 85. 4s 87.64 ps 8-9. 65,535 8-11. 1 Hs, 6 ws 8-13. 1.6 ys, 0.2 4s 8-15, Two answers: 7490 (divide by 10) and 7492 (divide by 6), or 7490 (divide by 5) and 7492 (divide by 12) 8-17. 1368-19, a0, 1b. 1, 1.0 CHAP. 9, 9-1, 16,384 9.3. 12 9.5: Address Data DPPD —_UDDD UDDU pppu —— DUUU UUDD DDUD —_DDUU DUUD DDUU PUD DpUU buDP —_Dppu DUUU. DUDU — DUDU LULU DUUD —_ UUUD UUDU DULY UUUU UDDD 9-7. 63 9.9. BFFFH; 49,151 9-11. a. 47, 212, 207, 110, 83, 122 b. 36,357 ta) pope ‘or 0001 1010 0011, 2EIH or 0010 1110 0001, 3CFH or IH ADD EH OO11 1100 1111 109. a, Negative edge: CLA is on its cH NVIA‘MH os oa 1s, Mnemonic ts MVIA4SH betiefe referee rele rele reo] MVIB.22H 4 ADDB J ru LI STA s000H eFFLiet | | | 11-7. a. 120 b. 119 c. Change the first instruction to MVI | a ee aq t 1 7 T 11-9. Mnemonic pop ee 4 MV Aoot L ' | ! MVIB, 191 & {ot 4 MVICO7H _ I + | : STA 2000H cE 1 1 1 1 HLT roi wet Label Mnemonie a, iy] | | INOIH fl ANIOIH i I I MVIA,45H | t JMP DONE te | T opp: MVIA.4FH i DONE: MVI-C,08H ! DeRC i | HLT = Answers to Odd-Numbered Problems 515 113 1s u.7. Hs, 516 Address Contents 200011 DBH 2001 12H 2002H H 2003H ol 20044 CAH 200SH OOH 200641 20H 2007H DBH 2008H Ol 2009H 32H 200AH OOH 200BH 40H 200CH 76H Address Contents 20008 OH 2001H 23H 2002H ODH 20034 OH 2008H1 on 2005H 20H 20064 CoH Label Loop: Address E100H EOI E102H 03H E10aH E10SH 06H E107 E108H E109H Address FO80H FOSIH FO82H FOS3H FO84H FO8SH FO86H FO87H FOssH FO89H POSAH Mnemonic MVI A.0SH CALL FO20H DCR A NZ LOOP RET Contents 3EH OSH CDH 20H FOH 3DH CH 02H EI con Contents 3EH 06H 32H 93H FOH con OH FOH 3H 93H FOH Answers to Odd.Numbered Problems CHAP. 12. FOSBH 3DH FO8CH 32H FOsDH 93H FOSEH FOH FOSFH OH FO0OH 85H FOvIH FOH Fos CoH Address Contents 200011 D3H 2001H os 2002H OEH 2008H 2H 200841 ODH 2005H OH 2006H O4H 2007H 20H 2008H 2FH 2009H oon 200AH 3H 200BH oH 200CH 20H 12-1, Mnemonic MVI A,00H MYIB.O1H MVIC,S9H MYID,02H MYL E,FIH ADDC ADD E MOV L.A MVI A.0OH ADC B ADD D. MOV HA HLT An alternative solution is, 123. Mnemonic MVIA.FIH ADIS9H MOV L.A MVLA.02H ACIOIH MOV HA, HLT Label Mnemonic LXI HAFFFH Loop: — INXH MOV B.M MOV AH 125, Label Loop: Label Loop: Apu aon 29, Late Memo MOV Ha xt srs SUL 40H LXIH4FFFH. Loon, NH NOV HLA mov AM CPI S3H cst MOV B08 AGAIN; | OUTZH MOvAL CALL OH Coren cau INZ.LO0e Dek 8 ~ JNZ AGAIN Novae Mocmoni corn Lx sP001 oe sive oH ‘MVIB.FFH CHAP. 14, 14-1. How you would accomplish your task INRA without a computer, 14-3. Branch. 14-5, The subroutine oer tp of i prog) acs eb mien lone tn CALA. FOLOH then be used many times. 14-7. Formula transation 125, Cratngs lvguage wich eal encase INZ LOOP ‘grammers to write by using what are considered “*correct' BLT programming practices. . CHAP. 15, 151. By i aes, 183, 1088.76 ne 15-5. The accumulator. 15-7. Registers are faster. Xen reper La theeay fp, ISD Nor ISIS DE Mov Ast Te bis, 1828, Nong They we alway nt 1827 our ai Now. 1529. his med AX and Ios wie With CALL ROH Bo appr al aed SH andn St Tower eed MOV AH AD) test Theinarcongnc 15.33 8 6 byts Coron Iz 100P CHAP. 16. 1641 Nong. 163. The rgin! mante Mov st Inde sccomuaor sath. 165.00. WET, reo coi th cme of he ¥ epee cern Te, NZ OOP STY. Tet Ol 161s 16. 16s Cla cunaler a on 16-19. 76, 16-21. It copies the contents of register C to register B. 16-23. STA aaaa [LD (aaaa).A]. 16-25. DEBUG. 16-27. Register or memory. 16-29. DL. 16- 31. The contents of memory location 4456,,. 16-33. It stands for assemble and it translates 8088/8086 mnemonies into machine code, 16-35. It executes one instruction and then displays the current values of all registers and stops. Answers to Odd-Numbered Problems 517 4822 :0104 = 190 103 9522:0100 3385 522:0402 8809 Ax-0000 Bx-0000 Ds=9522_BS-9522 9522:0300 B38 ax-o000 Bx-0089 Ds=ase2 _ES=9522 a ax=0000 BY: ps=9522 ES=9522 D400 mov BL,89 0b02 nov CL,BL HOV. BL, a9 NOY. CL,BL ex=o000 Dx=! 8-952 CS= Mov cx=oo09 x= cs=! S5=95 nov cx-089 Dx sS-9522 CS=* ono0 sP=aDDE 522 1P=0100 BL, 84 oon si 3522 1 cL, BL 0000 sP=aDDE g522 1P=0304 Be=9900 si=0000 pr=co00 NV UP EI PL, NZ NA PO NC pp-ougo si=900n pr=0000 NY UP BT PL NZ NA PO NC sp=0000 si-0000 pr=0000 WY UP EI PL NZ NA PO NC Note: Answers to Chapters 18 t0 23 are in the teacher's manual 518 Answers to Odd-Numbered Problems

Anda mungkin juga menyukai