Arrgh, not enough coffee. Change macros to techniques.
On 06/30/2015 08:07, M. Ray Mullins wrote:
Catching up on ASSEMBLER-LIST…
Where are those macros? I did come across a need for a MAX-style
function which I solved using other means, but I love learning new
techniques.
Thanks,
Ray
On
Catching up on ASSEMBLER-LIST…
Where are those macros? I did come across a need for a MAX-style
function which I solved using other means, but I love learning new
techniques.
Thanks,
Ray
On 06/22/2015 07:26, Ed Jaffe wrote:
On 6/17/2015 2:55 PM, David Cole wrote:
Excellent! Just stuff that
On Mon, 22 Jun 2015 07:26:10 -0700, Ed Jaffe edja...@phoenixsoftware.com
wrote:
On 6/17/2015 2:55 PM, David Cole wrote:
Excellent! Just stuff that into an ignorable dsect, and there you go!
I never thought of this method. Very creative.
We use the same basic technique in a robust set of
On 2015-06-22 11:45, Walt Farrell wrote:
On Mon, 22 Jun 2015 07:26:10 -0700, Ed Jaffe wrote:
On 6/17/2015 2:55 PM, David Cole wrote:
Excellent! Just stuff that into an ignorable dsect, and there you go!
I never thought of this method. Very creative.
We use the same basic technique in a
On 6/17/2015 2:55 PM, David Cole wrote:
Excellent! Just stuff that into an ignorable dsect, and there you go!
I never thought of this method. Very creative.
We use the same basic technique in a robust set of macro-based math
functions to to ensure one EQU is greater or less than another, to
Here's what I came up with for Dave's challenge. I did know of the underlying
unusual characteristic of assembler arithmetic, as I used it once about 40
years ago. Still, it was interesting figuring out how to apply it to this
problem. Without that hint from Dave I'm not sure I would have
Hi Victor,
Not being a mathematician, I did not previously know your formula.
Thanks for that insight.
WRT your SETA/SETC comment, yes the following sequence would produce |A-B| ...
A SETA 3
B SETA 8
C SETA A-B
D SETC 'C'
E SETA D
C's value would be -5.
E's value would be +5.
I am guessing the answer to your MAX question boils down to this
Max(A,B) = (|A-B|+A+B)/2
and probably takes advantage of an Assembler arithmetic rule which produces
|A-B|.
Maybe this one:
If a SETA symbol is used in the operand field of a SETC statement, the
arithmetic value is converted
Nice.
On Wed, Jun 17, 2015 at 5:55 PM, David Cole dbc...@colesoft.com wrote:
Excellent! Just stuff that into an ignorable dsect, and there you go! I
never thought of this method. Very creative.
Dave
At 6/17/2015 05:46 PM, Robert Ngan wrote:
Based on a technique I use to reserve
I think John has started something here... So here's an interesting
problem I had to solve some years ago...
1) Given two non-relocatable equates, define a third equate that is
equal to the MAX of those two. (As far as I know, the Assembler still
does not offer MAX and MIN built-in
10 matches
Mail list logo