Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions S3/s3_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,10 +1707,10 @@ int n; /* Significant digit counter */
} /* end function load_decimal */

/*-------------------------------------------------------------------*/
/* Store decimal byte string into packed decimal storage operand */
/* Store decimal byte string into zoned decimal storage operand */
/* */
/* Input: */
/* addr Logical address of packed decimal storage operand */
/* addr Logical address of zoned decimal storage operand */
/* len Length minus one of storage operand (range 0-15) */
/* dec A 31-byte area containing the decimal digits to be */
/* stored. Each byte contains one decimal digit in */
Expand All @@ -1736,9 +1736,9 @@ int i, j, a; /* Array subscripts */
break;
}
}
if (sign == -1) {
PutMem(addr, (GetMem(addr) & 0x0f));
PutMem(addr, (GetMem(addr) | 0xf0));
if (sign == -1) { /* if number is negative */
PutMem(addr, (GetMem(addr) & 0x0f)); /* clear zone bits */
PutMem(addr, (GetMem(addr) | 0xd0)); /* set ZD negative */
}

} /* end function store_decimal */
Expand Down
Loading