当前位置:网站首页>Pseudo instruction in arm assembly

Pseudo instruction in arm assembly

2022-06-22 00:18:00 Hua Weiyun

Pseudo instruction :
  There are four main types of pseudo instructions : Symbols define pseudo instructions , Data definition directives , Assembly control pseudo instructions , Other commonly used pseudo instructions

 picture
     
Symbols define pseudo instructions :
Used to define global variables :GBLA、GBLL、GBLS
Used to define local variables :LCLA、LCLL、LCLS
Used to assign values to variables :SETA、SETL、SETS
Bit general register list defines the name of RLIST
GBLA: Used to define a global numeric variable , And initialize it to 0
GBLL: Logical variables used to define the global , And initialize it to false
GBLS: A string variable used to define the global , And initialize it to null .
LCLA: Used to define a global numeric variable , And initialize it to 0
LCLL: Logical variables used to define the global , And initialize it to false
LCLS: A string variable used to define the global , And initialize it to null .
SETA: Used to assign a value to a numeric variable
SETL: Used to assign a value to a logical variable
SETS: Used to assign values to string variables .

Data definition directives :
DCB: Used to allocate a contiguous byte storage unit and initialize it with the specified data
DCW(DCWU): It is used to allocate a continuous half byte storage unit and initialize it with the specified data .
DCD(DCDU): Used to allocate a contiguous byte storage unit and initialize it with the specified data .
DCFD(DCFDU): Used to allocate a contiguous byte storage unit for double precision floating-point numbers and initialize with the specified data .
DCFS(DCFSU): Used to allocate a contiguous byte storage unit for a single precision floating-point number and initialize it with the specified data .
DCQ(DCQU): Used to allocate a piece to 8 A contiguous byte storage unit in bytes and initialized with specified data .
SPACE: Used to allocate a contiguous piece of storage
MAP The first address of the memory table used to define a structure
FIFLD: The memory table data field used to define a structure

Assembly control pseudo instructions :
IF,ELSE,ENDIF
WHILE,WEND
MACRO,MEND
NEXIT

Other commonly used pseudo instructions :
AREA: Used to define a code segment or data field .
ROUT: Used to define the scope of a local variable .
EQU: For constants in programs , Labels, etc. define an equivalent character name similar to define

ARM Common instruction set shorthand
 picture
原网站

版权声明
本文为[Hua Weiyun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206212226018055.html