From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id 1DB8D21333 for ; Thu, 28 Mar 2024 21:59:53 +0100 (CET) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id F3DC443185; Fri, 29 Mar 2024 06:59:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1711659589; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=jwJgbxEmuHfAzX1JnbLiXqUeIdlbISXXd21Hs4IzvtY=; b=AyOuplHl4AxTPPnpNByEV5j4GYi+hqG/u4MFqVqcv8nOHI0Iujrt3eQJuidofHFUBIGgF7 oNhOO284F0frI8Ajv/xt6r0eoDZz7UjIG3eNlux0xdhpnz++fL/k80uul4aHbkaqfrKXsH ansHIcuZyzlABfKa30EIPwI7RGO92Sw= Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) by minnie.tuhs.org (Postfix) with ESMTPS id B0022428A4 for ; Fri, 29 Mar 2024 06:59:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1711659580; x=1711918780; bh=jwJgbxEmuHfAzX1JnbLiXqUeIdlbISXXd21Hs4IzvtY=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ePjloBUrFEz57jVnMQgwqzA39FFsBLO/ZcV49hjw2MZ+x1LaNkwQZ/ocGBVl24Q2W +rV0acesSCltd1dkDnJmmkiprstUngjrPy/yEFf7YRbHrtonOZKdVD7bv9fW18oCqG 0G6i7uMMq/wHOX3imqUGjQ4zpk2fm+2wAtgDgAgSr8bsfLpTDveWTxx5WkWk4sA2z6 k4TratFjcQMcRjtpH2BXBxwQzpskD2UvZnExrg4yf8GgPHKYeRmUA4zPCKHB0LufUu SF8ejDK0PNz/nlpEr1RHjGOMnOdri816DexmxW0Hq7MmMH1tMYhQFFYpqaOqBAqOVp BjkoBav7LYl+A== Date: Thu, 28 Mar 2024 20:59:36 +0000 To: The Eunuchs Hysterical Society Message-ID: <-13YF6AYi-bCPeVZIGwdZ4X9AxH2HtZ_oOzHOoaarkMi3tULcsRWeqd2AJ_S6FomRNk2dWpcsQSYUyKFww-_xhm17hD_QH_NR2Mu5Jp9a1s=@protonmail.com> In-Reply-To: References: Feedback-ID: 35591162:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: H2CLABWZTH5H5F4IN5DI4OZVXIYBQ6EH X-Message-ID-Hash: H2CLABWZTH5H5F4IN5DI4OZVXIYBQ6EH X-MailFrom: segaloco@protonmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: .globl directive -- is this a 35-bit constant? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: segaloco via TUHS Reply-To: segaloco On Thursday, March 28th, 2024 at 12:44 PM, ron minnich = wrote: > ACPI has 4-byte identifiers (guess why!), but I just wondered, writing so= me assembly:is it globl, not global, or glbl, because globl would be a one-= word constant on the PDP-10 (5 7-bit bytes)? >=20 > Not entirely off track, netbsd at some point (still does?) ran on the PDP= -10. Note any page references below are in reference to the linked PDF, not the = original document page numbers. Many facts folks here know better than I, but being through for completenes= s, as(I) derives syntactically from PAL-11R. Section 8.2 of the May 1971 P= AL-11R manual[1] describes the .GLOBL directive (p. 35). Looking forward j= ust a bit, .GLOBL survives into MACRO-11 in June 1972[2], described in sect= ion 6.10 (p. 89). Looking then over the fence to MACRO-10 as of June 1972[3], I couldn't find= a reference to a .GLOBL or comparably named pseudo-op, with the table bein= g found in Appendix A(pp. 111-112). There are plenty of pseudo-ops ranging= in name lengths from two (e.g. IF) to nine (e.g. UNIVERSAL) characters, it= doesn't seem there was any strong preference in character length for psued= o-ops in MACRO-10. I found some references to a "PAL-10" online but could not locate a manual,= but the references I did see indicated this may be referring to a cross-as= sembler for PDP-8. Taking one more look back to the MACRO-9 assembler for = PDP-9, circa November 1968[4], this assembler does have a .GLOBL pseudo-op = defined in section 3.9 (pp. 38-39). It seems .GLOBL skipped PDP-10. I'm s= ure further analysis could pinpoint the earliest PDP assembler to utilize "= .GLOBL" but from the looks of things it never touched the PDP-10, at least = in the native assembler. - Matt G. P.S. As an aside, I use the cc65 toolkit for 6502 projects I tinker on, it'= s in some ways modeled after the UNIX cc/as/ld environment but exhibits eno= ugh differences that I sometimes wonder what they were thinking. I don't m= ean too much criticism, it's a free tool I get to use all I want, and I'm g= rateful for that, but a relevant instance here is that there is no .globl. = Rather the pseudo-op is ".export", and there are several things like that = where it could've been nice and even with how the standard UNIX commands an= d syntax work, but missed the mark by just that much. I fear given that cc= 65 has been around for a while, any attempts I'd make to wrangle the syntax= and CLI options to be closer to UNIX would be unwelcome as so much code is= already extant with the differences. On the flip side, if I produce my ow= n fork and write my code against that fork, nobody else will be able to use= my code without it :( [1] - http://bitsavers.org/pdf/dec/pdp11/dos-batch/DEC-11-ASDB-D_PAL-11R_As= sembler_Programmers_Manual_May71.pdf [2] - http://bitsavers.org/pdf/dec/pdp11/dos-batch/DEC-11-OMACA-A-D_DOS_MAC= RO-11_Assembler_Programmers_Manual_Jun72.pdf [3] - http://bitsavers.org/pdf/dec/pdp10/TOPS10/1973_Assembly_Language_Hand= book/02_1973AsmRef_macro.pdf [4] - http://bitsavers.org/pdf/dec/pdp9/DEC-9A-AMZA-D_MACRO9.pdf