13 hours 15 minutes
This is Dr Miller, and this is the Model one review for Assembly.
So I'll ask questions. And then you can pause a lecture and try and answer the question
and then resume the lecture and see what the answer is.
So the first question, What is a demonic and what is an operator and
so pneumonic is an instruction to be executed and in operandi is a parameter to the instruction.
So, for example, in the instruction movie a X 10 h,
the pneumonic is move
and the operations are E X and 10.
There's the parameters of what's going to get changed.
What are the smaller versions of the EBX register?
They are be X, which is the lower half of EBX
B l and B H B L is the lower half of B X
and B H is the upper half of B X.
What are the names of the 32 bit registers we have talked about in class? There are quite a few
e x e b x s e x e x Yes, I e d i e v p e i, p and E S p.
We've talked about some of them extensively. We will talk about some or in future lectures.
What register is used for the loop Pneumonic
E C X
e C X is documented and then compared with zero.
So how would you do the following
shift data to the right.
For example, s H R is the shift pneumonic and then we're moving a X and then the number two
arithmetic shift to the left
s A l shift arithmetic left in this example EBX and then number three So three bits to the left
We can move numbers into yea x and ebx and then we say mall ebx and slalom multiplied the value any X times the value in E b X
and then store the result in e, d. X and e X
copy data from a register 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 yea X the number 10 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 equality and then selectively do a command. So, for example,
if he, A and E x and EBX are equal, there will move seven into EBX.
So here we do a comparison compared yea x and ebx, if they're not equal, will jump over it. If they are equal, then we'll do the command. Move E B x seven
Alright, right in lieu pick that goes db X number of times
and we'll end up calculating the power of to to the ebx
and then store the result in e X.
So here I move on arbitrary value into EBX. So that's the e B X number of times
we'll start off with the number one and then yes, I has the number two
and then we'll keep multiplying
yaks and es I so two times one that gives you two, which is stored in the X and in times two is four
and then we have to copy into Easy X because that's how we can use loop. We have to call it p the value ebx 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 yea X, the number 12345678 in Hex. And we do a rotate right e x four.
So rotate takes the bits off of one end and put some on the other so we can see that we would have the eight would move from over here to over here because thes Aaron hex, which are four bits and we were rotated it by four bits.
All right, shift left. Yea x four again we have in the X 12345678
So in this case, the one disappeared because that was four bits. And then we fill in the end with zeros 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 MJ at you and Kate I e to you. And you can find me on Twitter at Milhouse 30
How to Use GDB (BSWJ)
The GNU Debugger (GDB) is one of the most commonly-used debugging tools in the world. ...
Certificate of Completion Offered
How to Use IDA (BSWJ)
The IDA is used throughout the IT and cybersecurity industries by exploit developers, vulnerability analysts, ...
Certificate of Completion Offered