Welcome back.
Now we are going to try this in our debugger.
So the first type is move from the immediate to register.
So open your template tool.
I have it done here already.
So the first one.
So we type spacebar move, write register.
We choose - and immediate.
Maybe we give a value of 12 in hex.
So we put a breakpoint and run step over.
So this - here.
So we step over this.
We notice now there's a value 12 in -.
The second type is to move immediate to memory.
So let's choose a memory. Select dump one, memory map, VSS.
Go to this address.
We are going to move an immediate value to this location in the memory.
So you right-click on this address and copy it.
And now we type move.
I then put the keyword prefix and the pointer prefix,
square bracket, the hex prefix,
paste the address, close it, and specify an immediate value.
Hex 34, for example.
So let's run over that now and watch this address.
Step over.
And now you see three four has been moved to this address here.
Next is to move memory to register.
So we are going to move the value stored at this memory, which is three four,
move it into register -.
So let's try that.
So move.
Register -.
And here is your memory address again.
Keyword PTR, hex prefix, paste memory, and hit okay.
So now watch what happens to - when we step over that instruction.
So now three four has been copied from this memory address into -.
Then the last one.
The fourth one is to move from register to memory.
So for this, we are going to take whatever value is in - and move it to another location in memory.
Maybe this one.
So we right-click and copy this memory address.
And then we come back here and we type the move instruction, keyword PTR,
hex prefix, paste the memory we copied, and type here -.
Hit okay. Okay.
Take a look now at this location in memory as we step over this instruction.
So instead of all this, it copies the value one two into this memory location here.
So this is how we can use the four different types of move instructions inside our debugger.
That's all for this video.
Thank you for watching.