[Excerpt] synonym summary for pseudocommands in arm Assembler

Source: Internet
Author: User
Tags constant definition
* Map Map Defines the first address of a structured memory table. In this case, the location counter of the memory table {Var} Set to this address value {Var} Is the built-in variable of the assembler. ^ And Map Synonymous . Pseudocommand format: Map expr , {Base_register} Where: Expr Numeric expression orProgram. When the command does not contain Base_register , Expr It is the first address of the structured memory table. Base_register One register. When the command contains this item, the first address of the structured memory table is Expr And Base_register The sum of register values. Map Pseudocommands and Field These commands are used together to define a structured memory table structure. Map In a pseudocommand Base-register The value of the Register is Field The data domains defined by pseudo-commands are used by default until a new include Base-register Item Map Pseudocommand. * Field Field Defines the data fields in a structured memory table. # And Field Synonymous . Pseudocommand format: {Label} field expr Where: Label When the command contains this item, Label The value is the position counter of the current memory table. {Var} The compilation compiler processes this Field After the pseudocommand is executed, the value of the memory table counter will be added Expr . Expr The number of bytes occupied by the data field in the memory table. Map , Field Pseudo commands only define data structures and do not actually allocate memory units. * Space Space Used to allocate a memory unit and 0 Initialization. % And Space Synonymous . Pseudocommand format: {Label} space expr Where: Label The start address of the memory block. Expr The number of memory bytes to be allocated. * DCB DCB Used to allocate a byte memory unit and use Expr Initialization. Generally, it can be used to define data tables or text strings. = And DCB Synonymous . Pseudocommand format: {Label} DCB expr { , Expr }{ , Expr }... Where: Label The start address of the memory block. Expr It can be-128 ~ A value or string of 255. The number of bytes allocated by the memory is determined Expr The number is determined. * DCD And DCDU DCD It is used to allocate memory units of a segment and uses Expr Initialization. DCD The memory allocated by the pseudocommand needs to be aligned with words. Generally, it can be used to define data tables or other constants. & And DCD Synonymous . DCDU It is used to allocate memory units of a segment and uses Expr Initialization. DCD The memory allocated by pseudo commands does not require word alignment. Generally, it can be used to define data tables or other constants. Pseudocommand format: {Label} DCD expr { , Expr }{ , Expr }... {Label} DCDU expr { , Expr }{ , Expr }... Where: Label The start address of the memory block. Expr A constant expression or a number in a program. Memory Allocation byte count Expr The number is determined. * If , Else And Endif If , Else And Endif A pseudo-command can setCodeIncluded in or excluded from the assembler. [ And If Synonymous, | And Else Synonymous, ] And Endif Synonymous . Pseudocommand format: If logical_expr ; Instruction or pseudoinstruction code segment 1 Else ; Instruction or pseudoinstruction code segment 2 } Endif Where: Logical_expr The logical expression used for control. If the condition is true, the code segment is valid in the Assembly source program. If the condition is not true, the code segment 1 Invalid. Else The code segment is valid.

*Equ

EquA pseudo-command is a numeric constant. It defines a name based on the register value and the label in the program.*AndEquSynonymous.

Command Format:

Name equ expr {,Type}

Where:

NameThe name of the constant to be defined.

Expr Register-based address values, program labels,32Bitwise address constant or32Bit constant.

Type WhenExpr Is32Bit constants, availableTypeInstructionsExpr Indicates the data type. As follows:

Code16

Code32

Data

EquThe role of a pseudo-command is similarCLanguage# Define. Defines a name for a constant.

*GetAndInclude

GetA pseudo-command includes a source file to the current source file, and assembles the contained file at the current location.IncludeAndGftSynonymous

Command Format

Get filename

Include filename

Where:

Filename The name of the source file to be included. You can use the path information.

GetPseudo commands are usually used to contain some macro or constant Definition source files. ExampleEquDefined constant,MapAndFieldDefined structured data types. Such source files are similarCHeaders in languagesParts,Get,IncludePseudo commands cannot be used to contain the target fileIncbinA pseudo command can contain the target file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.