So, let's say I'm working with the registers %rax and %rdi.
As a basic example, let's say %rax is equivalent to 0xaaaaaaaaaaaaaaaa and %rdi is equivalent to 0xbbbbccccddddeeff.
Something simple like movq %rdi, %rax is simple enough to me. We simply move the value in %rdi into %rax.
So, say we have the following:
movq %rdi, %rax
movb %dil, %al
The first instruction would have %rax equal 0xbbbbccccddddeeff.
But I'm not sure how I would determine the value of %rax after the second instruction is implemented due to the fact that we are using the 8-bit versions of %rdi and %rax.
I'm very new to assembly language and there are quite a few things I'm pretty confused about. I've been doing a lot of research and studying up on it, but I'm still pretty lost, so I thought asking a clarifying question here would help me out. Any explanation on how to approach this would be greatly appreciated!