initial import
[staff/goc4/2018bti7061.git] / asm-5-programming / examples / move / move3.asm
1 ;;; File move.asm
2 ;;; Author: E. Benoist
3 ;;; Date: September 2, 2016
4 ;;; Compile with: make
5 ;;; Execute inside a debugger : ddd move3
6
7 ;;; This program contains examples for the MOV instruction.
8 ;;; You can see in a debugger what happens inside the registers.
9 ;;; It does not terminate properly
10 ;;; Neither does it do anything,
11 ;;; It is used to test functions in the debugger.
12
13 section .data
14 EatMsg db "Eat at Joe's"
15 section .text
16 global _start
17 _start:
18 nop ; Put your experiments between the two nops
19 mov rcx, EatMsg ; copy the address
20 mov rdx, [EatMsg] ; Copy 64 first bits of the message
21 nop ; Put your experiments between the two nops