PlayGround

.globl _start
.text
_start: 
xorl %esi,%esi
movl $int,%eax 
loop:
movl $0,%edx
movl $10,%ebx
divl %ebx            
addb $48,%dl
/*movl	$sym,%ecx
movb %dl,(%ecx)*/
pushq	%rdx
incl %esi            
cmpb $0,%al
jnz   loop
next:
movl	$sym,%ecx
popq	(%rcx)
testl %esi,%esi
jz   exit
decl %esi
movl $4,%eax
movl $1,%ebx
movl $2,%edx
int  $0x80
jmp  next
exit:
movl $1,%eax
int $0x80
.data
int=1234
sym: .quad 0x0

playground/playground.txt · Последние изменения: 14/04/2011 15:30 — arabusov
CC Attribution-Noncommercial 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0