Download C51ASM User Guide - Atmel Corporation
Transcript
Assembler Directives value of the particular segment. The numeric value of <expr> must be between 0 and 65536 decimal. The value of <expr> must be known on pass 1! The ORG directive can also be used to place variables at specific locations in the internal extended RAM. At program start, the base address and location counter of the EDATA segment are set to zero. Syntax: ESEG [AT <expr>] .ESEG [AT <expr>] Example: ESEG AT 1000h ;start a new EDATA segment at address 1000H ESEG ;switch to previous EDATA segment See Also: – BSEG, CSEG – DSEG, FSEG – ISEG, XSEG 5.23 FSEG Function: Switch to FDATA segment Description: The FSEG directive defines the start of a FDATA (internal non-volatile data memory) Segment. An assembly source file can consist of several FDATA Segments, which are concatenated into one EDATA Segment when assembled. The FDATA Segments have their own location counter. If a segment base address is specified with "AT <expr>", a new absolute segment is started, and the location counter is set to <expr>. If "AT <expr>" is omitted, the location counter keeps the previous value of the particular segment. The numeric value of <expr> must be between 0 and 65536 decimal. The value of <expr> must be known on pass 1! The ORG directive can also be used to place constants and variables at specific locations in the internal non-volatile data memory (Data Flash or EEPROM). At program start, the base address and location counter of the FDATA segment are set to zero. Syntax: FSEG [AT <expr>] .FSEG [AT <expr>] Example: FSEG AT 1000h ;start a new FDATA segment at address 1000H FSEG ;switch to previous FDATA segment See Also: – BSEG, CSEG – DSEG, ESEG – ISEG, XSEG 5-14 3710A–MICRO–10/10 C51ASM User Guide