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 - Python Tutorial
From the course: Learning Assembly Language
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Setting up a program skeleton4m 27s
-
(Locked)
Understanding registers and memory8m 5s
-
(Locked)
Data types3m 18s
-
(Locked)
Using data structures6m 13s
-
(Locked)
The move and exchange instructions7m 22s
-
(Locked)
Extended move instructions3m 44s
-
(Locked)
Logical or bitwise operators5m 40s
-
(Locked)
Arithmetic operators5m 12s
-
(Locked)
Controlling the assembler flow5m 22s
-
(Locked)
Indirect addressing and pointers4m 50s
-
(Locked)
Console Input and output4m 47s
-
(Locked)
Challenge1m 24s
-
(Locked)
Solution4m 20s
-
-
-
-
-
-