* print_int
@ 2002-05-08 7:10 ssams
0 siblings, 0 replies; only message in thread
From: ssams @ 2002-05-08 7:10 UTC (permalink / raw)
To: linux-assembly
i have code for printing integer, but no output i get.
can anybody help me..?
.data
angka:
.byte 0x32
.text
.globl mulai
mulai:
movl $angka,%eax
movb $10,%dh
ulang:
xorl %ecx,%ecx
div %dh
pushl %ecx
inc %edx
cmp $0,%eax
jne ulang
cetak:
popl %ecx
movl %eax,%ecx
addl $0x30,%ecx
movl $4,%eax
movl $1,%ebx
movl $3,%edx
int $0x80
movl $1,%eax
int $0x80
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-08 7:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-08 7:10 print_int ssams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).