From the course: Learning Assembly Language

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The move and exchange instructions

The move and exchange instructions - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

The move and exchange instructions

- [Instructor] Let's take a look at some of the move instructions we can use in GoASM. Remember, as we look at these instructions, the GoASM uses a flat memory model, so we don't need to use what's known as a segment register in our code. We've already seen the basic move instruction. We can use move for a variety of register, memory and immediate operations. The move instruction is coded with the destination followed by the source. We can move from register to register. So we might code move EAX, ESI. We can move to or from memory. So we might code move EAX, quantity, move quantity, EAX. We can also move values directly into registers and memory. So we can code move al with 02F hexadecimal or move W quantity 13. Note in this case that we need to specify the destination data size because the size of an immediate value is ambiguous. So we proceed the bracket with a W. I've got some new guide and classic console…

Contents