WEB BLOG
this site the web



By : Gebriel Mostafa

Consider a hypothetical 24-bit processor machine having 24-bit instruction composed of 2 fields. The first 8 bits contains the opcode and the reminder an immediate operand or an operand address.


What is the maximum directly addressable memory space (in bytes)?


Kol instruction betb2a opcode we address

we hena 7add el opcode 8 yeb2a el address 7agmo 24-8=16

el opcode bib2a feeh noo3 el 3amlia (maslan darb aw gam3( we bib2a momsal be arkam)

el address bib2a feeh 3enwan el 3amlia de feen fe el memory(momsal be arkam bardo)


(nafs el fekra el fekra elli fe el so2al elli 2ablo)

3ndna 16 5ana 3shan yemlo el 3enwan

awl 3ewan maslan(el 3enwan bimosal be 3add binarey)

0000 0000 0000 0000

0000 0000 0000 0001

0000 0000 0000 0010

0000 0000 0000 0011

yeb2a e7na 3ndna 2^16 address momknieen we da the maximum
p.s. : el dr kan bidrbha ba3d ma netl3ha 2^16 fe 3 fatb2a =192kb

How many instructions can have that processor?

da m3nah kam 3amlia

el goz2 beta3 el opcode howa elli feeh noo3 el 3amlia

ye3eni 3la assaso bit7aded 3add el 3amlia

we kol 3amlia momasla be arkam

we howa hena 7agmo 8

yeb2a e7na ne2dar ne3mel 2^8 3amlia we aksa 7aga

yeb2a haishel 2^8


What is the maximum unsigned integer can be represented by that processor word?


edit :
aiwaaaa da ba2a nafs el fekra


e7na 3refna en 3add el 5anat el 3adadia lel instruction el momkna 24 5ana 3adadia lelinstruction kolha
8 lel opcode we 16 memorey

we e7na hena bentklem 3n el instruction kolha be opcodeha we be addressha

awl instruction haib2a kemtha maslan 0000 0000 0000 0000 0000 0000

bema enna bda2na el 3ad men el zero(ye3eni fe el ost3'omaia bi2lak 3ed le3ashra we bda2 men el sefr haib2a 25ro 9 3shan dool ba2o 10 thwani )

yeb2a el instruction el 25eer kemto[ (2^24) - 1 ]3shan da lama kol 5ana tegeb 2e5rha we el wa7ed nen2aso 3shan nafs fekret el 9 beta3et el ost3'omaia 3shan e7na bd2ana men el zero



How many bits are needed for the instruction register and memory address register?


da rage3 le ta3ref el IR=Instruction Register we el MAR=memorey address register


el mar betshel eh ???
betsheel el adress beta3 el 3amlia el gaya(instruction)
ye3ni to3tbar betshel el goz2 beta3 el address elli fe intruction
we el goz2 brta3 el address 3refna enno 16
yeb2a el mar betshel 6 3shan bardo el address beta3 el instruction bishel 16

el IR betshel noa3 el 3amlia
we no3 el 3amlia da bib2a mawgood fe el opcode
we el opcode 7agmha 8 3shan howa 2al keda fe el so2al
yeb2a el IR beyshel el opcode
ye3eni 7agmha zaiha ye3eni 8 bardo


By : Gebriel Mostafa

1 comments:

Anonymous said...

we thnx 3la tanbhak howa 3'alt matbe3ey bs

we eb2a 2oli ra2yak

Post a Comment

 

W3C Validations

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi dapibus dolor sit amet metus suscipit iaculis. Quisque at nulla eu elit adipiscing tempor.

Usage Policies