global _start
section .data
str: db "...q...z...b...c"
strLen: equ $-str
section .text
_start:
mov eax, 0+str
auessereschleife:
mov ebx, eax
innereschleife:
inc ebx
inc ebx
inc ebx
inc ebx
mov edx, [ebx]
cmp [eax], edx
jle ueberspringe
mov edx, [ebx]
mov ecx, [eax]
mov [ebx], ecx
mov [eax], edx
ueberspringe:
cmp ebx, str+strLen
jl innereschleife
inc eax
inc eax
inc eax
inc eax
cmp eax, str+strLen
jle auessereschleife
mov edx, strLen
mov ecx, str
mov ebx, 1
mov eax, 4
int 80h
mov ebx, 0
mov eax, 1
int 80h