Download RL78,78K0R Coding - Renesas Electronics
Transcript
CubeSuite+ V2.01.00 CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS [Description] - The BR directive can only be used within a code segment. - The direct jump destination is described as the operand of the BR directive. "$" indicating the current location counter at the beginning of an expression cannot be described. - For optimization, the following conditions must be satisfied. - No more than 1 label or forward-reference symbol in the expression. - Do not describe an EQU symbol with the ADDRESS attribute. - Do not describe an EQU defined symbol for "expression 1 with ADDRESS attribute - expression 2 with ADDRESS attribute". - Do not describe an expression with ADDRESS attribute on which the HIGH/LOW/HIGHW/LOWW/MIRHW/ MIRLW/DATAPOS/BITPOS operator has been operated. If these conditions are not met, the 4-byte BR instruction will be selected. Even if these conditions are met, however, the 4-byte BR instruction may be selected if the branch address is around 10000H and forward and backward references are included. [Example] ADDRESS NAME SAMPLE CSEG AT 00050H BR L1 ; (1) 00052H BR L2 ; (2) 00055H BR L3 ; (3) CSEG AT BR L4 C1 0007DH L1 : 0FFFFH L2 : 10000H L3 : C2 20050H 27FFFH 50H 20050H ; (4) L4 : END (1) This BR directive generates a 2-byte branch instruction (BR $addr20) because the displacement between this line and the branch destination is within the range of -80H and +7FH. (2) The branch destination of this BR directive is within 64 KB, so the BR directive will be substituted with a 3byte branch instruction (BR !addr16). (3) This BR directive will be substituted with the 4-byte branch instruction (BR !!addr20). (4) This BR directive will be substituted with the 3-byte branch instruction (BR $!addr20) because the displacement between this line and the branch destination is without the range of -8000H and +7FFFH. R20UT2774EJ0100 Rev.1.00 Dec 01, 2013 Page 316 of 872
Related documents
8051 Cross Assembler User`s Manual
uPD789014 Subseries 8-bit Single
CC-RL Compiler User`s Manual
CubeSuite Ver.1.30 Integrated Development Environment 78K0
RA78K0R Ver. 1.20 Assembler Package Language UM
Using PDtrace™ with SDE and System Navigator™ for MIPS® Cores
CubeSuite+ V2.00.00 Integrated Development Environment User`s
Pod for IE850 In-circuit Emulator RTE7701412EPA00000R User`s
RI78V4 Real-Time Operating System User`s Manual: Debug
Renesas Starter Kit for RL78/G14 User`s Manual
Renesas Flash Programmer V2.05 Flash memory programming
78K0 Debug - Renesas Electronics