| поискавой системы для электроныых деталей |
|
H8/38774 датащи(PDF) 84 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8/38774 датащи(HTML) 84 Page - Renesas Technology Corp |
|
84 / 594 page ![]() Section 3 Exception Handling Rev. 1.00 Dec. 18, 2006 Page 62 of 568 REJ09B0348-0100 3.5 Usage Notes 3.5.1 Notes on Stack Area Use When word data is accessed in this LSI, the least significant bit of the address is regarded as 0. Access to the stack always takes place in word size, so the stack pointer (SP: R7) should never indicate an odd address. Use PUSH.W Rn (MOV.W Rn, @-SP) or PUSH.L ERn (MOV.L ERn, @-SP) to save registers. Use POP.W Rn (or MOV.W @SP+, Rn) or POP.L ERn (or MOV.L @SP+, ERn) to restore registers: Setting an odd address in SP may cause a program to crash. An example is shown in figure 3.4. PC PC R1L PC SP SP SP H'FEFC H'FEFD H'FEFF → → → H L L MOV. B R1L, @-R7 SP set to H'FEFF Stack accessed beyond SP BSR instruction Contents of PC are lost H [Legend] PCH: PCL: R1L: SP: Upper byte of program counter Lower byte of program counter General register R1L Stack pointer Figure 3.4 Operation when Odd Address is Set in SP When CCR contents are saved to the stack during interrupt exception handling or restored when an RTE instruction is executed, this also takes place in word units. Both the upper and lower bytes of word data are saved to the stack; on return, the even address contents are restored to CCR while the odd address contents are ignored. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |