BTI

Top  Previous  Next

 

Convert BCD in accu 1 into integer.

 

The accu 1 that is interpreted as 3-digit BCD-number is converted into a 2-bytes-binary number and the result is stored in accu 1-L.

 

The 4 most significant bits are interpreted as sign. If they are all ‘1’ the result will be negative.

 

There will be no controlling whether the number in accu 1 is a valid BCD-number.

 

Until version 2.1 this function has interpreted the accu 1 as 4-digit, always positive BCD-number by mistake. That is why programs that have made use of this property are faulty now.

 

The use of BTD will put things right.

 

See also:

BTD

DTR

ITD

ITB

DTB

 

List of operations