This is Dr. Miller and this is the
model one review for assembly.
So I ask questions and then you
can pause the lecture and try
and answer the question
and then resume the lecture
and see what the answer is.
So the first question, what does the
pneumonic and what is an upper end?
So pneumonic is an instruction to be
executed and an upper end
is a parameter to the instruction.
So, for example, in the instruction
movie 10 H,
the mnemonic is move
and the upper ends are X
and ten.
Those are the parameters of what's
going to get changed.
What are the smaller versions of the
SBX register?
They are Becs, which is the lower
half of SBX, B.L.
and B.H., B.L.
is the lower half of B, X
and B is the upper half of B
X.
What are the names of the 32 bit
registered? We have talked about in
class, there are quite a few.
X, X, X,
X, ISI, Eddi,
SBP, IP and E.S.P,
we've talked about some of them
extensively.
We will talk about some more in
Future Lecture's.
Well, register is used for the loop
mnemonic.
X, X
is recommended and then compared
with zero.
So how would you do the following
shift data to the right?
For example, S.H., are is
the shift pneumonic and then we're
moving X and then the number to.
Arithmetic shift to the left.
S A-L shift arithmetically
left in this example, SBX
and the number three to three
bits to the left
multiply.
We can move numbers into X
and SBX and then we say mall
SBX, and so I will multiply
the value in X times the value
in Ebix and then store
the result in X and X.
Copy data from a registered to
memory.
So here we have the
memory location called data, it
is a D word, it has a value of zero
and lower down in the code.
We move into the number ten
and then using the brackets
that says we're going to copy into
the memory location at data.
Comparison looping.
So how would you check for a quality
and then selectively do a command?
So, for example, if
and X and Ebix are equal,
then will move seven into SBX.
So here we do a comparison, compare
yaks and SBX if they're
not equal. We'll jump over it.
If they are equal, then we'll do the
command move.
Ebix seven.
All right, right, Elliptic, that
goes SBX number of times
and we'll end up calculating the
power of two to the Ebix
and then store the result in X.
So here I move an arbitrary value
into SBX.
So that's the ABCs number of times.
We'll start off with the number one
and then Essi has the number two
and then we'll keep multiplying
X and Essi.
So two times one that
gives you two, which is sort of an
X and in times two is four.
And then we have to copy into X
because that's how we can use loop,
we have to call it P, the value Ebix
into that register
and then the loop command will work
and so it'll go over and over and
over again.
All right, so here is a shift,
so if we move into the number
one, two, three, four, five, six,
seven, eight in Hecks and we do
a rotate right.
Yak's for.
So Rotate takes the bits off
of one end and puts them on the
other so we can see that we'd have
the eight would move from over
here to over here because
these are in Hex, which are four
bits, and we rotated it by
four bits.
All right, shift left for
again, we have an X one,
two, three, four, five, six, seven,
eight in X.
So in this case, the one disappeared
because that was four bits, and then
we fill in the end with two zeroes
or the number zero in hex.
All right, so this was
a quiz and a review
to try and help you make sure that
you are understanding the content,
if you didn't, I'd go back and
review the lectures that we've given
before.
If you still have questions.
Again, you can contact me at Miller,
M.J. at Uncracked Edu,
and you can find me on Twitter.
Millas 30.