Soal
:
Buat
program pada komputer IAS sebgai berikut :
-
Kalikan
data di memori alamat 0551 dan data dimemori alamat 0552
-
Simpan
hasil perkalian tersebut dimemori (MSB di alamat 0556 dan LSB dialamat 0557)
-
Jumlahkan
data LSB hasil perkalian tersebut dengan isi memori 0553
-
Simpan
hasil penjumlahan tersebut di alamat 0559
-
Program
Counter ada dimemori 0011
1.
Buat
program komputer IAS nya
2.
Gambar
peta memori, perlihatkan isinya, dimana program dan data diletakkan
3.
Tulias
urutan instruction cyclenya
Jawaban
:
1.
Program
komputer IAS
2. Gambar peta memori
3. Instruction cycle
1.
Instruction cycle 1
Fetch 1 :
·
PC = 0011
·
PC → MAR
·
M(MAR) → MBR
·
MBR(20:39) → IBR
·
MBR(0:7) → IR : IR = LOAD to MQ
·
MBR(8:19) → MAR : MAR = 0551
Execute 1:
·
M(0551) → MBR : MBR = M(0551) = A
·
MBR → MQ : MQ = A
2.
Instruction cycle 2
Fetch 2 :
·
IBR (0:7) → IR : IR = MUL
·
IBR (8:19) → MAR : MAR = M(0552)
·
PC = PC + 1
Execute 2 :
·
M(0552) → MBR : MBR = MAR(0552) = B
·
MSB(MBR*MQ) → AC : AC = MSB(MBR*MQ)
LSB(MBR*MQ) → MQ : MQ = LSB(MBR*MQ)
3.
Instruction cycle 3
Fetch 3 :
·
PC → MAR : MAR = PC = 0012
·
M(MAR) → MBR : MBR = M(0012)
·
MBR(0:7) → IR : IR = STOR
·
MBR(8:19) → MAR : MAR = M(0556)
·
MBR(20:39) → IBR
Execute 3 :
·
AC → MBR : MBR = AC =
MSB(M(0552)*MQ)
·
MBR → M(MAR) : M(0556) = MBR
4.
Instruction cycle 4
Fetch 4 :
·
IBR (0:7) → IR : IR = LOAD MQ to AC
·
PC = PC + 1
Execute 4 :
·
MQ → AC : AC = MQ =
LSB(MQ*M(0552))
5.
Instruction cycle 5
Fetch 5 :
·
PC → MAR : MAR = PC = 0013
·
M(MAR) → MBR : MBR = M(0013)
·
MBR(0:7) → IR : IR = STOR
·
MBR(8:19) → MAR : MAR = M(0557)
·
MBR(20:39) → IBR
Execute 5 :
·
AC → MBR : MBR = AC = LSB(M(0552)*MQ)
·
MBR → M(MAR) : M(0556) = MBR
6.
Instruction cycle 6
Fetch 6 :
·
IBR (0:7) → IR : IR = ADD
·
IBR (8:19) → MAR : MAR = M(0553)
·
PC = PC + 1
Execute 6 :
·
M(0553) → MBR : MBR = MAR(0553) = B
·
MBR + AC → AC
7.
Instruction cycle 7
Fetch 7 :
·
PC → MAR : MAR = PC = 0014
·
M(MAR) → MBR : MBR = M(0014)
·
MBR(0:7) → IR : IR = STOR
·
MBR(8:19) → MAR : MAR = M(0559)
Execute 7 :
·
AC → MBR : MBR = AC
·
MBR → M(MAR) : M(0559) = MBR
0 komentar:
Posting Komentar