| Electronic Components Datasheet Search |
|
MCS11 Datasheet(PDF) 85 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
MCS11 Datasheet(HTML) 85 Page - PADAUK Technology. |
|
85 / 108 page ![]() MCS11 ADC-Type Enhanced FPPA TM Controller ©Copyright 2018, PADAUK Technology Co. Ltd Page 85 of 108 PDK-DS-MCS11_v020 – Apr. 20, 2018 popw word Move the memory data from the address specified in the stack pointer to the word memory (popw word). It needs 2T to execute this instruction. Example: popw word; Result: sp ← sp - 2 ; word ← [sp] ; Affected flags: 『N』Z 『N』C 『N』AC 『N』OV Application Example: ------------------------------------------------------------------------------------------------------------------------ word data0 ; // declare data0 in RAM word data1 ; // declare data1 in RAM … mov a, 0x55 ; mov ld@data0, a ; // move 0x55 to data0 (LSB) mov a, 0xaa ; mov hd@data0, a ; // move 0xaa to data0 (MSB) pushw data0 ; // move data (0xaa, 0x55) to stack memory (word) popw data1 ; // move (0xaa, 0x55) in stack memory to data1 (word) mov a, ld@ptr1 ; // ACC=0x55 mov a, hd@ptr1 ; // ACC=0xaa ------------------------------------------------------------------------------------------------------------------------ popw pcN Restore the program counter of the Nth FPP unit from the memory which address is specified in the stack pointer of current executing FPP unit (popw pcN). It needs 2T to execute this instruction. Example: popw pc3; Result: sp of FPP 0 ← sp of FPP0 - 2 ; pc of FPP 3 ← [sp] of FPP0 ; Affected flags: 『N』Z 『N』C 『N』AC 『N』OV Example : ------------------------------------------------------------------------------------------------------------------------ fpp0_loop: … pushw pc1 ; // store PC1 to stack memory nop; … popw pc1 ; // restore PC1 from stack memory … goto fpp0_loop ; fpp1_loop: … … goto fpp1_loop ; ------------------------------------------------------------------------------------------------------------------------ |
|
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 |