Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Life, loathe it or ignore it, you can't like it." -- Marvin the paranoid android


computers / alt.sys.pdp11 / Here's a MACRO-11 question...

SubjectAuthor
* Here's a MACRO-11 question...Lee Gleason
+- Re: Here's a MACRO-11 question...Bob Eager
`* Re: Here's a MACRO-11 question...Johnny Billquist
 `* Re: Here's a MACRO-11 question...Lee Gleason
  +* Re: Here's a MACRO-11 question...Don North
  |+* Re: Here's a MACRO-11 question...Lee Gleason
  ||`* Re: Here's a MACRO-11 question...Jonathan Harston
  || +* Re: Here's a MACRO-11 question...Bob Eager
  || |`* Re: Here's a MACRO-11 question...Jonathan Harston
  || | +- Re: Here's a MACRO-11 question...Bob Eager
  || | `* Re: Here's a MACRO-11 question...Don North
  || |  +- Re: Here's a MACRO-11 question...Bob Eager
  || |  `* Re: Here's a MACRO-11 question...Johnny Billquist
  || |   `* Re: Here's a MACRO-11 question...Don North
  || |    `* Re: Here's a MACRO-11 question...Johnny Billquist
  || |     `* Re: Here's a MACRO-11 question...Don North
  || |      `- Re: Here's a MACRO-11 question...Johnny Billquist
  || `* Re: Here's a MACRO-11 question...Johnny Billquist
  ||  `* Re: Here's a MACRO-11 question...Don North
  ||   `- Re: Here's a MACRO-11 question...Johnny Billquist
  |`- Re: Here's a MACRO-11 question...Johnny Billquist
  `* Re: Here's a MACRO-11 question...Johnny Billquist
   `- Re: Here's a MACRO-11 question...Lee Gleason

1
Here's a MACRO-11 question...

<KnhEJ.3625$yS2.306@fx20.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=397&group=alt.sys.pdp11#397

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx20.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Newsgroups: alt.sys.pdp11
Content-Language: en-US
From: lee.glea...@comcast.net (Lee Gleason)
Subject: Here's a MACRO-11 question...
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: Avast (VPS 220114-2, 1/14/2022), Outbound message
X-Antivirus-Status: Clean
Lines: 14
Message-ID: <KnhEJ.3625$yS2.306@fx20.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Fri, 14 Jan 2022 16:18:50 UTC
Organization: usenet-news.net
Date: Fri, 14 Jan 2022 10:18:49 -0600
X-Received-Bytes: 1249
 by: Lee Gleason - Fri, 14 Jan 2022 16:18 UTC

I've been writing some stand alone (no OS) MACRO-11 code lately, that
has some sections that need longword alignment.

Word alignment would be easy....a .EVEN directive would take care of
it. But there's no .LONG in MACRO-11.

I reckon I can do some location counter arithmetic to get it done,
but I'm wondering if there's already a known solution for this.

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason@comcast.net

Re: Here's a MACRO-11 question...

<j4dp8oF97mnU14@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=398&group=alt.sys.pdp11#398

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: 14 Jan 2022 17:12:56 GMT
Lines: 20
Message-ID: <j4dp8oF97mnU14@mid.individual.net>
References: <KnhEJ.3625$yS2.306@fx20.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net s8NWlfbReWtm2evrjZRK0Q7Wsu4JAMZeneVzEohwEcu0epJwtW
Cancel-Lock: sha1:hhot+pIfzKx+ymSHVXBVDJby0Xc=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Fri, 14 Jan 2022 17:12 UTC

On Fri, 14 Jan 2022 10:18:49 -0600, Lee Gleason wrote:

> I've been writing some stand alone (no OS) MACRO-11 code lately, that
> has some sections that need longword alignment.
>
> Word alignment would be easy....a .EVEN directive would take care of
> it. But there's no .LONG in MACRO-11.
>
> I reckon I can do some location counter arithmetic to get it done,
> but I'm wondering if there's already a known solution for this.

I've always done it with location counter arithmetic.

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Here's a MACRO-11 question...

<srsbhv$bhp$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=399&group=alt.sys.pdp11#399

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Fri, 14 Jan 2022 18:23:10 +0100
Organization: MGT Consulting
Message-ID: <srsbhv$bhp$1@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Jan 2022 17:23:11 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="11833"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <KnhEJ.3625$yS2.306@fx20.iad>
 by: Johnny Billquist - Fri, 14 Jan 2022 17:23 UTC

On 2022-01-14 17:18, Lee Gleason wrote:
>
>   I've been writing some stand alone (no OS) MACRO-11 code lately, that
> has some sections  that need longword alignment.
>
>   Word alignment would be easy....a .EVEN directive would take care of
> it. But there's no .LONG in MACRO-11.
>
>   I reckon I can do some location counter arithmetic to get it done,
> but I'm wondering if there's already a known solution for this.

The problem is that unless you make sure all sections are longword
aligned, you hit the problem that TKB is in the end the thing
responsible, and it tries to pack things as much as possible.

And while it's pretty straight forward in theory, I can't create such a
padding in MACRO-11. The problem is that I'm not allowed to do that kind
of arithmetic on the current location, as it is a relative value.
But maybe I'm just not creative enough right at this moment.

But with that said, I do have a MACRO-11 definition of .LONG which works
just fine. :-)

Johnny

Re: Here's a MACRO-11 question...

