Вывод числа

.globl _start
.text
_start: 
	xorl	%esi,%esi
	movl	$int,%eax 
loop:
	movl	$0,%edx
	movl	$10,%ebx
	divl	%ebx            
	addb	$48,%dl
	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

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