Host Engineering Forum

General Category => DirectSOFT => Topic started by: PureGasControls on December 30, 2008, 05:19:45 PM

Title: LDD vs LDR
Post by: PureGasControls on December 30, 2008, 05:19:45 PM
I have never noticed that there is an LDR instruction in DirectSoft. It seems like it does the same thing as LDD except that it allows you to load real number constants. Is there some other important difference between them? LDD seems to load real values from v-memory without any problems (and faster).
Title: Re: LDD vs LDR
Post by: Controls Guy on December 30, 2008, 05:45:44 PM
I believe you're correct.  The only time you really need to use LDR is loading a constant.  The LDD if used to load a constant is going to want it's argument as 8 hex characters, and who wants to have to do the conversion to IEEE floating point rep manually?
Title: Re: LDD vs LDR
Post by: PureGasControls on December 30, 2008, 06:42:25 PM
Great, thanks for the clarification.