<TqlEJ.144046$IB7.108887@fx02.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=400&group=alt.sys.pdp11#400

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Here's a MACRO-11 question...
Content-Language: en-US
Newsgroups: alt.sys.pdp11
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
From: lee.glea...@comcast.net (Lee Gleason)
In-Reply-To: <srsbhv$bhp$1@news.misty.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 220114-4, 1/14/2022), Outbound message
X-Antivirus-Status: Clean
Lines: 20
Message-ID: <TqlEJ.144046$IB7.108887@fx02.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Fri, 14 Jan 2022 20:55:15 UTC
Organization: usenet-news.net
Date: Fri, 14 Jan 2022 14:55:15 -0600
X-Received-Bytes: 1517
 by: Lee Gleason - Fri, 14 Jan 2022 20:55 UTC

On 1/14/2022 11:23 AM, Johnny Billquist wrote:
> On 2022-01-14 17:18, Lee Gleason wrote:
>>

> And while it's pretty straight forward in theory, I can't create such a
> padding in MACRO-11. The problem is that I'm not allowed to do that kind
> of arithmetic on the current location, as it is a relative value.
> But maybe I'm just not creative enough right at this moment.
>
> But with that said, I do have a MACRO-11 definition of .LONG which works
> just fine. :-)
>
>   Johnny

Care to share it?

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason@comcast.net

Re: Here's a MACRO-11 question...

<srtc3u$roi$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=401&group=alt.sys.pdp11#401

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nad...@spam.com (Don North)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Fri, 14 Jan 2022 18:38:58 -0800
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <srtc3u$roi$1@dont-email.me>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 15 Jan 2022 02:38:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4bf6e325eb7a00599d106b7b3fe4c136";
logging-data="28434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+j9avOXL0GkptCSmBI9w1V"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:FUJjnIR63f5Z9SJrZdRKZltKgcA=
In-Reply-To: <TqlEJ.144046$IB7.108887@fx02.iad>
Content-Language: en-US
 by: Don North - Sat, 15 Jan 2022 02:38 UTC

On 2022-01-14 12:55, Lee Gleason wrote:
> On 1/14/2022 11:23 AM, Johnny Billquist wrote:
>> On 2022-01-14 17:18, Lee Gleason wrote:
>>>
>
>> And while it's pretty straight forward in theory, I can't create such a
>> padding in MACRO-11. The problem is that I'm not allowed to do that kind of
>> arithmetic on the current location, as it is a relative value.
>> But maybe I'm just not creative enough right at this moment.
>>
>> But with that said, I do have a MACRO-11 definition of .LONG which works just
>> fine. :-)
>>
>>    Johnny

FYI I made up this macro for MACRO-11 that aligns the current location counter
such that the 'arg1' low bits are zeroes.

'arg1' can be 1 for word, 2 for longword, 3 for quadword, etc.

HOWEVER the alignment is relative to the start of the current program/data
section, which the linker normally only word aligns. So I only use it in
absolute sections where I can set the starting address to 0, 1000(8), etc.

..macro align arg1
..nlist
$$pos=1
..rept arg1
..if ne <.&$$pos>
.blkb $$pos
..endc
$$pos=$$pos*2
..endr
..list
..endm align

Re: Here's a MACRO-11 question...

<l2HEJ.97123$L_2.46440@fx04.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=402&group=alt.sys.pdp11#402

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx04.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Here's a MACRO-11 question...
Content-Language: en-US
Newsgroups: alt.sys.pdp11
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
From: lee.glea...@comcast.net (Lee Gleason)
In-Reply-To: <srtc3u$roi$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 220115-4, 1/15/2022), Outbound message
X-Antivirus-Status: Clean
Lines: 32
Message-ID: <l2HEJ.97123$L_2.46440@fx04.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Sat, 15 Jan 2022 21:30:57 UTC
Organization: usenet-news.net
Date: Sat, 15 Jan 2022 15:30:57 -0600
X-Received-Bytes: 1771
 by: Lee Gleason - Sat, 15 Jan 2022 21:30 UTC

On 1/14/2022 8:38 PM, Don North wrote:

> FYI I made up this macro for MACRO-11 that aligns the current location
> counter
> such that the 'arg1' low bits are zeroes.
>
> 'arg1' can be 1 for word, 2 for longword, 3 for quadword, etc.
>
> HOWEVER the alignment is relative to the start of the current
> program/data section, which the linker normally only word aligns. So I
> only use it in absolute sections where I can set the starting address to
> 0, 1000(8), etc.
>
> .macro    align    arg1
> .nlist
>     $$pos=1
> .rept    arg1
> .if ne <.&$$pos>
>     .blkb    $$pos
> .endc
>     $$pos=$$pos*2
> .endr
> .list
> .endm    align
>

Thanks!

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason@comcast.net

Re: Here's a MACRO-11 question...

<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=403&group=alt.sys.pdp11#403

  copy link   Newsgroups: alt.sys.pdp11
X-Received: by 2002:a05:6214:c85:: with SMTP id r5mr15024558qvr.90.1642356672722; Sun, 16 Jan 2022 10:11:12 -0800 (PST)
X-Received: by 2002:a05:620a:470f:: with SMTP id bs15mr12337042qkb.246.1642356672590; Sun, 16 Jan 2022 10:11:12 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp11
Date: Sun, 16 Jan 2022 10:11:12 -0800 (PST)
In-Reply-To: <l2HEJ.97123$L_2.46440@fx04.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=213.104.125.96; posting-account=jgPW4gkAAACE_VxPxIZ8VykZc96-9sT_
NNTP-Posting-Host: 213.104.125.96
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com> <TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me> <l2HEJ.97123$L_2.46440@fx04.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
Subject: Re: Here's a MACRO-11 question...
From: jgh...@mdfs.net (Jonathan Harston)
Injection-Date: Sun, 16 Jan 2022 18:11:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Jonathan Harston - Sun, 16 Jan 2022 18:11 UTC

If your assembler has an 'insert string' directive which takes
parameters, it's fairly simple, something like:

DS length,fillbyte
DS (($+3) BINARYAND -4)-$, 0

