Dec2float

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: dec2float register 1, register 2

  • register 1 = Stores the converted float value from the dec value in register 2.
  • register 2 = Register containing dec value to convert to a float value.

Use

Used to convert dec values to float values between registers.

Example


100:     leti R2, 0000001E //Makes register 2 equal 0000001E (30 in dec.)
         dec2float R1, R2 //Converts the dec value of register 2 and stores it as a float value in register 1. Register 1 now equals 4.20389539297445E-44 float.
         ret 

Also see

leti, ret