본문 바로가기
C++ 200제/코딩 IT 정보

어셈블러, LOC HEX 변환, 멀티플러 등 컴구조 챕터6 해답

by vicddory 2017. 12. 13.

컴퓨터구조 연습문제 해답 [모리스 마노 6 챕터]



컴퓨터구조 연습문제, 모리스 마노 챕터6 33[모리스마노] 컴퓨터구조 연습문제 33p



6-3. A more efficient compiler will optimige the machine code as follows.


컴퓨터구조 연습문제, 모리스 마노 챕터6 34[모리스마노] 컴퓨터구조 연습문제 34p


6-4. A line of code such as : LDA I is interpreted by the assembler(Fig, 6-2). as a two symbol field with I as the symbolic address.


A line of code such as : LDA I I is interpreted as a three symbol field. The first I is an address symbol and the second I as the Indirect bit.


Answer : yes, it can be used for this assembler.


6-5. The assembler will not detect an 《ORG or END》 if the Fig 6-1. Such a label has no meaning and constitutes an error. To detect the error, modify the flow chart of Fig. 6-1.



컴퓨터구조 연습문제, 모리스 마노 챕터6 35[모리스마노] 컴퓨터구조 연습문제 35p

컴퓨터구조 연습문제, 모리스 마노 챕터6 36[모리스마노] 컴퓨터구조 연습문제 36p



6-12 (a). The program counts the number of I'5 in the number stored in location WRD. Since WRD=(62C1)16 = (0110 0010 1100 0001)2 number of I'S is 6; so CTR will have 



컴퓨터구조 연습문제, 모리스 마노 챕터6 37[모리스마노] 컴퓨터구조 연습문제 37p


컴퓨터구조 연습문제, 모리스 마노 챕터6 38[모리스마노] 컴퓨터구조 연습문제 38p


6-15. The first time the program is executed, location CTR will go to 0. If the program is executed again starting from location (100) 16. location CTR will be incremented and will not reach 0 until it is incremented 2 16 = 65,536 times, at which time it will reach 0 again.


We need to initialige CTR and P as follows.


컴퓨터구조 연습문제, 모리스 마노 챕터6 39[모리스마노] 컴퓨터구조 연습문제 39p

컴퓨터구조 연습문제, 모리스 마노 챕터6 40[모리스마노] 컴퓨터구조 연습문제 40p




컴퓨터구조 연습문제, 모리스 마노 챕터6 41[모리스마노] 컴퓨터구조 연습문제 41p




컴퓨터구조 연습문제, 모리스 마노 챕터6 42[모리스마노] 컴퓨터구조 연습문제 42p

컴퓨터구조 연습문제, 모리스 마노 챕터6 43[모리스마노] 컴퓨터구조 연습문제 43p


컴퓨터구조 연습문제 해답 [모리스 마노 6 챕터]

댓글