to align to a multiple of 4, as a general case of:

DS (($+num-1) BINARYAND -num)-$,0

where num is a power of two and $ is the location counter.

Re: Here's a MACRO-11 question...

<j4ji1lF97mnU22@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=404&group=alt.sys.pdp11#404

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: 16 Jan 2022 21:46:29 GMT
Lines: 26
Message-ID: <j4ji1lF97mnU22@mid.individual.net>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net VXqAe3N/R178GcXTQuM7SQXhHczwc3ZIKRmWQeALQXjQ4E9+Rb
Cancel-Lock: sha1:0HfCus+XutfZE3xRBfLjMrz3Rz0=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Sun, 16 Jan 2022 21:46 UTC

On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:

> If your assembler has an 'insert string' directive which takes
> parameters, it's fairly simple, something like:
>
> DS length,fillbyte DS (($+3) BINARYAND -4)-$, 0
>
> to align to a multiple of 4, as a general case of:
>
> DS (($+num-1) BINARYAND -num)-$,0
>
> where num is a power of two and $ is the location counter.

Pretty sure I used to use someting like:

.=(.+3)&4

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Here's a MACRO-11 question...

<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=405&group=alt.sys.pdp11#405

  copy link   Newsgroups: alt.sys.pdp11
X-Received: by 2002:ac8:7dc5:: with SMTP id c5mr6472274qte.173.1642374233268;
Sun, 16 Jan 2022 15:03:53 -0800 (PST)
X-Received: by 2002:ac8:6d1c:: with SMTP id o28mr12652861qtt.656.1642374233101;
Sun, 16 Jan 2022 15:03:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp11
Date: Sun, 16 Jan 2022 15:03:52 -0800 (PST)
In-Reply-To: <j4ji1lF97mnU22@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=213.104.125.177; posting-account=jgPW4gkAAACE_VxPxIZ8VykZc96-9sT_
NNTP-Posting-Host: 213.104.125.177
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad> <8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
Subject: Re: Here's a MACRO-11 question...
From: jgh...@mdfs.net (Jonathan Harston)
Injection-Date: Sun, 16 Jan 2022 23:03:53 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: Jonathan Harston - Sun, 16 Jan 2022 23:03 UTC

On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
> > DS (($+num-1) BINARYAND -num)-$,0
> >
> > where num is a power of two and $ is the location counter.
> Pretty sure I used to use someting like:
>
> .=(.+3)&4

What does that do to the memory between current . and new . ?
In may assemblers I found it was unassigned, so I used an explicit
memory-filling directive, particularly after somebody pointed out
the random unassigned locations made binary diffs fiddlier as you
would almost always get differences reported.

In the PDP11 assembler wot i rote I implemented (and, importantly,
documented) an ALIGN directive as explicitly filling with zeros.

jgh

Re: Here's a MACRO-11 question...

<j4jq96F97mnU24@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=406&group=alt.sys.pdp11#406

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: 17 Jan 2022 00:07:02 GMT
Lines: 22
Message-ID: <j4jq96F97mnU24@mid.individual.net>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net znBd03g/QG59LHBJJc2YbABzvolYuLk8mn1M90i9IDlcGCQFhy
Cancel-Lock: sha1:gUc/WfNq18t1KBtsSnKM8tFoSaY=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 17 Jan 2022 00:07 UTC

On Sun, 16 Jan 2022 15:03:52 -0800, Jonathan Harston wrote:

> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>> > DS (($+num-1) BINARYAND -num)-$,0
>> >
>> > where num is a power of two and $ is the location counter.
>> Pretty sure I used to use someting like:
>>
>> .=(.+3)&4
>
> What does that do to the memory between current . and new . ?

I didn't care.

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Here's a MACRO-11 question...

<ss2hh8$rq1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=407&group=alt.sys.pdp11#407

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nad...@spam.com (Don North)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Sun, 16 Jan 2022 17:41:58 -0800
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ss2hh8$rq1$1@dont-email.me>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Jan 2022 01:42:01 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ef3b74426e1056b7ff851e67bd5a855a";
logging-data="28481"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kmYuBCDh2l9REj4Rn+jKQ"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:f7d4rT10DfKHElmV/JouP6fInmU=
In-Reply-To: <f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
Content-Language: en-US
 by: Don North - Mon, 17 Jan 2022 01:41 UTC

On 2022-01-16 15:03, Jonathan Harston wrote:
> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>> DS (($+num-1) BINARYAND -num)-$,0
>>>
>>> where num is a power of two and $ is the location counter.
>> Pretty sure I used to use someting like:
>>
>> .=(.+3)&4
>
> What does that do to the memory between current . and new . ?
> In may assemblers I found it was unassigned, so I used an explicit
> memory-filling directive, particularly after somebody pointed out
> the random unassigned locations made binary diffs fiddlier as you
> would almost always get differences reported.
>
> In the PDP11 assembler wot i rote I implemented (and, importantly,
> documented) an ALIGN directive as explicitly filling with zeros.

I think you meant to write: .=(.+3)&(-4)
as your expression only generates the values of 0 or 4 for the new '.'.

As to the fill for unused locations, the PDP-11 linker won't place
anything in the unreferenced locations and won't refer to them.

So any binary difference checker on generated object or load files
should still compare. Once you load the program into actual memory
of course whatever exists there will stay there, unchanged.

Re: Here's a MACRO-11 question...

<j4kprcF97mnU25@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=408&group=alt.sys.pdp11#408

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0...@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: 17 Jan 2022 09:05:48 GMT
Lines: 33
Message-ID: <j4kprcF97mnU25@mid.individual.net>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 9tMA7QSwfklSv4aP1gyd8AG/P9Q742XdRY+M2LoYFF9X+zNolb
Cancel-Lock: sha1:w+CPfHRFnw0vliy5/BN802TgHk8=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 17 Jan 2022 09:05 UTC

