From: Maciej Hrebien <m_hrebien@wp.pl>
To: linux-assembly@vger.kernel.org
Subject: Re: looping_code
Date: Mon, 26 Aug 2002 16:59:20 +0200 [thread overview]
Message-ID: <3D6A4248.680E5EDE@wp.pl> (raw)
In-Reply-To: web-43200817@m1.plasa.com
ssams wrote:
>
> i really new in linux assembly. i want to know how i loop
> some code..?
> i feel it is different with tasm, i have try tasm way for
> looping but
> it was not run cleanly in gnu assembly. are there any body
> want to help me....?
I think it's NTG but lets see...
> by this code:
>
> .data
> msg: .byte 65,10
>
> .text
> .globl mulai
> mulai:
> mov $10,%edx
Why $10 if Your msg is two bytes long?
> ulang:
> mov $4,%eax
> mov $1,%ebx
> mov $msg,%ecx
> int $0x80
> loop ulang
>
> mov $1,%eax
> int $0x80
--
Maciej Hrebien
next prev parent reply other threads:[~2002-08-26 14:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-26 9:19 looping_code ssams
2002-08-26 14:59 ` Maciej Hrebien [this message]
2002-08-31 6:17 ` looping_code Scott Lanning
2002-08-31 15:05 ` looping_code Robert Plantz
2002-08-31 17:36 ` looping_code Scott Lanning
2002-08-31 15:51 ` looping_code Maciej Hrebien
2002-08-31 17:10 ` looping_code Robert Plantz
2002-09-01 9:21 ` looping_code Maciej Hrebien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D6A4248.680E5EDE@wp.pl \
--to=m_hrebien@wp.pl \
--cc=linux-assembly@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).