




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Classification of instructions, Comparison, Instruction formats, Memory accesses, Code size, Summary, Immediate Addressing Mode are topics professor discussed in class.
Typology: Slides
1 / 28
This page cannot be seen from the preview
Don't miss anything!
1
2
specifies the two source
operands, the destination
operand and the address of the
next instruction
op code destination source 1 source 2 next address
4
one operand with the result
op code destination source 1
source 2
5
dedicated CPU register, called
the accumulator, to hold one
operand & the result –No address
is needed to specify the
accumulator
op code source 2
7
As an example assume:
code
space is 16 Mbytes
byte
8
parameters to compare the five
instruction formats mentioned before
10
1 byte 3 bytes 3 bytes 3 bytes
op code destination source 1 source 2
11
op code destination source 1
source 2
1 byte 3 bytes 3 bytes
13
1 byte
op code
14
16
the instruction itself
for n bit fields, -2^(n-1) to +(2^(n-1)-1)
17
Example: lda 123 ***
Op code 123 Memory
No memory access needed
data
:
:
:
:
19
Opcode 123
Address of pointer
Address of data
data
20
Example: lda R
Op code address of R
Address of data
data
Memory
:
:
:
:
No memory access needed