On Sun, 16 Jan 2022 17:41:58 -0800, Don North wrote:

> On 2022-01-16 15:03, Jonathan Harston wrote:
>> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>>> DS (($+num-1) BINARYAND -num)-$,0
>>>>
>>>> where num is a power of two and $ is the location counter.
>>> Pretty sure I used to use someting like:
>>>
>>> .=(.+3)&4
>>
>> What does that do to the memory between current . and new . ?
>> In may assemblers I found it was unassigned, so I used an explicit
>> memory-filling directive, particularly after somebody pointed out the
>> random unassigned locations made binary diffs fiddlier as you would
>> almost always get differences reported.
>>
>> In the PDP11 assembler wot i rote I implemented (and, importantly,
>> documented) an ALIGN directive as explicitly filling with zeros.
>
> I think you meant to write: .=(.+3)&(-4)
> as your expression only generates the values of 0 or 4 for the new '.'.

Yes, thanks! It was off the top of my head and I didn't have anything tp
try it on. Didn't help that I am currently writing an assembler for a
completely differemt syntax!

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Here's a MACRO-11 question...

<ss49h1$24q$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=409&group=alt.sys.pdp11#409

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 18:37:36 +0100
Organization: MGT Consulting
Message-ID: <ss49h1$24q$1@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Jan 2022 17:37:37 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="2202"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <TqlEJ.144046$IB7.108887@fx02.iad>
 by: Johnny Billquist - Mon, 17 Jan 2022 17:37 UTC

On 2022-01-14 21:55, Lee Gleason wrote:
> On 1/14/2022 11:23 AM, Johnny Billquist wrote:
>> On 2022-01-14 17:18, Lee Gleason wrote:
>>>
>
>> And while it's pretty straight forward in theory, I can't create such
>> a padding in MACRO-11. The problem is that I'm not allowed to do that
>> kind of arithmetic on the current location, as it is a relative value.
>> But maybe I'm just not creative enough right at this moment.
>>
>> But with that said, I do have a MACRO-11 definition of .LONG which
>> works just fine. :-)
>>
>>    Johnny
>
>  Care to share it?

Sure. Here is both .LONG and .QUAD (yes, I occasionally need those on a
PDP-11).

--------snip---------
; ; The .LONG and .QUAD macros are a bit complex since we want to handle
; all different ways of doing radix in MACRO-11.
; ; As such, they understands:
; . Default radix based on .RADIX
; . Explicit ending with . to indicate decimal
; . ^O for octal
; . ^D for decimal
; . ^X for hexadecimal
; ; Note that ^x notation requires the argument to be enclosed
; in <>, since otherwise MACRO-11 tries to parse if before
; the macro expansion happens.
; ; The variables used are:
; $$$F flag if previous char was ^
; $$$B base used for conversion
; $$$B1-$$$B8 the eight bytes accumulating the value
;

;
; $$$TD tests if the argument ends with a dot, and if so
; sets conversion base explicitly to 10.
; .MACRO $$$TD WORD
.IRPC D,<WORD>
.IF IDN <D> .
$$$B=10.
.ENDC
.ENDR
.ENDM $$$TD

;
; $$$ADD will add one digit, in the appropriate base,
; to the accumulating bytes.
; .MACRO $$$ADD DI

.IF EQ $$$B-8.
$$$V = ^O'DI
.ENDC
.IF EQ $$$B-10.
$$$V = ^D'DI
.ENDC
.IF EQ $$$B-16.
$$$V = ^X0'DI
.ENDC

.IRPC X,<12345678>

$$$B'X=$$$B'X*$$$B+$$$V
$$$V=$$$B'X/256.
$$$B'X=$$$B'X&^O377

.ENDR

.ENDM $$$ADD

;
; Accumulate a word into multiple bytes.
; The bytes gets into $$$Bn
; .MACRO $$$ACC WORD
.MCALL $$$TD, $$$ADD

.IRPC X,<12345678>
$$$B'X=0
.ENDR
$$$F=0
$$$B=10

$$$TD <WORD>

.IRPC DI,<WORD>
.IF IDN <DI> <^>
$$$F=1
.IFF
.IF NE $$$F
.IF IDN <DI> O
$$$B=^O10
.ENDC
.IF IDN <DI> D
$$$B=10.
.ENDC
.IF IDN <DI> X
$$$B=^X10
.ENDC
$$$F=0
.IFF
.IF IDN <DI> .
.IFF
$$$ADD <DI>
.ENDC
.ENDC
.ENDC
.ENDR

.ENDM $$$ACC

.MACRO .LONG WORD,ORDER
.MCALL $$$ACC
$$$ACC <WORD>

$$$W1=$$$B2*256.+$$$B1
$$$W2=$$$B4*256.+$$$B3
.LIST MEB
.IF NB ORDER
.WORD $$$W1,$$$W2
.IFF
.WORD $$$W2,$$$W1
.ENDC
.NLIST MEB

.ENDM .LONG

.MACRO .QUAD WORD
.MCALL $$$ACC
$$$ACC <WORD>

$$$W1=$$$B2*256.+$$$B1
$$$W2=$$$B4*256.+$$$B3
$$$W3=$$$B6*256.+$$$B5
$$$W4=$$$B8*256.+$$$B7
.LIST MEB
.WORD $$$W1,$$$W2,$$$W3,$$$W4
.NLIST MEB

.ENDM .QUAD

---------snip---------

Re: Here's a MACRO-11 question...

