SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 171

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
General-Purpose Transfers
Accumulator-Specific Transfers
Address-Object Transfer
9.2.2
The SAB 80C517 has four basic mathematical operations. Only 8-bit operations using unsigned
arithmetic are supported directly. The overflow flag, however, permits the addition and subtraction
operation to serve for both unsigned and signed binary integers. Arithmetic can also be performed
directly on packed BCD representations.
Addition
Semiconductor Group
– MOV performs a bit or byte transfer from the source operand to the destination operand.
– PUSH increments the SP register and then transfers a byte from the source operand to the
– POP transfers a byte operand from the stack location addressed by the SP to the destination
– XCH exchanges the byte source operand with register A (accumulator).
– XCHD exchanges the low-order nibble of the source operand byte with the low-order nibble
– MOVX performs a byte move between the external data memory and the accumulator. The
– MOVC moves a byte from program memory to the accumulator. The operand in A is used as
– MOV DPTR, #data loads 16 bits of immediate data into a pair of destination registers, DPH
– INC (increment) adds one to the source operand and puts the result in the operand.
– ADD adds A to the source operand and returns the result to A.
– ADDC (add with carry) adds A and the source operand, then adds one (1) if CY is set, and
– DA (decimal-add-adjust for BCD addition) corrects the sum which results from the binary
stack location currently addressed by SP.
operand and then decrements SP.
of A.
external address can be specified by the DPTR register (16 bit) or the R1 or R0 register (8 bit).
an index into a 256-byte table pointed to by the base register (DPTR or PC). The byte operand
accessed is transferred to the accumulator.
and DPL.
puts the result in A.
addition of two-digit decimal operands. The packed decimal sum formed by DA is returned to
A. CY is set if the BCD result is greater than 99; otherwise, it is cleared.
Arithmetic
172
Instruction Set

Related parts for SAB80C517-M16