I've been looking around online a little bit at assembly tutorials and have been flipping through Art of Assembly as well.
I keep getting hung up on one thing when changing segment registers though.
I see code like:
mov ax, cs
mov ds, ax
mov es, ax
Why can't I just compress this to:
mov ds, cs
mov es, cs
Is the first way faster since its using the accumulator register? But that wouldn't seem intuitive since cs and ds are segment registers. Or is there some restriction that I'm unaware of?
I'm using nasm by the way.