<ss49r5$2el$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=410&group=alt.sys.pdp11#410

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 18:43:00 +0100
Organization: MGT Consulting
Message-ID: <ss49r5$2el$1@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Jan 2022 17:43:01 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="2517"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <srtc3u$roi$1@dont-email.me>
 by: Johnny Billquist - Mon, 17 Jan 2022 17:43 UTC

On 2022-01-15 03:38, Don North wrote:
> On 2022-01-14 12:55, Lee Gleason wrote:
>> On 1/14/2022 11:23 AM, Johnny Billquist wrote:
>>> On 2022-01-14 17:18, Lee Gleason wrote:
>>>>
>>
>>> And while it's pretty straight forward in theory, I can't create such
>>> a padding in MACRO-11. The problem is that I'm not allowed to do that
>>> kind of arithmetic on the current location, as it is a relative value.
>>> But maybe I'm just not creative enough right at this moment.
>>>
>>> But with that said, I do have a MACRO-11 definition of .LONG which
>>> works just fine. :-)
>>>
>>>    Johnny
>
> FYI I made up this macro for MACRO-11 that aligns the current location
> counter
> such that the 'arg1' low bits are zeroes.
>
> 'arg1' can be 1 for word, 2 for longword, 3 for quadword, etc.
>
> HOWEVER the alignment is relative to the start of the current
> program/data section, which the linker normally only word aligns. So I
> only use it in absolute sections where I can set the starting address to
> 0, 1000(8), etc.
>
> .macro    align    arg1
> .nlist
>     $$pos=1
> .rept    arg1
> .if ne <.&$$pos>
>     .blkb    $$pos
> .endc
>     $$pos=$$pos*2
> .endr
> .list
> .endm    align

The problem with this one, as with all the different attempts I've made
is that you are not allowed to do this in a normal program section.
Basically, <. & n> gives an A error because . is relative.
It only works on absolute sections. :-(

If anyone can come up with a solution that would work on normal
sections, I'd be very interested.

Johnny

Re: Here's a MACRO-11 question...

<ss49vo$2el$2@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=411&group=alt.sys.pdp11#411

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 18:45:28 +0100
Organization: MGT Consulting
Message-ID: <ss49vo$2el$2@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Jan 2022 17:45:28 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="2517"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
 by: Johnny Billquist - Mon, 17 Jan 2022 17:45 UTC

On 2022-01-16 19:11, Jonathan Harston wrote:
> If your assembler has an 'insert string' directive which takes
> parameters, it's fairly simple, something like:
>
> DS length,fillbyte
> DS (($+3) BINARYAND -4)-$, 0
>
> to align to a multiple of 4, as a general case of:
>
> DS (($+num-1) BINARYAND -num)-$,0
>
> where num is a power of two and $ is the location counter.

Yes, except that in Macro-11, the location counter in a normal section
is relative, and thus you are not allowed to do an AND on it. :-(

Which in a sense makes sense, since the code you are doing might be
placed on any location by the linker, thus making your computation for
an aligned address at assembler time to not be correct at all.

Johnny

Re: Here's a MACRO-11 question...

<ss4ak1$3fh$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=412&group=alt.sys.pdp11#412

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 18:56:16 +0100
Organization: MGT Consulting
Message-ID: <ss4ak1$3fh$1@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Jan 2022 17:56:17 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="3569"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <ss2hh8$rq1$1@dont-email.me>
 by: Johnny Billquist - Mon, 17 Jan 2022 17:56 UTC

On 2022-01-17 02:41, Don North wrote:
> On 2022-01-16 15:03, Jonathan Harston wrote:
>> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>>> DS (($+num-1) BINARYAND -num)-$,0
>>>>
>>>> where num is a power of two and $ is the location counter.
>>> Pretty sure I used to use someting like:
>>>
>>> .=(.+3)&4
>>
>> What does that do to the memory between current . and new . ?
>> In may assemblers I found it was unassigned, so I used an explicit
>> memory-filling directive, particularly after somebody pointed out
>> the random unassigned locations made binary diffs fiddlier as you
>> would almost always get differences reported.
>>
>> In the PDP11 assembler wot i rote I implemented (and, importantly,
>> documented) an ALIGN directive as explicitly filling with zeros.
>
> I think you meant to write:   .=(.+3)&(-4)
> as your expression only generates the values of 0 or 4 for the new '.'.

Yeah. Don just got it slightly wrong. :-)
But I would have written it as:
.. = (. + 3) & ^C3

(Where ^C means ones complement in Macro-11.)

> As to the fill for unused locations, the PDP-11 linker won't place
> anything in the unreferenced locations and won't refer to them.

Right.

> So any binary difference checker on generated object or load files
> should still compare. Once you load the program into actual memory
> of course whatever exists there will stay there, unchanged.

Not entirely sure about load file. Depends on which format it is in.
..LDA would do as you say, I think. TSK would not. Since it can only
describe one memory chunk in this case. (I'm assuming a load file with
no additional OS related stuff. A TSK file can be either, and with OS
related stuff also comes the capability of having multiple memory chunks
if I remember right...)

Johnny

Re: Here's a MACRO-11 question...

<ss50uf$561$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=414&group=alt.sys.pdp11#414

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: idontw...@spam.com (Don North)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 16:17:16 -0800
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ss50uf$561$1@dont-email.me>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me> <ss4ak1$3fh$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 18 Jan 2022 00:17:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b9ed4222d80b5d90b3ceed4bf9b33547";
logging-data="5313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/niKDjI+SlHScY36rwTMJc"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:PFDvSM7LVA8hCKb3vb2niuuSlvM=
In-Reply-To: <ss4ak1$3fh$1@news.misty.com>
Content-Language: en-US
 by: Don North - Tue, 18 Jan 2022 00:17 UTC

On 2022-01-17 09:56, Johnny Billquist wrote:
> On 2022-01-17 02:41, Don North wrote:
>> On 2022-01-16 15:03, Jonathan Harston wrote:
>>> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>>>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>>>> DS (($+num-1) BINARYAND -num)-$,0
>>>>>
>>>>> where num is a power of two and $ is the location counter.
>>>> Pretty sure I used to use someting like:
>>>>
>>>> .=(.+3)&4
>>>

>
> Yeah. Don just got it slightly wrong. :-)
> But I would have written it as:
> . = (. + 3) & ^C3
>
> (Where ^C means ones complement in Macro-11.)

