archive mirror
 help / color / mirror / Atom feed
From: DervishD <>
To: immortal1015 <>
Cc: "" <>
Subject: Re: A newbie's question
Date: Thu, 26 Sep 2002 18:14:24 +0200	[thread overview]
Message-ID: <20020926161424.GF47@DervishD> (raw)
In-Reply-To: <>

    Hi unknown :)

> 	rep
> 	movw

    In my bootsector.S, it's movsw: repeat move (string) by words.
'movw' is 'mov word size operands'.

> 	jmpi	go,INITSEG

    AFAIK, the correct is 'ljmp': long jump. What kernel sources are
you seeing?. Old kernels (2.0 and I think that 2.2 too) used as86 to
do the assembling, and the syntax was like the Intel one, but with
some differences. Not quite standard, I think.

> /////////////////////////////
> 1. What assembly language used in boot.s? Intel Asm or AT&T?

    AT&T in new kernels, fully 'assembleable' with GNU as. IMHO is a
better syntax, but I don't want to feed a troll here ;)

> 2. Where is the definition of operand movw and jmpi?
> I cant find it in the Intel Manual.

    Of course, there aren't Intel syntax anyway :) I recommend you to
see the 2.4 sources for reading the assembler part. Moreover, the
info section for 'GNU as' comments the differences between Intel
assembly syntax and the AT&T one. This will be of great help.

    In addition to this, I have a document about using GNU as for
real mode assembly that comments some of these points. But it is
written in spanish only :((

    Last, the Assembly-HOWTO will cast some light to the issue, too.


      parent reply	other threads:[~2002-09-26 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 14:52 A newbie's question immortal1015
2002-09-26 15:22 ` jbradford
2002-09-26 16:14 ` DervishD [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020926161424.GF47@DervishD \ \ \ \

* 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).