see
http://www.z390.org/
That will work, but why not use ZAP (Zero and Add decimal) to just "copy" W to Z?fast_learner wrote:... Please note - I have assumed that Z would be first filled with zeroes using ZAP and then it will be used to store the addition of W+X+Y.
steve-myers wrote:There are two "ringers" here.[list]
Mr. Scherrer's analysis about packed decimal signs is incorrect. There is no such thing as a hexadecimal O (character O, not digit 0). A packed decimal sign is the last 4 bits (1 hexadecimal digit) of a packed decimal value. There are two classes of packed decimal signs.[list]
[*]"Preferred" signs: C for positive and D for negative. The packed decimal instructions always generate a "preferred" sign. To a lazy eye, D often looks like O,
[*]Alternate signs: A, B, E and F. The only one I have memorized is F, which is considered to be positive.