Well actually we both got it ~slightly~ wrong ... the correct syntax:

. = <. + 3> & ^C3

which as pointed out ONLY works in absolute PSECTs.
Throws an error in relative PSECTs.

Re: Here's a MACRO-11 question...

<ss51k2$8eq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=415&group=alt.sys.pdp11#415

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: idontw...@spam.com (Don North)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 16:28:48 -0800
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ss51k2$8eq$1@dont-email.me>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<ss49vo$2el$2@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 00:28:51 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b9ed4222d80b5d90b3ceed4bf9b33547";
logging-data="8666"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tPMY3FoNmmE0qmEz2pfQL"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:F4e2SXPS2Fn1p7Vua/8mMADf6Aw=
In-Reply-To: <ss49vo$2el$2@news.misty.com>
Content-Language: en-US
 by: Don North - Tue, 18 Jan 2022 00:28 UTC

On 2022-01-17 09:45, Johnny Billquist wrote:
> On 2022-01-16 19:11, Jonathan Harston wrote:
>> If your assembler has an 'insert string' directive which takes
>> parameters, it's fairly simple, something like:
>>
>> DS length,fillbyte
>> DS (($+3) BINARYAND -4)-$, 0
>>
>> to align to a multiple of 4, as a general case of:
>>
>> DS (($+num-1) BINARYAND -num)-$,0
>>
>> where num is a power of two and $ is the location counter.
>
> Yes, except that in Macro-11, the location counter in a normal section is
> relative, and thus you are not allowed to do an AND on it. :-(
>
> Which in a sense makes sense, since the code you are doing might be placed on
> any location by the linker, thus making your computation for an aligned address
> at assembler time to not be correct at all.
>
>   Johnny
>

If you need to produce guaranteed aligned data structures that are aligned to
more than just a word (16b) boundary in PDP-11, and you need to do it in a
relocatable way, then writing a version of malloc(align,size) is probably your
best bet, and do the data allocation dynamically at run time.

In my recollection PDP-11 long/float quad/double (in relation to FPU in
particular) did not have any alignment requirement, other than word (even).

Re: Here's a MACRO-11 question...

<ss522e$vc5$2@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=417&group=alt.sys.pdp11#417

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Tue, 18 Jan 2022 01:36:30 +0100
Organization: MGT Consulting
Message-ID: <ss522e$vc5$2@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me> <ss4ak1$3fh$1@news.misty.com>
<ss50uf$561$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 00:36:30 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="32133"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <ss50uf$561$1@dont-email.me>
 by: Johnny Billquist - Tue, 18 Jan 2022 00:36 UTC

On 2022-01-18 01:17, Don North wrote:
> On 2022-01-17 09:56, Johnny Billquist wrote:
>> On 2022-01-17 02:41, Don North wrote:
>>> On 2022-01-16 15:03, Jonathan Harston wrote:
>>>> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>>>>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>>>>> DS (($+num-1) BINARYAND -num)-$,0
>>>>>>
>>>>>> where num is a power of two and $ is the location counter.
>>>>> Pretty sure I used to use someting like:
>>>>>
>>>>> .=(.+3)&4
>>>>
>
>>
>> Yeah. Don just got it slightly wrong. :-)
>> But I would have written it as:
>> . = (. + 3) & ^C3
>>
>> (Where ^C means ones complement in Macro-11.)
>
> Well actually we both got it ~slightly~ wrong ... the correct syntax:
>
>   . = <. + 3> & ^C3

Of course. I wasn't thinking about getting it MACRO-11 correct.
Initially I even wrote (. + 3) & ~3, but then I figured that maybe using
~ for negation might not be understood by everyone, so I started
MACRO-11:fying it a little. :-)

> which as pointed out ONLY works in absolute PSECTs.
> Throws an error in relative PSECTs.

Yeah. That is my main issue/problem. I'd like to have one that works in
relative psects. Even though it's not perfect, it wouldn't really be any
different than what .EVEN does.

Johnny

Re: Here's a MACRO-11 question...

<ss52h8$d7e$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=418&group=alt.sys.pdp11#418

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: idontw...@spam.com (Don North)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Mon, 17 Jan 2022 16:44:22 -0800
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <ss52h8$d7e$1@dont-email.me>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me> <ss4ak1$3fh$1@news.misty.com>
<ss50uf$561$1@dont-email.me> <ss522e$vc5$2@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 00:44:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b9ed4222d80b5d90b3ceed4bf9b33547";
logging-data="13550"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DZyMOw+hnIB6RpfF2upHG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Cancel-Lock: sha1:xNMYOSdPjLAro+cEtSLPP9g+FLA=
In-Reply-To: <ss522e$vc5$2@news.misty.com>
Content-Language: en-US
 by: Don North - Tue, 18 Jan 2022 00:44 UTC

