Download 78K0 Coding - Renesas Electronics
Transcript
CubeSuite+ V1.01.00 CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS Attribute Type BIT Classification - Names defined as bit values Value SFR, saddr area - Names in BSEG - Symbols defined with the EXTBIT directive SFR Names defined as SFRs with the EQU directive SFRP Names defined as SFRs with the EQU directive CSEG Segment names defined with the CSEG directive DSEG Segment names defined with the DSEG directive BSEG Segment names defined with the BSEG directive MODULE Module names defined with the NAME directive. (If SFR area These attribute types have no values. not specified, a module name is created from the primary name of the input source filename.) MACRO Macro names defined with the MACRO directive Example TEN EQU 10H ORG 80H ; Name "TEN" has attribute "NUMBER" and value "10H". START : MOV A, #10H ; Label "START" has attribute "ADDRESS" and value "80H". BIT1 0FE20H.0 ; Name "BIT1" has attribute "BIT" and value "0FE20H.0". EQU (4) Mnemonic field Write instruction mnemonics, directives, and macro references in the mnemonic field. If the instruction or directive requires an operand or operands, the mnemonic field must be separated from the operand field with one or more blanks or tabs. However, if the first operand begins with "#", "$","!", or "[", the statement will be assembled properly even if nothing exists between the mnemonic field and the first operand field. <Examples of correct mnemonics> MOV A, #0H CALL !CONVAH RET <Examples of incorrect mnemonics> MOVA C ALL #0H !CONVAH ZZZ R20UT0782EJ0100 Rev.1.00 Oct 01, 2011 ; There is no blank between the mnemonic and operand fields. ; The mnemonic field contains a blank. ; The 78K0 series does not have a ZZZ instruction. Page 258 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