Sei sulla pagina 1di 38

+Exercise of Ch. 2 and Ch.

9
Group :
o Dahlia Canny
o Fitriyanti Nur Aisyah
o Ketut Vanda Aryanthera Wisnu Nadia
o Pina Hariyanti
+

The Microprocessor
and Its Architecture
Chapter 2
+
1. What are program-visible
register?
Program visible register are the registers that are
directly used in an instruction

The program visible registers are registers that can be


specified in instructions.

Program visible register adalah register yang dapat


dispesifikasikan didalam instruksi tertentu sehingga
register ini dapat langsung digunakan didalam
instruksi.
+
2. The 80286 addresses
registers that are 8 and ___ bits
wide
Answer : The 80286 addresses
registers that are 8 and 16 bits
wide.
+
3. The extended registers are
addressable by which
microprocessors
Answer : EAX, EBX, ECX, EDX, ESP,
EBP, EDI, and ESI are available only
in the 80386 and above
+
4. The extended BX register is
addressed as ___
Answer : EBX is addressable as
EBX, BX, BH, or BL.
+
5. Which register holds a count
for some instructions?
Answer : CL, CX, ECX.
ECX adalah register general purpose yang juga
menangani perhitungan di beragam instruksi.
Shift dan rotate menggunakan register CL
sebagai penghitung.
String yang berulang menggunakan CX.
Instruksi LOOP/LOOPD menggunakan register
CX atau ECX.
+
6. What is the purpose of the
IP/EIP register?
Answer : The instruction pointer, which
points to the next instruction in a
program, is used by the microprocessor
to find the next sequential instruction in
a program located within the code
segment. The instruction pointer can be
modified with a jump or a call instruction
+
7. The carry flag bit is not
modified by which arithmetic
operations?
Answer : INC and DEC
Instruksi INC dan DEC tidak akan
memodifikasi/mengubah carry flag,
meskipun INC dan DEC adalah instruksi
aritmatika.
+
8. Will an overflow occur if a
signed FFH is added to a signed
01H?
Ans : No, the overflow will not occur.

A+B A = 01H, B = FFH ; A = +1, B =


-1
A = 0000 0001
B = 1111 1111
+ = 1 0000 0000
A+B = 0H
+
9. A number that contains 3 one
bits is said to have _________ parity

Ans : Odd

Bit Parity merupakan bit tambahan yang disisipkan


pada urutan bit-bit data yang ditransmisikan.

Berdasarkan jumlah bit-bit 1 pada urutan bit yang


disertainya, bit parity dibagi menjadi 2 jenis :
Odd Parity (Parity Ganjil) : jika jumlah bit 1 dan bit
parity-nya adalah ganjil.
Even Parity (Parity Genap) : jika jumlah bit 1 dan bit
parity-nya adalah genap.

Sehingga berdasarkan soal apabila sebuah angka


memiliki 3 1 bit, maka hal tersebut merupakan jenis
odd parity.
+
10. Which flag bit controls the
INTR pin on the
microprocessor?
Ans : The I (interrupt) flag bit controls
the operation of the INTR (interrupt
request) input pin.
+
11. Which microprocessors
contain an FS segment
register?
Ans : The 80386 through core 2
The FS and GS segment register are
supplemental segment register available
in 80386 and above microprocessor to
allow two additional memory segment
for access by program.
+12. What is the purpose of a segment
register in the real mode operation of
the microprocessor?
Ans : The segment register addresses
the lowest address in a 64K memory
segment.To serve as a pointer to the
current memory segment being
addressed. This enables the processor to
make use of multiple memory segments.
+
13. In the real mode, show the starting and
ending addresses of each segment located by
the following segment register values: .....
A) 1000H 10000H1FFFFH

Starting Address : 10000H

Ending Address : 10000H + FFFFH = 1FFFFH

B) 1234H 12340H2233FH

Starting Address : 12340H

Ending Address : 12340H + FFFFH = 2233FH

C) 2300H 23000H32FFFH

Starting Address : 23000H

Ending Address : 23000H + FFFFH = 32FFFH


+13. In the real mode, show the starting and
ending addresses of each segment located by
the following segment register values: .....

D) E000H E0000HEFFFFH

Starting Address : E0000H

Ending Address : E0000H + FFFFH = EFFFFH

E) AB00H AB000HBAFFFH

Starting Address : AB000H

Ending Address : AB000H + FFFFH = BAFFFH


+14. Find the memory address of the next
instruction executed by the microprocessor,
when operated in the real mode, for the
following CS:IP combinations: .....
A) CS = 1000H and IP = 2000H
Ans : (1000H x 10) + 2000H = 12000 H

B) CS = 3456H and IP = ABCDH


Ans : (3456H x 10) + ABCDH = 3F12DH

C) CS = 1A00H and IP = B000H


Ans : (1A00H x10) + B000H = 25000H
+14. Find the memory address of the next
instruction executed by the microprocessor,
when operated in the real mode, for the
following CS:IP combinations: .....
D) CS = 2300H and IP = 1A00H
Ans : (2300H x 10) + 1A00H = 24A00H

E) CS = 2000H and IP = 1000H


Ans : (2000H x 10) + 1000H = 21000 H
+
15. Real mode memory addresses allow access to memory below which memory address?

Answer :
Real
mode memory addresses allow access to
memory below 100000H
+16. Which register or registers are used as an
offset address for the string instruction
destination in the microprocessor?

Answer :

Register yang digunakan sebagain offset address pada


string instruction destination pada microprocessor adalah
Extended Destination Index Register

Index Register biasanya digunakan untuk menunjukkan


alamat sebuah data di lokasi memori pada operasi string
+17. Which 32-bit register or registers are
used to hold an offset address for data
segment data in the Pentium 4
microprocessor?
Answer :

Register yang biasa digunakan untuk offset address


pada data segment di microprocessor Pentium 4 adalah
EAX (Extended Accumulation Register), EBX (Extended
Base Register), ECX (Extended Counter Register), EDX
(Extended Data Register), EBP (Extended Base Pointer),
ESI (Extended Source Index), dan EDI (Extended
Destinetion Index)
+ 18. The stack memory is addressed by a combination of the _________ segment
plus _________ offset

Answer :

The stack memory is addressed by a combination of the SS segment plus


SP or BP offset

SS Stack Segment mengandung data dan return addresses dari


prosedur dan subrutin. Stack segment register menyimpan starting
address dari stack

SP Stack Pointer atau SP register menyediakan offset value dalam


program stack. SP berasosiasi dengan SS register menjadi current
position dari data atau address dalam program stack

BP Base Pointer atau BP membantu dalam mereferensikan parameter


variable yang melewati subrutin. Address dalam SS register di gabung
dengan offset dalam BP untuk mendapatkan lokasi dari parameter
+19. If the base pointer (BP)
addresses memory, the _________
segment contains the data
Answer :

If the base pointer (BP) addresses memory, the stack


segment contain the data

Base Pointer (BP) biasa dipasangkan dengan Stack


Segment untuk mendapatkan menunjukkan alamat
sebuah data di suatu lokasi memori.
+ 20. Determine the memory location
addressed by the following real mode 80286
register combinations:....

a. DS = 1000H and DI = 2000H

Ans : (1000H x 10) + 2000H = 12000H

b. SS = 2900H and SP = 3A00H

Ans : (2900H x 10) + 3A00H = 21002H

c. DS = A000H and BX = 1000H

Ans : (A000H x 10) + 1000H = 26200H

d. SS = 2300H and BP = 3200H

Ans : (2300H x10) + 3200H = A1000H


+21. Determine the memory location
addressed by the following real mode
Core2 register combinations:....

a. DS = 2000H and EAX = 00003000H

Ans : (2000 x 10) + 3000 = 23000H

b. DS = 1A00H and ECX = 00002000H

Ans : (1A00 x 10) + 2000 = 1C000H

c. DS = C000H and ESI = 0000A000H

Ans : (C000 x 10) + A000 = CA000H


+21. Determine the memory location
addressed by the following real mode
Core2 register combinations:....

d. SS = 8000H and ESP = 00009000H

Ans : (8000 x 10) + 9000 = 89000H

e. DS = 1239H and EDX = 0000A900H

Ans : (1239 x 10) + A900 = 1CC90H


+

8086/8088 Hardware
Specifications
Chapter 9
+
7. Explain the operation of the
TEST pin and the WAIT instruction
+
7. Explain the operation of the
TEST pin and the WAIT instruction
Pin TEST adalah pin input yang di test oleh WAIT instruction.

Saat TEST berlogika 0, fungsi instruksi WAIT akan NOP (No


Operation).

Saat TEST berlogika 1, instruksi WAIT akan dieksekusi dan


menunggu pin TEST menjadi logika 0.

Pin TEST biasanya dihubungkan dengan 8087.

