| Electronic Components Datasheet Search |
|
UPD17P136ACT Datasheet(PDF) 48 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17P136ACT Datasheet(HTML) 48 Page - NEC |
|
48 / 292 page ![]() CHAPTER 4 PROGRAM MEMORY (ROM) 29 (2) Branch address table Example 2 shows an example of code used to reference a branch address table. Example 2. Program to branch to the address of the branch address table. OFFSET MEM 0.00H ; Area to store the offset address. ROMREF: BANK0 ; Stores the start address of the constant data ; table in the AR register. MOV AR3, #.DL.TABLE SHR 12 AND 0FH MOV AR2, #.DL.TABLE SHR 8 AND 0FH MOV AR1, #.DL.TABLE SHR 4 AND 0FH MOV AR0, #.DL.TABLE AND 0FH MOV RPH, #0 ; Sets the register pointer to row address 7. MOV RPL, #7 SHL 1 ADD AR0, OFFSET ; Adds the offset address. ADDC AR1, #0 MOVT DBF, @AR ; Reads the branch address PUT AR, DBF ; AR ← Branch address BR @AR TABLE: DW 0001H ; When OFFSET = 0H DW 0002H DW 0004H DW 0008H DW 0010H DW 0020H DW 0040H DW 0080H DW 0100H DW 0200H ; When OFFSET = 9H END |
|
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 |