From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7056 invoked from network); 4 Jan 2022 21:13:13 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 4 Jan 2022 21:13:13 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6D2759C70C; Wed, 5 Jan 2022 07:13:09 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 304D99C6E5; Wed, 5 Jan 2022 07:12:48 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C56tt9RI"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 4CD5D9C6E5; Wed, 5 Jan 2022 07:12:45 +1000 (AEST) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by minnie.tuhs.org (Postfix) with ESMTPS id CF61694A6B for ; Wed, 5 Jan 2022 07:12:44 +1000 (AEST) Received: by mail-ot1-f45.google.com with SMTP id j97-20020a9d17ea000000b0059069215e85so287165otj.13 for ; Tue, 04 Jan 2022 13:12:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LfmtNffRHFX4n0lRB5EWBeHUByS/0druUnMkGtaH8/g=; b=C56tt9RIwhWaPnwJpyVcUYmtvulaTt+/UIUw+Cq5Pdl+EwPeOgi59fkAMztOjjLFTA /x83ZyGOs/mzi0Aj4t5vOW0ckg5Il+tR23C0WWdk6Qejq6FXvk/kCo+WOHBk+RpLpgO7 Wr4hL3VedPKZt6LuIEs5k/aYZ5ebSkZHpVRlWKTi4ug/nrgAmCksQJhKxD+C1z1IjnwQ IthuvGSmTasFBo5VZorXimO3AFxpdRR7A76D/KDWKu3eAQqlhxlaONgezt1eMeD6BZ7z 9Ulwm9CkEmswnUhoKnJ7eF93F8BJTHHDBMPahBnSkhKymrZUG7Jfq3KeXKSkXAnDA3QO YggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LfmtNffRHFX4n0lRB5EWBeHUByS/0druUnMkGtaH8/g=; b=5hxha+YYmV2Z6Ht9k2p5NX/KQ30fmBAY9IPFA32Ir9yGF9vIxQ6obZWOIpzLyXNkX9 B8PJ5H8u9GciCk5MgUfUU9GwtP/GlfovdBBwm/Ek3Zp5d6M0/OBARqt0OnWX/q7WeaYO H0qIdyAJ+Nj7tk2ratgzDxuttt4nEXgjhsKwD4pnjJx+ilE/Nj/FYynePl9qgeLzdL8O PIJRoOqV8tdg1rkBU9CIxDy8vQFa18iSr63tRUEmHM7rhPJczZTrNKNbM0RdP16r4V51 DzyjDMAPKz3dzRAVN7ktD+426klqG/vTQbmbYBjeOQhWUbOhrDxVIu7nDklHNOG2nMF1 TvWw== X-Gm-Message-State: AOAM530+FFA+bwVIpMhiUitCJSu5HRPXI1vBfhqkgbeJRYYn3mBSJZIe rnLJobsk8srOdxGiSnJAxx2TOXx/aKyQi7lkDkYX/3/0qnA= X-Google-Smtp-Source: ABdhPJyU/l0gu/1vhl9OdYSDz+exUydBAY6Z6KT7gGHBkSG5hebqdDXRKILt+2oEjmkLK0eu+ZRdRPNGT/VhoQ9U4Nw= X-Received: by 2002:a9d:4d10:: with SMTP id n16mr37691743otf.17.1641330764181; Tue, 04 Jan 2022 13:12:44 -0800 (PST) MIME-Version: 1.0 References: <10197622-30fe-7553-2f2d-edc9637ff489@gmail.com> In-Reply-To: <10197622-30fe-7553-2f2d-edc9637ff489@gmail.com> From: Dan Cross Date: Tue, 4 Jan 2022 16:12:08 -0500 Message-ID: To: Will Senn Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] asm helper routines in v7 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: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On Tue, Jan 4, 2022 at 3:38 PM Will Senn wrote: > [snip] > My questions are: > > 1. Is mesg or an equivalent available in v7? Perhaps just call printf? > 2. If not, what was the v7 way of putting strings out? Here's what I did: $ rm -f h h.o $ cat h.s .globl _printf, _exit mov sp, r5 mov $hi,(sp) jsr pc,*$_printf mov $0, (sp) jsr pc,*$_exit hi: $ as -o h.o h.s $ ld -o h h.o -lc $ ./h Hello, World! $ rm h h.o > 3. Why aren't the system call names defined? If I had to hazard a guess, it would have been to de-emphasize the use of assembler for user code, particularly as 7th Edition was starting to be portable beyond the PDP-11. > 4. What was the v7 way of naming system calls? I imagine the canonical way to invoke system calls from assembler was invoking calling functions in the C library and linking against that. - Dan C.