微机原理与接口技术(楼顺天第二版)第一章习题解答 下载本文

微机原理与接口技术(楼顺天第二版)习题解答

第1章 数制与码制

1.1 答:(1) 0011 1010B (2)0100 0011.1010B (3) 5721D = 0001 0110 0101 1001B (4)11111.1100B (5)1011.01001100B (6)111111111B 1.2 答:(1)1001 0101B;

(2)11 0100 1011B; (3)1111 1111 1111 1101B;

(6)0100 0000 0001B

(4)0100 0000 10101B;(5)0111 1111B;

1.3 答:(1)78H = 120D = 0111 1000B (2)0A6H = 166D = 1010 0110B

(3)1000H = 4096D = 0001 0000 0000 0000H (4)0FFFFH = 65535D = 1111 1111 1111 1111B 1.4 答:(1)39D = 27H (2)299.34375D = 12B.58H (3)54.5625D = 36.9H 1.5 答:(1)10110.101B = 22.625D (2)10010010.001B = 146.125D (3)11010.1101B = 26.8125D。

1.6 答:(1)10100111B (2) 11111100B (3)1010000B

(4)19D9H (5)5796H (6)A4H

1.7 答:a=1011B=11D b=11001B=25D c=100110B =38D

(1)100100B = 36D

(2)10B = 2D

(3)1 0001 0011B=275D (4)1B 余1101B= 13D

1.8 答:(1)00000000B (2)11111111B (3)11111111B (4)11000111B 1.9 答:(1)原01010101B 补01010101B (2)原11010101B 补10101011B (3) 原01111111B 补01111111B (4) 原11111111B 补10000001B (5) 原01000000B 补01000000B (6) 原11000000B 补11000000B 1.10 答:(1)(00001111B)补 (2)(11111111B)补 (3)(01110101B)补 (4)(00000000B)补 (5)(11110001B)补 (6) (01111111B)补 (7)(10000000B)补(8)(01010000B)补

1.11 答:(1)1110B=14D (2)00001110B 进位舍弃 (3)10100000B=-96D 溢出 (4)11110010B=-14D (5)01100000B=96D 溢出 (6)11110010B=-14D

1.12 答:(1)57H-49H = 0EH (2)57H + 0B7H = 0EH (3)57H – 0B7H = 0A0H (4)0A9H + 49H = 0F2H (5)0A9H – 49H = 60H (6)0A9H – 0B7H = 0F2H

1.13 答:[-a]补 = 40H = 01000000B;[-b]补 = 0B8H = 10111000B;[-c]补 = 0CEH = 11001110B [a-b]补 = 78H = 01111000B,溢出;[a-c]补 = 8EH = 10001110B,无溢出

1.14 答:(1)01111100B (2)00011011B (3)00110011B (4)10100011B

(5)11101000B (6)10110111B (7)11010001B (8)11B

1.15 答:(1)a+b=8EH溢出,a-b=E0H未溢出 (2)8EH未溢出,E0H未溢出 (3)CEH未溢出,20H未溢出 (4)FEH未溢出70H未溢出 1.16 答:(1)[X+Y]补 = 3D6H,[X-Y]补 = 2BEH

(2)有符号数Y要进行符号位扩展成16位数据,为FF8CH [X+Y]补 = 2D6H,[X-Y]补 = 3BEH

1.17 答:(1)0011 0010 0101 0001B = 3251H (2)0001 0010 1001 0111B = 12907H (3)0010 0000 0000 0110B = 2006H

1.18 答:P7.

1.19 答:(1) 0011 1000B + 0100 0010B = 0111 1010B 低BCD码位需要加6修正 0111 1010B + 0000 0110B = 1000 0000B = 80BCD

(2) 0101 0110B + 0111 0111B = 1100 1101B 高、低BCD码位都需要加6修正 1100 1101B + 0110 0110B = 0001 0011 0011B=133BCD

(3) 1001 1001B+1000 1000B = 0001 0010 0001B 高、低BCD码位都需要加6修正

0001 0010 0001B +0110 0110B = 0001 1000 0111B=187BCD

(4) 0011 0100B + 0110 1001B = 1001 1101B 低BCD码位需要加6修正

1001 1101B + 0000 0110B = 1010 0011B 修正结果使高BCD码位需要加6修正 1010 0011B +0110 0000B = 0001 0000 0011B = 103BCD

(5) 00111000B-01000010B =(-1)1111 0110B 高 BCD码位需要减6修正 (-1)1111 0110B -0110 0000B =(-1)1001 0110B=-100+96=-4BCD (6)01110111B-01010110B = 0010 0001B = 21BCD

(7) 00011001B-01110110B =(-1)1001 1111B 高、低BCD码位都需要减6修正 (-1)1001 1111B -01100110B =(-1)0011 1001B = -100+39 = -61BCD (8)10001001B-00100011B = 0110 0110B = 66BCD 1.20 答:100.7625

110011.0101B = 51.3125D 10101.001BCD = 15.2D

22.4H = 34.25D

1.21 答:(1)45H,78H,61H,6DH,70H,6CH,65H,20H,31H

(2) 58H,69H,44H,69H,61H,6EH,20H,55H,6EH,69H,76H,65H,72H,73H,69H,74H,79H (3)2DH,31H,30H,38H,2EH,36H,35H,32H

(4)48H,6FH,77H,20H,61H72H,65H,20H79H,6FH,75H

(5)43H,6FH,6DH,70H,75H,74H,65H,72H

(6)49H,6EH,74H,65H72H,6EH,65H,74H,20H,57H,65H,62H

1.22 答:(1)48H,65H,6CH,6CH,6FH (2)31H,32H,33H,0DH,34H,35H,36H (3)41H,53H,43H,49H,49H (4)54H,68H,65H,20H,6EH,75H,6DH,62H,65H,72H