我是靠谱客的博主 孤独冰淇淋,这篇文章主要介绍ARM 学习笔记之9: 常用命令 DCB,现在分享给大家,希望可以做个参考。

DCB
           The DCB directive allocates one or more bytes of memory, and defines the initial runtime contents of the memory.
Syntax
           {label} DCB expr{,expr}...
where:
expr
           is either:
           • A numeric expression that evaluates to an integer in the range -128 to 255.
           • A quoted string. The characters of the string are loaded into consecutive bytes of store.
Usage
           If DCB is followed by an instruction, use an ALIGN directive to ensure that the instruction is aligned.
           = is a synonym for DCB.
Example
Unlike C strings, Arm assembler strings are not nul-terminated. You can construct a nul-terminated C
string using DCB as follows:
           C_string DCB "C_string",0
 

最后

以上就是孤独冰淇淋最近收集整理的关于ARM 学习笔记之9: 常用命令 DCB的全部内容,更多相关ARM内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(102)

评论列表共有 0 条评论

立即
投稿
返回
顶部