| Electronic Components Datasheet Search |
|
UPD70741 Datasheet(PDF) 18 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD70741 Datasheet(HTML) 18 Page - NEC |
|
18 / 112 page ![]() µPD70741 18 3.3.1 Program register set The program register set includes general-purpose registers and a program counter. (1) General-purpose registers The V821 has 32 general-purpose registers, r0-r31. These registers can be used for data or address variables. Registers r0 and r26-r30 are used implicitly with instructions. Caution is therefore necessary when using these registers. Registers r1-r5 and r31 are used implicitly by the assembler and the C compiler. Before using these registers, therefore, the contents of the registers must be saved to prevent their being destroyed. After using the registers, their contents must be restored. Table 3-1. Program Registers Name Use Explanation r0 Zero register Always stores zeros. r1 Assembler-reserved register Used as a working register to create 32-bit immediate. r2 Handler stack pointer Used as a stack pointer for the handler. r3 Stack pointer Used to create a stack frame at a function call. r4 Global pointer Used to access a global variable in a data area. r5 Text pointer Points to the top of a text area r6-r25 - Register for an address/data variable r26 String destination start bit offset Used to execute a bit string instruction. r27 String source start bit offset r28 String length register r29 String destination start address register r30 String start address register r31 Link pointer Stores a return point address according to the execution of a JAL instruction. (2) Program counter Stores the address of an instruction while a program is running. Bit 0 of the program counter (PC) is fixed to 0, thus preventing a branch to an odd address. It is initialized to FFFFFFF0H at reset. |
|
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 |