How about something like 
START  DS    0D
GUBBINS1  DS    blah
GUBBINS2  DS    blah
GUBBINS3  DS    blah
END    DS    0D
LENGTH  DC    S(END-START)  

Would not the base register cancel itself out, leaving an absolute number?  
And, if it was inadvertently specified as S(START-END), would it not be flagged 
as an error?  
===


 
> Date: Sun, 17 Aug 2014 17:25:34 -0600
> From: [email protected]
> Subject: Re: How to assign length of generated instructions to macro variable?
> To: [email protected]
> 
> On 2014-08-17, at 16:43, J R wrote:
> 
> > Binyamin suggested an S-con  0S(expression) 
> > which would contain a base and displacement 
> > BDDD.  By "absolute value" the base would be zero. 
> >  
> I believe the only way to force an S-con to use a
> zero base is by DROPping all extant base registers.
> Otherwise the S-constant is free to use any available
> base to resolve the expression.  Perhaps Binyamin
> meant to imply a PUSH-DROP-0S(EXPRESSION)-POP sequence.
> The unwary user should at least be warned of this.
> 
> -- gil
                                          

Reply via email to