From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 29702 invoked from network); 28 Apr 2020 01:57:36 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 28 Apr 2020 01:57:36 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 4E42D9B95E; Tue, 28 Apr 2020 11:57:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 5CF889B962; Tue, 28 Apr 2020 11:57:01 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G08QBJsE"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 7193C94895; Tue, 28 Apr 2020 11:56:58 +1000 (AEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by minnie.tuhs.org (Postfix) with ESMTPS id 2909D94621 for ; Tue, 28 Apr 2020 11:56:58 +1000 (AEST) Received: by mail-pg1-f174.google.com with SMTP id j7so9543122pgj.13 for ; Mon, 27 Apr 2020 18:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0xbNmzBVBeCvpANb7HPC1zTzyjtdrhURVwoFyfYb3EY=; b=G08QBJsEDGdhjyTnkd+jao6LP0qI9HkjBmzIl9SzUBeycMu3AX7HkliAhc2NlbaQtL TSHGLYh8KKwv5HrG5Md40Suzcn6RiABi9U/w8axabAeowVT9qrpETbmkM7IRKcMq1w5L VYzqrMd5uHv3J1uzMB9Nqd3EFxyqL9ijkNoOHBEIwrI8ukPkgw/72fe/kMvWfwZ0ZvGX wJOU4QhetBpCGyVlVjB5XPXAzCHX23Q7nbSffRGpqm/5Q+sh7QgLV3OKRJwy1JbXCN8q pw/wOfN+5mIVpO0pAghKNqcPD6IjuEeAC0Tv+Cyw6Tk3JqFNSyUmAY9K6wfgJCcyhP9d S7og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0xbNmzBVBeCvpANb7HPC1zTzyjtdrhURVwoFyfYb3EY=; b=hxvHRg5cNuhSlfDYFiG4WWT8fuV8vcbB/iAwagsnJ9h7/7EAtTShDHqAiQkriI7w8C cefVzbPy70HLxP7xmmLCH21KAK9WlM8Zg1fSgk0q694MYDjGb/WW73WL6lS2AJae0hkD HhGC0K7951CVgiSgDFEZsSlDfZDFXHjb4LxE7KOi8X06bZgpq+w27Q/s8T89VZXETCnW Q5CHTTkwpmRFRt+hJ5fWexlHhuombIlsCw+xCPdAxYMd124Y3af0aZ3Qwz/TVXkpenYq E+CdRu92LyMR/g2d2sJdqZB3phYHGVy9Szf49900mW3gVdwuy51sxYHgq/14/k4y7Rpk lwtg== X-Gm-Message-State: AGi0PuYgfS8hA1erPxUZ2kyEG0NtWr2FqxP2IOPhvE3mmmLPhcVmzc56 iCZt9BhEBfZOXX3UsV498uVnP9LVhGwU4aJh3kXAP+ir X-Google-Smtp-Source: APiQypJdG+uBvw4wJ+NeHurj+OMIwkn0CRNQ8nXREq1/D53Oh297IxvvASoBoQK75ex+Wp0HOVf0pc3TMpXKsB3Qsdo= X-Received: by 2002:a63:741a:: with SMTP id p26mr27120189pgc.40.1588039017132; Mon, 27 Apr 2020 18:56:57 -0700 (PDT) MIME-Version: 1.0 From: Jacob Ritorto Date: Mon, 27 Apr 2020 21:56:20 -0400 Message-ID: To: The Eunuchs Hysterical Society Content-Type: multipart/alternative; boundary="00000000000081796a05a4502528" Subject: [TUHS] as(1) on Ultrix-11 vs 2.11BSD 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000081796a05a4502528 Content-Type: text/plain; charset="UTF-8" Hiya! Got these two pdp11s, one an 11/23 (Ultrix-11 3.1) and the other an 11/84 (2.11BSD) On the Ultrix machine, I can enter an assembly language program, assemble it and run it fine. amnesiac# cat hello.s mov $1,r0 sys 4 a 6 sys 1 a: amnesiac# od hello 0000000 000407 000022 000000 000000 000014 000000 000000 000000 0000020 012700 000001 104404 000014 000006 104401 062510 066154 0000040 005157 000000 000000 000000 000002 000000 000000 000000 0000060 000000 000000 000141 000000 000000 000000 000002 000014 0000100 amnesiac# ./hello Hello amnesiac# But on the BSD machine, the exact same source program assembles differently and crashes with Illegal instruction when I run it. > cat hello.s mov $1,r0 sys 4 a 6 sys 1 a: > od a.out 0000000 000407 000022 000000 000000 000010 000000 000000 000000 0000020 012700 000001 104404 000014 000006 104401 062510 066154 0000040 005157 000000 000000 000000 000002 000000 000000 000000 0000060 000000 000000 000000 000004 000002 000014 000000 000006 0000100 000141 0000102 > ./a.out Illegal instruction (core dumped) > Anyone know what I'm doing wrong? thx jake --00000000000081796a05a4502528 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hiya!
=C2=A0 Got these two pdp11s, one = an 11/23 (Ultrix-11 3.1) and the other an 11/84 (2.11BSD)

On the Ultrix machine, I can enter an assembly lang= uage program, assemble it and run it fine.
amnesi= ac# cat hello.s
=C2=A0 =C2=A0 =C2=A0 =C2=A0 mov =C2=A0 =C2=A0 $1,r0
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 sys =C2=A0 =C2=A0 4
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 a
=C2=A0 =C2=A0 =C2=A0 =C2=A0 6
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sys = =C2=A0 =C2=A0 1
a: =C2=A0 =C2=A0 =C2=A0<Hello\n>
amnesiac# od h= ello
0000000 000407 000022 000000 000000 000014 000000 000000 000000
= 0000020 012700 000001 104404 000014 000006 104401 062510 066154
0000040 = 005157 000000 000000 000000 000002 000000 000000 000000
0000060 000000 0= 00000 000141 000000 000000 000000 000002 000014
0000100
amnesiac# ./h= ello
Hello
amnesiac#


But on the BSD machine, the exact same source program = assembles differently and crashes with Illegal instruction when I run it.
> cat hello.s
=C2=A0 =C2=A0 =C2=A0 =C2=A0 mo= v =C2=A0 =C2=A0 $1,r0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sys =C2=A0 =C2=A0 4=C2=A0 =C2=A0 =C2=A0 =C2=A0 a
=C2=A0 =C2=A0 =C2=A0 =C2=A0 6
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 sys =C2=A0 =C2=A0 1
a: =C2=A0 =C2=A0 =C2=A0<Hell= o\n>
> od a.out
0000000 =C2=A0000407 000022 000000 000000 00001= 0 000000 000000 000000
0000020 =C2=A0012700 000001 104404 000014 000006 = 104401 062510 066154
0000040 =C2=A0005157 000000 000000 000000 000002 00= 0000 000000 000000
0000060 =C2=A0000000 000000 000000 000004 000002 0000= 14 000000 000006
0000100 =C2=A0000141
0000102
> ./a.out
Ille= gal instruction (core dumped)
>

=

Anyone know what I'm doing wrong?

thx
jake

--00000000000081796a05a4502528--