On 2022-01-17 16:36, Johnny Billquist wrote:
> On 2022-01-18 01:17, Don North wrote:
>> On 2022-01-17 09:56, Johnny Billquist wrote:
>>> On 2022-01-17 02:41, Don North wrote:
>>>> On 2022-01-16 15:03, Jonathan Harston wrote:
>>>>> On Sunday, 16 January 2022 at 21:46:30 UTC, Bob Eager wrote:
>>>>>> On Sun, 16 Jan 2022 10:11:12 -0800, Jonathan Harston wrote:
>>>>>>> DS (($+num-1) BINARYAND -num)-$,0
>>>>>>>
>>>>>>> where num is a power of two and $ is the location counter.
>>>>>> Pretty sure I used to use someting like:
>>>>>>
>>>>>> .=(.+3)&4
>>>>>
>>
>>>
>>> Yeah. Don just got it slightly wrong. :-)
>>> But I would have written it as:
>>> . = (. + 3) & ^C3
>>>
>>> (Where ^C means ones complement in Macro-11.)
>>
>> Well actually we both got it ~slightly~ wrong ... the correct syntax:
>>
>>    . = <. + 3> & ^C3
>
> Of course. I wasn't thinking about getting it MACRO-11 correct. Initially I even
> wrote (. + 3) & ~3, but then I figured that maybe using ~ for negation might not
> be understood by everyone, so I started MACRO-11:fying it a little. :-)
>
>> which as pointed out ONLY works in absolute PSECTs.
>> Throws an error in relative PSECTs.
>
> Yeah. That is my main issue/problem. I'd like to have one that works in relative
> psects. Even though it's not perfect, it wouldn't really be any different than
> what .EVEN does.
>
>   Johnny

The problem is the standard PDP-11 linker only guarantees word alignment for
PSECTs. So enforcing a stricter alignment within a PSECT is problematic.

Re: Here's a MACRO-11 question...

<ss594l$8c3$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=420&group=alt.sys.pdp11#420

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Tue, 18 Jan 2022 03:37:09 +0100
Organization: MGT Consulting
Message-ID: <ss594l$8c3$1@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<j4ji1lF97mnU22@mid.individual.net>
<f1a959c4-6ba1-4a6d-b49c-db2bd7dcb69an@googlegroups.com>
<ss2hh8$rq1$1@dont-email.me> <ss4ak1$3fh$1@news.misty.com>
<ss50uf$561$1@dont-email.me> <ss522e$vc5$2@news.misty.com>
<ss52h8$d7e$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 02:37:09 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="8579"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <ss52h8$d7e$1@dont-email.me>
 by: Johnny Billquist - Tue, 18 Jan 2022 02:37 UTC

On 2022-01-18 01:44, Don North wrote:
> On 2022-01-17 16:36, Johnny Billquist wrote:
>> On 2022-01-18 01:17, Don North wrote:
>>> which as pointed out ONLY works in absolute PSECTs.
>>> Throws an error in relative PSECTs.
>>
>> Yeah. That is my main issue/problem. I'd like to have one that works
>> in relative psects. Even though it's not perfect, it wouldn't really
>> be any different than what .EVEN does.
>>
>>    Johnny
>
> The problem is the standard PDP-11 linker only guarantees word alignment
> for PSECTs. So enforcing a stricter alignment within a PSECT is
> problematic.

Actually, at least TKB don't even guarantee word alignment. It
guarantees that the first placement of a psect is word aligned, but if
the psect exists in multiple modules, the alignment for the next part of
the psect from the second file isn't even guaranteed to be word aligned.

So be careful if you create a psect with an odd size. That might throw
odd address errors at you from a different module, because you thought
it was word aligned. The .even will actually get you odd addresses...

Johnny

Re: Here's a MACRO-11 question...

<ss596q$8c3$2@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=421&group=alt.sys.pdp11#421

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.185.159.157.200!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Here's a MACRO-11 question...
Date: Tue, 18 Jan 2022 03:38:17 +0100
Organization: MGT Consulting
Message-ID: <ss596q$8c3$2@news.misty.com>
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <srtc3u$roi$1@dont-email.me>
<l2HEJ.97123$L_2.46440@fx04.iad>
<8afa6588-619b-4651-81ad-b72743d411c9n@googlegroups.com>
<ss49vo$2el$2@news.misty.com> <ss51k2$8eq$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jan 2022 02:38:18 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="185.159.157.200";
logging-data="8579"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <ss51k2$8eq$1@dont-email.me>
 by: Johnny Billquist - Tue, 18 Jan 2022 02:38 UTC

On 2022-01-18 01:28, Don North wrote:
> On 2022-01-17 09:45, Johnny Billquist wrote:
>> On 2022-01-16 19:11, Jonathan Harston wrote:
>>> If your assembler has an 'insert string' directive which takes
>>> parameters, it's fairly simple, something like:
>>>
>>> DS length,fillbyte
>>> DS (($+3) BINARYAND -4)-$, 0
>>>
>>> to align to a multiple of 4, as a general case of:
>>>
>>> DS (($+num-1) BINARYAND -num)-$,0
>>>
>>> where num is a power of two and $ is the location counter.
>>
>> Yes, except that in Macro-11, the location counter in a normal section
>> is relative, and thus you are not allowed to do an AND on it. :-(
>>
>> Which in a sense makes sense, since the code you are doing might be
>> placed on any location by the linker, thus making your computation for
>> an aligned address at assembler time to not be correct at all.
>>
>>    Johnny
>>
>
> If you need to produce guaranteed aligned data structures that are
> aligned to
> more than just a word (16b) boundary in PDP-11, and you need to do it in
> a relocatable way, then writing a version of malloc(align,size) is
> probably your best bet, and do the data allocation dynamically at run time.

Well, I wish I could do it anyway. Sometimes I want to to strange
things. :-)

> In my recollection PDP-11 long/float quad/double (in relation to FPU in
> particular) did not have any alignment requirement, other than word (even).

Correct.

Johnny

Re: Here's a MACRO-11 question...

