From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 581484ff for ; Mon, 28 Oct 2019 22:29:56 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 65AE29BC73; Tue, 29 Oct 2019 08:29:55 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7BBE49B5BF; Tue, 29 Oct 2019 08:29:42 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="rEkUAwqW"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 3F8BC9B5BF; Tue, 29 Oct 2019 08:29:39 +1000 (AEST) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by minnie.tuhs.org (Postfix) with ESMTPS id CC9519B57D for ; Tue, 29 Oct 2019 08:29:38 +1000 (AEST) Received: by mail-qk1-f172.google.com with SMTP id m125so6221164qkd.8 for ; Mon, 28 Oct 2019 15:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0h7ZDqUX5bnsvC6tLnUOg/0pC1J88o+raYcWzwE37gA=; b=rEkUAwqWFrVPcBjVjRzGjVnWZ63sY0skFT4SDmc/0S03dOL2bVuNjhkGf2NWKpA3yB 2CF2wIUbPWFSGqJHT2eCkPEOzV95sjNpjNCLrgxvOADxo0+9jIM4Qr0RhWvy7dnJf3Ja 1Py+i5CR/iPeJkafovIgd+CJhhwbyHHAXAyzpnlsaIQYbzUA/hZLUJ5S5+jeIMDS4GY0 w1w1qxV5YNpzyudE+gimOATldzU13fOQe/dKd2Twoz8cG5OsICE0G2TD409VCqpvd/2S AX8pToReR5gbvTxd1iuPOV2lcAAN6apVqGj+2VVaY+u5UuHHeFU1pp0JX/a3wiMDYif3 ub8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0h7ZDqUX5bnsvC6tLnUOg/0pC1J88o+raYcWzwE37gA=; b=hOWLUkYAmNWJj6lz5P2hTX/N9dTIxiQFLLxYO4ZIrYlUjJaWrZGIh4AtREQVcMbNhD tClcX0b+3YwVsSUrC1iJG/MtSoxca97FbZTThR4HsAqRsghyF2XIBMJ2NvL4j4FFuvKS C2++y4jVeF9IiFGffhtu5FUsUctAbnjWAf7Id32vhsUXSJFV1SUKJ4ejP17mGXIsrVH+ Ha6OURhPI8XYb30iWm5yjMvbB1xRvGzvq1hMqkcUzmQUCxZACMgsCMJJTQtw91Kc6FHE wd13GXJ7qnDnel+qcCwZVoxCGaNvhLz0I6MKasSYomBbHWhifh/DYbroQg65ekJ0CFHb o0YA== X-Gm-Message-State: APjAAAUAG9s8b28w7NCsAF5/5gwmqdtsVvh7CanMHMwSD2cZ/MY0bKS7 KcMESvSG65gkYjn65O6r2qjXGp4eQiv6EOs4n2Cx4YYKkrU= X-Google-Smtp-Source: APXvYqzHpQXnFxB+VXQMwPVRWd0n6UA4VYKkW2zKM+yQIffB0ZdilwDmeekZXCtXSdP4oGI1aawRvMNCJzlRvPUQU4A= X-Received: by 2002:ae9:c218:: with SMTP id j24mr13209775qkg.60.1572301777891; Mon, 28 Oct 2019 15:29:37 -0700 (PDT) MIME-Version: 1.0 References: <20191028200745.GA36348@fuz.su> <20191028222417.GA45136@fuz.su> In-Reply-To: <20191028222417.GA45136@fuz.su> From: Warner Losh Date: Mon, 28 Oct 2019 16:29:26 -0600 Message-ID: To: Robert Clausecker Content-Type: multipart/alternative; boundary="000000000000f387ee0596000817" Subject: Re: [TUHS] Design of the AT&T assembly syntax X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000f387ee0596000817 Content-Type: text/plain; charset="UTF-8" On Mon, Oct 28, 2019 at 4:24 PM Robert Clausecker wrote: > Hi Warner, > > On Mon, Oct 28, 2019 at 04:08:53PM -0600, Warner Losh wrote: > > VENIX 2.0 had this. It was a Pure AT&T syntax w/o % signs: > > > > eg > > | > > | VENIX/86 start off (bootstrap starts execution at location 0 `start'). > > | > > | Relocate complete kernel down to low memory. > > .text > > start: cli > > mov dx,#LOWMEM | base of relocated kernel > > mov cx,cs > > cmp cx,dx | are we there (put there by bootstrap) ? > > beq L0002 | Yes. > > mov ds,cx > > > > which is clearly op dst, src. > > op dst, src is Intel syntax. AT&T syntax has op src, dst like MACRO-11. > There are a number of other differences: (a) | instead of / or # as a > comment > character (b) different mnemonics (beq instead of je) and (c) # instead of > $ > as the comment character. > > Without seeing some more code, I'd say it's not AT&T syntax. > Doh! I've been mixing the two up since the 90s :(. Yea, this stuff isn't AT&T syntax... It's from a compiler from MIT... I should have taken the hint that it used MIT sequence :) Warner --000000000000f387ee0596000817 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Oct 28, 2019 at 4:24 PM Rober= t Clausecker <fuz@fuz.su> wrote:
Hi Warner,

On Mon, Oct 28, 2019 at 04:08:53PM -0600, Warner Losh wrote:
> VENIX 2.0 had this. It was a Pure AT&T syntax w/o % signs:
>
> eg
> |
> | VENIX/86 start off (bootstrap starts execution at location 0 `start&= #39;).
> |
> | Relocate complete kernel down to low memory.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0.text
> start:=C2=A0 cli
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mov=C2=A0 =C2=A0 =C2=A0dx,#LOWMEM=C2= =A0 =C2=A0 =C2=A0 | base of relocated kernel
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mov=C2=A0 =C2=A0 =C2=A0cx,cs
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cmp=C2=A0 =C2=A0 =C2=A0cx,dx=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| are we there (put there by bootstrap) ?=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0beq=C2=A0 =C2=A0 =C2=A0L0002=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Yes.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mov=C2=A0 =C2=A0 =C2=A0ds,cx
>
> which is clearly op dst, src.

op dst, src is Intel syntax.=C2=A0 AT&T syntax has op src, dst like MAC= RO-11.
There are a number of other differences: (a) | instead of / or # as a comme= nt
character (b) different mnemonics (beq instead of je) and (c) # instead of = $
as the comment character.

Without seeing some more code, I'd say it's not AT&T syntax.

Doh! I've been mixing the two up sinc= e the 90s :(. Yea, this stuff isn't AT&T syntax...=C2=A0 It's f= rom a compiler from MIT... I should have taken the hint that it used MIT se= quence :)

Warner
--000000000000f387ee0596000817--