cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal adjust

hkurt
Associate II
Posted on April 15, 2004 at 08:18

Decimal adjust

4 REPLIES 4
hkurt
Associate II
Posted on April 08, 2004 at 16:46

the ASM language of the MC05 and Z86 I have programed until now there is instruction for decimal adjust after SUB and ADD operations.

How can I do this at the ST7 ?
jatin
Associate II
Posted on April 12, 2004 at 09:48

There is no dedicated DAA (decimal adjust) instruction available in ST7. For this you will have to follow the standard algorithm used for hex to BCD conversion.

hkurt
Associate II
Posted on April 13, 2004 at 12:37

I can't believe that. If I have to ADD/SUB 2 packed-BCD Bytes there must be a possibility together with the CC register to adjust the result to a packed BCD-Byte.

On 2004-04-12 13:18, Jatin wrote:

There is no dedicated DAA (decimal adjust) instruction available in ST7. For this you will have to follow the standard algorithm used for hex to BCD conversion.

marco32
Associate II
Posted on April 15, 2004 at 08:18

Is the Half carry in the CC register an option?

Whats happened with the dialog box???

It wasn't me!

[ This message was edited by: Moppie on 15-04-2004 11:49 ]

[ This message was edited by: Moppie on 15-04-2004 11:50 ]