<CtKFJ.2741$M_.1055@fx31.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=431&group=alt.sys.pdp11#431

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx31.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: Here's a MACRO-11 question...
Content-Language: en-US
Newsgroups: alt.sys.pdp11
References: <KnhEJ.3625$yS2.306@fx20.iad> <srsbhv$bhp$1@news.misty.com>
<TqlEJ.144046$IB7.108887@fx02.iad> <ss49h1$24q$1@news.misty.com>
From: lee.glea...@comcast.net (Lee Gleason)
In-Reply-To: <ss49h1$24q$1@news.misty.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 220118-8, 1/18/2022), Outbound message
X-Antivirus-Status: Clean
Lines: 162
Message-ID: <CtKFJ.2741$M_.1055@fx31.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Wed, 19 Jan 2022 02:13:54 UTC
Organization: usenet-news.net
Date: Tue, 18 Jan 2022 20:13:53 -0600
X-Received-Bytes: 5443
X-Original-Bytes: 5392
 by: Lee Gleason - Wed, 19 Jan 2022 02:13 UTC

On 1/17/2022 11:37 AM, Johnny Billquist wrote:
> On 2022-01-14 21:55, Lee Gleason wrote:
>> On 1/14/2022 11:23 AM, Johnny Billquist wrote:
>>> On 2022-01-14 17:18, Lee Gleason wrote:
>>>>
>>
>>> And while it's pretty straight forward in theory, I can't create such
>>> a padding in MACRO-11. The problem is that I'm not allowed to do that
>>> kind of arithmetic on the current location, as it is a relative value.
>>> But maybe I'm just not creative enough right at this moment.
>>>
>>> But with that said, I do have a MACRO-11 definition of .LONG which
>>> works just fine. :-)
>>>
>>>    Johnny
>>
>>   Care to share it?
>
> Sure. Here is both .LONG and .QUAD (yes, I occasionally need those on a
> PDP-11).
>
> --------snip---------
> ;
> ; The .LONG and .QUAD macros are a bit complex since we want to handle
> ; all different ways of doing radix in MACRO-11.
> ;
> ; As such, they understands:
> ; . Default radix based on .RADIX
> ; . Explicit ending with . to indicate decimal
> ; . ^O for octal
> ; . ^D for decimal
> ; . ^X for hexadecimal
> ;
> ; Note that ^x notation requires the argument to be enclosed
> ; in <>, since otherwise MACRO-11 tries to parse if before
> ; the macro expansion happens.
> ;
> ; The variables used are:
> ; $$$F flag if previous char was ^
> ; $$$B base used for conversion
> ; $$$B1-$$$B8 the eight bytes accumulating the value
> ;
>
> ;
> ; $$$TD tests if the argument ends with a dot, and if so
> ; sets conversion base explicitly to 10.
> ;
>         .MACRO  $$$TD   WORD
>         .IRPC   D,<WORD>
>         .IF IDN <D> .
>         $$$B=10.
>         .ENDC
>         .ENDR
>         .ENDM   $$$TD
>
> ;
> ; $$$ADD will add one digit, in the appropriate base,
> ; to the accumulating bytes.
> ;
>         .MACRO  $$$ADD  DI
>
>         .IF EQ $$$B-8.
>         $$$V = ^O'DI
>         .ENDC
>         .IF EQ $$$B-10.
>         $$$V = ^D'DI
>         .ENDC
>         .IF EQ $$$B-16.
>         $$$V = ^X0'DI
>         .ENDC
>
>         .IRPC   X,<12345678>
>
>         $$$B'X=$$$B'X*$$$B+$$$V
>         $$$V=$$$B'X/256.
>         $$$B'X=$$$B'X&^O377
>
>         .ENDR
>
>         .ENDM   $$$ADD
>
> ;
> ; Accumulate a word into multiple bytes.
> ; The bytes gets into $$$Bn
> ;
>         .MACRO  $$$ACC  WORD
>         .MCALL  $$$TD, $$$ADD
>
>         .IRPC   X,<12345678>
>         $$$B'X=0
>         .ENDR
>         $$$F=0
>         $$$B=10
>
>         $$$TD   <WORD>
>
>         .IRPC   DI,<WORD>
>         .IF IDN <DI> <^>
>         $$$F=1
>         .IFF
>         .IF NE $$$F
>         .IF IDN <DI> O
>         $$$B=^O10
>         .ENDC
>         .IF IDN <DI> D
>         $$$B=10.
>         .ENDC
>         .IF IDN <DI> X
>         $$$B=^X10
>         .ENDC
>         $$$F=0
>         .IFF
>         .IF IDN <DI> .
>         .IFF
>         $$$ADD <DI>
>         .ENDC
>         .ENDC
>         .ENDC
>         .ENDR
>
>         .ENDM   $$$ACC
>
>         .MACRO  .LONG   WORD,ORDER
>         .MCALL  $$$ACC
>         $$$ACC  <WORD>
>
>         $$$W1=$$$B2*256.+$$$B1
>         $$$W2=$$$B4*256.+$$$B3
>         .LIST   MEB
>         .IF NB  ORDER
>         .WORD   $$$W1,$$$W2
>         .IFF
>         .WORD   $$$W2,$$$W1
>         .ENDC
>         .NLIST  MEB
>
>         .ENDM   .LONG
>
>         .MACRO  .QUAD   WORD
>         .MCALL  $$$ACC
>         $$$ACC  <WORD>
>
>         $$$W1=$$$B2*256.+$$$B1
>         $$$W2=$$$B4*256.+$$$B3
>         $$$W3=$$$B6*256.+$$$B5
>         $$$W4=$$$B8*256.+$$$B7
>         .LIST   MEB
>         .WORD   $$$W1,$$$W2,$$$W3,$$$W4
>         .NLIST  MEB
>
>         .ENDM   .QUAD
>
> ---------snip---------
>
>

Thanks!

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason@comcast.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor