Download 78K0 Coding - Renesas Electronics
Transcript
CubeSuite+ V1.01.00 CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS The following figure shows the data saved/restored by stack operations. Caution The contents of the stack pointer are undefined after RESET generation. Be sure to initialize SP before using the stack. Figure 4-11. Data Saved to Stack Memory PUSH rp instructions Interrupt and BRK instructions CALL and CALLT instructions SP <- SP-3 SP <- SP-2 SP <- SP-2 SP-3 PC7-PC0 PC15-PC8 SP-2 Lower half register pairs SP-2 PC7-PC0 SP-2 SP-1 Upper half register pairs SP-1 PC15-PC8 SP-1 SP-> SP-> PSW SP-> Figure 4-12. Data Restored to Stack Memory RET instructions POP rp instructions RETI and RETB instructions SP-> PC7-PC0 PC15-PC8 SP-> Lower half register pairs SP-> PC7-PC0 SP+1 SP+1 Upper half register pairs SP+1 PC15-PC8 SP+2 SP <- SP+2 SP <- SP+2 PSW SP <- SP+3 (2) General registers General-purpose registers are mapped to the addresses FFEE0H to FFEFFH in data memory. There are four general-purpose register banks, each bank consisting of eight 8-bit registers (X, A, C, B, E, D, L, and H). Each register can be used as an 8-bit register, and pairs of 8-bit registers can be used as 16-bit registers (AX, BC, DE, and HL). General-purpose registers can be specified by their function names (X, A, C, B, E, D, L, H, AX, BC, DE, and HL) or by their absolute names (R0 to R7 and RP0 to RP3). The register bank to be used for instruction execution is set by the CPU control instruction SEL RBn. The 4-bank configuration enables switching between the registers used for normal processing and registers used by interrupts, which can increase program efficiency. R20UT0782EJ0100 Rev.1.00 Oct 01, 2011 Page 451 of 836
Related documents
CubeSuite Ver.1.30 Integrated Development Environment 78K0
uPD78F0828B 8-bit Single-Chip Microcontroller Flash Self
CA850 Ver. 3.20 C Compiler Package C Language UM
78K0/Kx2 8-Bit Single-Chip Microcontrollers Flash Memory
Renesas Starter Kit for RSK+RX64M Code Generator Tutorial Manual
RL78,78K0R Coding - Renesas Electronics
CubeSuite+ V1.00.00 Integrated Development Environment User`s
CubeSuite Ver.1.40 Integrated Development Environment User`s
CubeSuite+ V2.00.00 Integrated Development Environment User`s
RH850 Build - Renesas Electronics