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,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1001 invoked from network); 14 Jun 2023 21:53:43 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2023 21:53:43 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 459E240BD9; Thu, 15 Jun 2023 07:53:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1686779618; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=5X9So/u0IHlJTgAWFmSPpTWoA6QWLzStL6rYg1KKkXo=; b=pwxprBqKI4oYUj14/gqf8h88RH9FEn7esWGR9E8d4ml8sfHbAckMv5nke+9cdYydflWCBE ZOBfRYZVkywIU3QuAZegvIz+R46fxm3M39Mby9BnFcipsJKAOuyHQI6BdiQCgh+1xjjtdq gGCE3HDN1lYFWrGWcBGGdnQBoEeiTyY= Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by minnie.tuhs.org (Postfix) with ESMTPS id 0F4AD40BC9 for ; Thu, 15 Jun 2023 07:53:29 +1000 (AEST) Date: Wed, 14 Jun 2023 21:53:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1686779605; x=1687038805; bh=5X9So/u0IHlJTgAWFmSPpTWoA6QWLzStL6rYg1KKkXo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=wGBrEtna+VjZ6+5ukAeIMIiE54jFrhxTtW7I9fx4xegqNFIzsV4iUx892vMPFkqcT OcCq/34j5ayo7ec+RExd44AA5noOeo/SIHWWmGDQg07N3dYmtIjPvJh1RKZk4R01Zw cmmRaYgnEANhtaigc0f39KhLwlEuZlHn0ICFBTOZ3KgieOLJNUad8a/AVDf8MmyAl2 Jp8Bde8XWNz7xg+oL1tQvgd4SeAU9N7a6eRF3LcxWozZ48YpsUbc6akXEtv4aJIjjK pgIPb7YzH8Wj2vX6jaiKzfB2Qnfw5X3BNxRBdjFvWV0019pEpl6uoChGZP34S1bcs9 OQyGFj/XcTIzw== To: Angelo Papenhoff Message-ID: In-Reply-To: References: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> <202306080331.3583Vrw7057546@ultimate.com> Feedback-ID: 35591162:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: JOCUBGANCH4PCWJG3H4JQ52CTPRHXNYY X-Message-ID-Hash: JOCUBGANCH4PCWJG3H4JQ52CTPRHXNYY 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 CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Software written in B 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 Angelo, do you mind if I mirror these disassembles into my https://gitlab.c= om/segaloco/v2src repository? That's where I'm (very slowly) accumulating = the results of mt own disassembly efforts on the V2 binaries. Bonus points= if you raise a PR, but I can make sure you get a shout-out in the Readme o= r something otherwise. Thanks for digging deeper where I haven't found the= time. - Matt G. ------- Original Message ------- On Wednesday, June 14th, 2023 at 1:03 PM, Angelo Papenhoff = wrote: > After writing this mail I actually started reversing the B binaries. > You can find them here: http://squoze.net/B/programs/ >=20 > I did find some differences in versions of the B runtime and library. > Especially interesting was an implementation of the cksto routine > in su and stty that checks whether an address in an assignment is in a > reasonable range ("LV out of range" error if not) >=20 > What is perhaps interesting historically is that the su binary contains > a hardcoded password ^Q^R^S^T, which is not printable for a good reason: > it is given as a command line argument. >=20 > I will hopefully continue with this in the next time (if, goto, mail and > glob are left). >=20 > Best, > aap >=20 > On 14/06/23, Angelo Papenhoff wrote: >=20 > > Thank you two for finding this! > > I did some disassembling yesterday and have uploaded brt1.s and brt2.s > > to my site now: http://squoze.net/B/brt/ (I haven't actually assembled > > them yet, there may be mistakes) > >=20 > > Some observations: > >=20 > > - The 'chain' format is actually a linked list and not a list of > > addresses. Phil and I both got this wrong. > >=20 > > - The "Init" string is an error message if for some reason the B init > > chain didn't run or main doesn't look like a function > >=20 > > - The cmdline arguments overwrite part of the init code. There's about > > 80 bytes of space for them before it overwrites the code that builds th= e > > argv vector > >=20 > > - brt2.s is only to mark the beginning of the stack > >=20 > > I also saw some differences in the bilib code but haven't really > > analyzed that part (yet?) > >=20 > > Would be really great if we could get all the files disassembled and > > decompiled and restore the source code for everything :) > >=20 > > Best, > > Angelo