Skip to main content
hkurt
Associate III
April 15, 2004
Question

Decimal adjust

  • April 15, 2004
  • 4 replies
  • 1109 views
Posted on April 15, 2004 at 08:18

Decimal adjust

This topic has been closed for replies.

4 replies

hkurt
hkurtAuthor
Associate III
April 8, 2004
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
Visitor II
April 12, 2004
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
hkurtAuthor
Associate III
April 13, 2004
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 III
April 15, 2004
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 ]