initial import
[staff/goc4/2018bti7061.git] / asm-5-programming / examples / flags / flags2.asm
1 ;;; File flags2.asm
2 ;;; Author: E. Benoist
3 ;;; Date: September 2, 2016
4 ;;; Compile with: make
5 ;;; Execute inside a debugger : ddd flags2
6
7 ;;; This program contains examples for the manipulation of data
8 ;;;
9
10 section .data
11 Snippet db "KANGAROO"
12 section .text
13 global _start
14 _start:
15 nop
16 ; Put your experiments between the two nops...
17 mov ebx,Snippet
18 mov eax,8
19 DoMore: add byte [ebx],32
20 inc ebx
21 dec eax
22 jnz DoMore
23 ; Put your experiments between the two nops...
24 nop