Texas Instruments Plugins

ticomplex

Defines a floating-point number that forms one of the two components of a complex number.

Warning

A complex number is made up of two components - this encoding only creates one of those two components for you.

Example

Defines the complex number -234.5+0.25i.

ComplexNumber: .data ticomplex -234.5, +0.25

/*

This outputs the data:

    8C 82 23 45 00 00 00 00 00
    0C 7F 25 00 00 00 00 00 00

To copy the components to OP1 and OP2 you could
do something like this:

    ld hl,ComplexNumber[1]
    rst rMov9ToOP1
    bcall(_OP1toOP2)
    
    ld hl,ComplexNumber[0]
    rst rMov9ToOP1

*/

See Also