DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

HMS97C8032 데이터 시트보기 (PDF) - Hynix Semiconductor

부품명
상세내역
제조사
HMS97C8032 Datasheet PDF : 157 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
HMS91C8032/97C8032
Register Instructions
The register banks, containing registers R0 through R7, can be
accessed by certain instructions which carry a 3-bit register spec-
ification within the opcode of the instruction. Instructions that ac-
cess the registers this way are code efficient, since this mode
eliminates an address byte. When the instruction is executed, one
of the eight registers in the selected bank is accessed. One of four
banks is selected at execution time by the two bank select bits in
the PSW.
Register-Specific Instructions
Some instructions are specific to a certain register. For example,
some instructions always operate on the Accumulator, or Data
Pointer, etc., so no address byte is needed to point to it. The op-
code itself does that. Instructions that refer to the Accumulator as
A assemble as accumulator specific opcodes.
Immediate Constants
The value of a constant can follow the opcode in Program Mem-
ory. For example,
MOV A, #100
loads the Accumulator with the decimal number 100. The same
number could be specified in hex digits as 64H.
Indexed Addressing
Only Program Memory can be accessed with indexed addressing,
and it can be read. This addressing mode is intended for reading
look-up tables in Program Memory. A 16-bit base register (either
DPTR or the Program Counter) points to the base of the table, and
the Accumulator is set up with the table entry number.
The address of the table entry in Program Memory is formed by
adding the Accumulator data to the base pointer.
Another type of indexed addressing is used in the "case jump" in-
struction. In this case the destination address of a jump instruction
is computed as the sum of the base pointer and the Accumulator
data.
3.3 Arithmetic Instructions
The arithmetic instructions is listed in Table 3-1. The table indi-
cates the addressing modes that can be used with each instruction
to access the <byte> operand. For example, the ADD A, <byte>
instruction can be written as:
ADD
ADD
ADD
ADD
a, 7FH (direct addressing)
A, @R0 (indirect addressing)
a, R7 (register addressing)
A, #127 (immediate constant)
Note that any byte in the internal Data Memory space can be in-
cremented without going through the Accumulator.
One of the INC instructions operates on the 16-bit Data Pointer.
The Data Pointer is used to generate 16-bit addresses for external
memory, so being able to increment it in one 16-bit operations is
a useful feature.
The MUL AB instruction multiplies the Accumulator by the data
in the B register and puts the 16-bit product into the concatenated
B and Accumulator registers.
The DIV AB instruction divides the Accumulator by the data in
the B register and leaves the 8-bit quotient in the Accumulator,
and the 8-bit remainder in the B register.
MNEMONIC
ADD A,<byte>
ADDC A,<byte>
SUBB A,<byte>
IN C
INC <byte>
INC DPTR
DEC A
DEC <byte>
MUL AB
DIV AB
DA A
OPERATION
A = A+<byte>
A = A+<byte>+C
A = A-<byte>-C
A = A+1
<byte> = <byte>+1
DPTR = DPTR+1
A = A-1
<byte> = <byte>-1
B:A = B x A
A = Int[A/B]
B = Mod[A/B]
Decimal Adjust
ADDRESSING MODES
Dir
Ind
Reg
X
X
X
X
X
X
X
X
X
Accumulator only
X
X
X
Data Pointer only
Accumulator only
X
X
X
ACC and B only
ACC and B only
Accumulator only
Table 3-1 HMS9XC8032 Arithmetic Instructions
Imm
X
X
X
NOV., 2001 Ver 1.02
9

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]