News:

  • June 09, 2026, 07:50:19 AM

Login with username, password and session length

Author Topic: LDD vs LDR  (Read 10117 times)

PureGasControls

  • Newbie
  • *
  • Posts: 5
LDD vs LDR
« 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).

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: LDD vs LDR
« Reply #1 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?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

PureGasControls

  • Newbie
  • *
  • Posts: 5
Re: LDD vs LDR
« Reply #2 on: December 30, 2008, 06:42:25 PM »
Great, thanks for the clarification.