initial import
[staff/goc4/2018bti7061.git] / asm-5-programming / examples / flags / flags.asm
CommitLineData
462e967d
CG
1;;; File flags.asm
2;;; Author: E. Benoist
3;;; Date: September 2, 2016
4;;; Compile with: make
5;;; Execute inside a debugger : ddd flags
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
13section .data
14
15section .text
16 global _start
17_start:
18 nop ; Put your experiments between the two nops
19 mov eax, 0FFFFFFFFh
20 mov ebx, 02Dh
21 dec ebx
22 inc eax
23
24 nop
25 ;; A first loop
26 mov eax, 5
27DoMore: dec eax
28 jnz DoMore
29
30 nop ; Put your experiments between the two nops