The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Jacob Ritorto <jacob.ritorto@gmail.com>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] as(1) on Ultrix-11 vs 2.11BSD
Date: Mon, 27 Apr 2020 21:56:20 -0400	[thread overview]
Message-ID: <CAHYQbfA6pKX46RqJipojKjWzEfS_bkWyW2bz5wpj5aTOw10ucA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

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:      <Hello\n>
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:      <Hello\n>
> 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

[-- Attachment #2: Type: text/html, Size: 1746 bytes --]

             reply	other threads:[~2020-04-28  1:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28  1:56 Jacob Ritorto [this message]
2020-04-28 13:03 ` Ronald Natalie
2020-04-29  0:17   ` Jacob Ritorto
2020-04-29  0:54     ` ron
2020-04-29  2:26 Noel Chiappa
2020-04-29  4:08 ` Jacob Ritorto
2020-04-29 12:20   ` Ronald Natalie
2020-04-29 13:55 Paul Ruizendaal
2020-04-29 14:18 ` ron
2020-04-30 21:49   ` Alexander Voropay
2020-04-30 22:06     ` Clem Cole
2020-04-30 22:09       ` Clem Cole
2020-05-01  0:12     ` Ronald Natalie

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=CAHYQbfA6pKX46RqJipojKjWzEfS_bkWyW2bz5wpj5aTOw10ucA@mail.gmail.com \
    --to=jacob.ritorto@gmail.com \
    --cc=tuhs@tuhs.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).