Added English language description for addg6s instruction
authorShriya Sharma <shriya@redsemiconductor.com>
Wed, 22 Nov 2023 14:03:58 +0000 (14:03 +0000)
committerShriya Sharma <shriya@redsemiconductor.com>
Wed, 22 Nov 2023 14:03:58 +0000 (14:03 +0000)
openpower/isa/bcd.mdwn

index 81b96158ebb443abbb7dbd6b02b8d8cc96976b06..20e1fc2416df0608d8032c8c7949efe83291e0a4 100644 (file)
@@ -51,6 +51,20 @@ Pseudo-code:
     nibbles_need_sixes <- ¬carries[0:XLEN-1] & ones
     RT <- nibbles_need_sixes * 0b0110
 
+Description:
+
+    The contents of register RA are added to the contents
+    of register RB. Sixteen carry bits are produced, one
+    for each carry out of decimal position n (bit posi-
+    tion 4xn).
+
+    A doubleword is composed from the 16 carry bits, and
+    placed into RT. The doubleword consists of a decimal
+    six (0b0110) in every decimal digit position for which
+    the corresponding carry bit is 0, and a zero (0b0000) in
+    every position for which the corresponding carry bit is
+    1.
+
 Special Registers Altered:
 
     None