🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #171

Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too seriously)

#171
From: Charlie Gibbs
Date: Thu, 05 Nov 2026 19:18
47 lines
3503 bytes
On 2026-11-05, Peter Flass <Peter@Iron-Spring.com> wrote:

> On 11/4/26 12:51, Charlie Gibbs wrote:
>
>> On 2026-11-04, Peter Flass <Peter@Iron-Spring.com> wrote:
>> 
>>> I kind of agree. As a former assembler programmer - at one time it was
>>> my first language - I'd like it to be true (although I'm out of the job
>>> market), but I can't see it.  These days most HLL code is more optimized
>>> than a lot of assembler. A good assembler programmer would not make a
>>> lot of these optimizations due to lack of readability.
>> 
>> A mediocre assembly language programmer would not let lack of
>> readability stand in the way.  And once you get into self-modifying
>> code there are all sorts of horrible things you can do.
>
> 1. "standard" things like converting a branch to a nop or back.

When reading about interfacing assembly language subroutines to
RPG programs, I noted that indicators were stored in one byte as
0x00 for off, and 0xF0 for on.  I suspected (but never confirmed)
that this would allow code generated by the RPG compiler to stuff
the indicator byte into the second byte of a branch instruction,
which on a 360-style architecture would change it to either a NOP
or a branch.

> I know 1401 Autocoder people used to do horrible things like using
> part of an instruction as a constant.

Somewhere in my archives I have a slim pamphlet - I think it was
part of an official IBM series on Autocoder programming - which
contained tips and techniques for writing self-modifying code.

> 2. You can do anything as long as you comment it. I once had a sequence 
> to test-store-conditional branch, for some reason I don't recall, bit I 
> tagged it with comments saying "these three instructions must be kept 
> together".

Sounds like you were counting on the condition code from the test
surviving through the store instruction so that the conditional branch
would properly pick it up.  Yes, definitely worth a cautionary note.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Technical Details
Message-ID: <ID4HS.121189$QbKc.26509@fx16.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <ayudnc43iJgfVXr3nZ2dnZfqn_adnZ2d@giganews.com> <11c8mg3$2e89e$2@kst.eternal-september.org> <_ZucnafJTvBFc3r3nZ2dnZfqnPGdnZ2d@giganews.com> <11c8rq9$1e6t$1@gal.iecc.com> <WfacneJt4NA3sHX3nZ2dnZfqn_udnZ2d@giganews.com> <11c9ibo$2e740$1@dont-email.me> <11c9rph$2oln7$7@dont-email.me> <a6%FS.31515$DTve.14247@fx18.ams4> <nktvq5Fahr2U5@mid.individual.net> <11cdg7h$46jl$3@dont-email.me> <11cfg4e$or8q$1@dont-email.me> <71MGS.199928$MmU5.168803@fx44.iad> <11cgo33$178cd$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc,comp.unix.shell,alt.folklore.computers
From: Charlie Gibbs <cgibbs@kltpzyxm.invalid>
Subject: Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too
 seriously)
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
 <ayudnc43iJgfVXr3nZ2dnZfqn_adnZ2d@giganews.com>
 <11c8mg3$2e89e$2@kst.eternal-september.org>
 <_ZucnafJTvBFc3r3nZ2dnZfqnPGdnZ2d@giganews.com>
 <11c8rq9$1e6t$1@gal.iecc.com>
 <WfacneJt4NA3sHX3nZ2dnZfqn_udnZ2d@giganews.com>
 <11c9ibo$2e740$1@dont-email.me> <11c9rph$2oln7$7@dont-email.me>
 <a6%FS.31515$DTve.14247@fx18.ams4> <nktvq5Fahr2U5@mid.individual.net>
 <11cdg7h$46jl$3@dont-email.me> <11cfg4e$or8q$1@dont-email.me>
 <71MGS.199928$MmU5.168803@fx44.iad> <11cgo33$178cd$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Lines: 47
Message-ID: <ID4HS.121189$QbKc.26509@fx16.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Thu, 05 Nov 2026 19:18:00 UTC
Date: Thu, 05 Nov 2026 19:18:00 GMT
X-Received-Bytes: 3310