Instruksi NOP, artinya instruksi ini tidak mengizinkan prosesor


untuk melakukan operasi apapun, atau do nothing.

Instruksi WAIT akan menyebabkan prosesor menunggu


penyelesaian sinyal yang dilakukan oleh co-prosesor. Atau
dengan kata lain, WAIT instruction akan meng-hold operasi
prosesor hingga logika pin TEST menjadi 0. Oleh karena itu,
prosesor akan tetap pada kondisi idle hingga TEST berlogika 0.
+
9. What mode of operation is
selected when MN/MX is
grounded?
Answer : Maximum mode operation.
Untuk mendapatkan Maximum mode
operation dengan menggunakan
coprocessor eksternal, maka pin MN/MX
dihubungkan ke ground
Sebaliknya, Minimum mode operation
akan didapatkan dengan menghubungkan
MN/MX langsung ke +5.0V.
+
18. By what factor does the 8284A
clock generator divide the crystal
oscillators output freq?

Answer : Ketika F/C berlogika 0,


output oscillator diarahkan menuju
divide-by-3 counter. Sehingga,
faktor pembagi frekuensi output
Kristal oscillator pada 8284A
generator clock adalah 3
+
29. If the CLK input to the
8086/8088 is 4MHz, how long is one
bus cycle?
Pada umumnya, bus-cycle dari
prosesor 8086/8088 terdiri dari 4
clock cycles. Maka, durasi bus-cycle
= 4 x T = 4 / f = 4 / 4MHz
= 1 microsecond.
+
29. Briefly describe the
purpose of T1, T2, T3, T4, and Tw
T1 : Awal dari bus cycle. Alamat lokasi memori atau i/o
dikirimkan via bus address dan koneksi address/data bus.
Selama T1, mengatur sinyal control agar memberikan nilai
yang dibutuhkan/diinginkan agar ALE,DT/R dan IO/M
(8088) atau M/IO (8086) agar memberikan address yang
valid ke address bus.

T2 : mikroprosesor 8086/8088 memunculkan sinyal RD


atau WR, DEN dinyatakan dan pada kasus write, data
yang akan dituliskan akan muncul pada data bus. DEN
mengaktifkan buffer data bus untuk mengkoneksikan CPU
ke data bus eksternal. Input READY ke CPU di-sampling
pada ujung T2, dan jika READY logika 0, state wait (Tw) di
selipkan sebelum T3 dimulai.
+
29. Briefly describe the
purpose of T1, T2, T3, T4, and Tw
T3 : Pada periode ini memori diizinkan untuk
mengakses data. Jika bus cycle adalah read cycle, data
bus akan di-samplig pada ujung/akhir T3

T4 : Semua sinyal bus di nonaktifkan guna persiapan


untuk siklus clock selanjutnya. Prosesor 8088 telah
selesai melakukan sampling data pada periode ini.

Tw : periode clock tambahan apabila waktu


pengaksesan divais memori membutuhkan waktu yang
lama dari waktu yang sudah dikalkulasikan.
+
29. Briefly describe the
purpose of T1, T2, T3, T4, and Tw
+
35. If the READY pin is
grounded, it will
introduce___states into the bus
cycle
If the of the 8086/8088
READY pin is grounded, it will
introduce wait states into the bus
cycle of the 8086/8088.
Jika pin READY berlogika 0,
mikroprosesor akan memasuki ke wait
state dan akan tetap idle.
Jikapin READY berlogika 1, tidak akan
menimbulkan efek apapun pada
mikroprosesor
+
38. Contrast minimum and
maximum mode 8086/8088
operation
Minimum mode operation

Cara yang paling tidak mahal untuk mengoperasikan


mikroprosesor 8086/8088. Lebih murah dikarenakan
semua sinyal control untuk memori dan I/O dihasilkan
oleh mikroprosesor. Sinyal control yang dihasilkan
identic dengan sinyal control Intel 8085A.

Mengizinkan 8085A 8 bit menjadi perangkat tambahan


bersama 8086/8088 tanpa diperlukannya
pertimbangan khusus.
+
38. Contrast minimum and
maximum mode 8086/8088
operation
Maximum mode operation

Beberapa sinyal control harus dihasilkan diluar


mikroprosesor. Hal ini membutuhkan controller bus
eksternal ( bus controller 8288)

Maximum mode digunakan hanya ketika sistem


memuat coprocessor eksternal seperti coprosesor
aritmatik 8087.

Potrebbero piacerti anche