| Electronic Components Datasheet Search |
|
HMS91C8032 Datasheet(PDF) 12 Page - Hynix Semiconductor |
|
|
|||||||||||||||||||||||||||||
HMS91C8032 Datasheet(HTML) 12 Page - Hynix Semiconductor |
|
12 / 157 page ![]() HMS91C8032/97C8032 NOV., 2001 Ver 1.02 9 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 a, 7FH (direct addressing) ADD A, @R0 (indirect addressing) ADD a, R7 (register addressing) ADD 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 OPERATION ADDRESSING MODES Dir Ind Reg Imm ADD A,<byte> A = A+<byte> X X X X ADDC A,<byte> A = A+<byte>+C X X X X SUBB A,<byte> A = A-<byte>-C X X X X IN C A = A+1 Accumulator only INC <byte> <byte> = <byte>+1 X X X INC DPTR DPTR = DPTR+1 Data Pointer only DEC A A = A-1 Accumulator only DEC <byte> <byte> = <byte>-1 X X X MUL AB B:A = B x A ACC and B only DIV AB A = Int[A/B] B = Mod[A/B] ACC and B only DA A Decimal Adjust Accumulator only Table 3-1 HMS9XC8032 Arithmetic Instructions |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |