Re: Floating Point Definitions

2008-04-30 Thread Howard Rifkind
Thanks,

But can you give me an example of how one would code
the instruction, showing a difference between GPR and
the floating point register.

If you could use an EQU it would clear up the
confusion to anyone reading the program.

Thanks.
--- Binyamin Dissen [EMAIL PROTECTED]
wrote:

 On Sun, 27 Apr 2008 11:28:00 -0700 Howard Rifkind
 [EMAIL PROTECTED] wrote:
 
 :I want to use some of the floating point registers
 for
 :general register purposes.  I was told I could do
 this
 :but I don't understand how to define them in the
 :assembler language program.
 
 Only for some purposes.
 
 :For instance, I would define a general register
 with
 :an equate such as:
 
 :R10   EQ  2  Equate Register 2 to R10
 
 :However I would I do this for Floating point
 register
 :3.
 
 :Hope my questions is clear.
 
 :And do I have to normalize the floating point
 register
 :to use it for normal addresses?
 
 You can't use them to address data.
 
 You can save a GPR in an FPR with the appropriate
 hardware, but it would lead
 to most confusing code (IMHO).
 
 You can use them for fixed point operations.
 
 --
 Binyamin Dissen [EMAIL PROTECTED]
 http://www.dissensoftware.com
 
 Director, Dissen Software, Bar  Grill - Israel
 
 
 Should you use the mailblocks package and expect a
 response from me,
 you should preauthorize the dissensoftware.com
 domain.
 
 I very rarely bother responding to
 challenge/response systems,
 especially those from irresponsible companies.
 

--
 For IBM-MAIN subscribe / signoff / archive access
 instructions,
 send email to [EMAIL PROTECTED] with the message:
 GET IBM-MAIN INFO
 Search the archives at
 http://bama.ua.edu/archives/ibm-main.html
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Floating Point Definitions

2008-04-30 Thread Roger Bowler
On Wed, 30 Apr 2008 17:48:05 +0300, Binyamin Dissen wrote:

You can do

FP2   EQU   2
R2EQU   2

and if you

LRR3,FP2

GR2 will be copied, not FPR2.

And with the current release of HLASM you can also do this:

R2   EQU   2GR
R3   EQU   3GR
...
FP2  EQU   2FPR

and HLASM will then flag the above LR statement with a warning:

** ASMA323W Symbol FP2 has incompatible type with general register field


Regards,
Roger Bowler

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Floating Point Definitions

2008-04-27 Thread Howard Rifkind
Speaking of Floating Point,

I want to use some of the floating point registers for
general register purposes.  I was told I could do this
but I don't understand how to define them in the
assembler language program.

For instance, I would define a general register with
an equate such as:

R10   EQ  2  Equate Register 2 to R10

However I would I do this for Floating point register
3.

Hope my questions is clear.

And do I have to normalize the floating point register
to use it for normal addresses?

Thanks.


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Floating Point Definitions

2008-04-27 Thread Binyamin Dissen
On Sun, 27 Apr 2008 11:28:00 -0700 Howard Rifkind [EMAIL PROTECTED] wrote:

:I want to use some of the floating point registers for
:general register purposes.  I was told I could do this
:but I don't understand how to define them in the
:assembler language program.

Only for some purposes.

:For instance, I would define a general register with
:an equate such as:

:R10   EQ  2  Equate Register 2 to R10

:However I would I do this for Floating point register
:3.

:Hope my questions is clear.

:And do I have to normalize the floating point register
:to use it for normal addresses?

You can't use them to address data.

You can save a GPR in an FPR with the appropriate hardware, but it would lead
to most confusing code (IMHO).

You can use them for fixed point operations.

--
Binyamin Dissen [EMAIL PROTECTED]
http://www.dissensoftware.com

Director, Dissen Software, Bar  Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html