当前位置:网站首页>Principles of microcomputer Chapter 6 notes arrangement
Principles of microcomputer Chapter 6 notes arrangement
2022-06-23 18:57:00 【Bachuan Xiaoxiaosheng】
Command system
Machine instruction set
Command word
A string of bits representing a particular instruction
contain
- opcode
- Operands ( There may be more than one )
- Operand address
Need to point out that
- Operation type
- Operand type
- Addressing mode
T32
And then there is 16 Bit instructions have 32 Bit instruction , Half word alignment ,32 Bit instruction two and a half words ,16 One place , Pass the half word maximum 5 Bit discrimination
Assembly syntax
< o p c o d e > [ c o n d ] [ q ] [ S ] < R d > < R n > [ , O p r a n d 2 ] <opcode>[cond][q][S]<Rd><Rn>[,Oprand2] <opcode>[cond][q][S]<Rd><Rn>[,Oprand2]
among <> Mandatory [] Optional
- opcode: Mnemonic , Describe the type of operation
- cond: Condition code
- q: Width selection
- N-16
- W-32
- S: Automatically update after adding APSR Flag bit value
- Rd, Target operands , register
- Rn, First source operand , register
- Oprand2: Second source operand , Register or immediate
Condition execution
APSR
- N negative
- Z zero
- C carry
- V overflow
- Q saturated
- GE be used for DSP Expand
Condition code
- EQ be equal to
- NE It's not equal to
- CS carry
- CC Carry to zero
- MI negative
- PL Integer or zero
- VS overflow
- VC No overflow
- HI No sign greater than
- LS Unsigned less than or equal to
- GE Signed greater than or equal to
- LT Signed less than
- LT Signed less than
- GT There is a sign greater than
- LE Unsigned less than or equal to
- AL Unconditional
Mnemonic symbol
- ADD
- LDM Store multiple... Into multiple registers 32 Bit value
- LDR take 32 The bit value is stored in the register
- MOV
- STM Store multiple register values into memory
- STR The of a register 32 The number of bits is stored in memory
- SUB
IT Instructions
Yes
- IT
- ITT
- ITE
- ITTE
- ITTEE
Addressing mode
Operand addressing
Data addressing
Used to determine the address of the operand in the current instruction
Command addressing
Determine the next instruction address
Can be divided into
| Operand position | Addressing mode |
|---|---|
| In the instruction | Count now |
| register | register |
| Register displacement | |
| Memory data area | Register indirect |
| Register Offset | |
| Front index | |
| Post indexing | |
| Multiple registers | |
| Stack | |
| Memory code area | PC Relative addressing |
Immediate addressing
The operand is contained in the instruction , Fetching an instruction fetches the operand
Register addressing
Register direct addressing , Make the value in the register an operand
Register indirection
The register value is the operand address , The operand itself is in memory
Register shift addressing
ARM specific , The register is addressed to the operand and shifted to the real operand
Register offset addressing
The operand address is obtained by adding the value stored in the register and the address offset given by the instruction
This register is the base register , The given offset has
- Count now
- register
- Register shift
Pre indexed addressing
Automatically add the base address and offset to form the operand address and write it back to the register , Occurs before addressing , So it is called pre indexing
It is good for looping statements
Post indexing
Occurs after addressing
Multi register addressing
Some instructions can load contiguous storage areas into multiple registers
- LDM{addr_mode}{!},
Rn Is the base register ,{!} Indicates that the modified address needs to be written back to the base address register ,{addr_mode} Optional I( Increasing )/D( Decline ) and A( After taking the value )/B( Before value )
- STM Write registers to memory
Stack addressing
Replace the base address in multi register addressing with stack pointer register SP, And add {!}
Note that it is full decreasing
PC Relative addressing
Short for relative addressing
With PC Value is base address , The address label in the instruction is offset , Add the two together
Cortex-M3/M4 Instruction set
Data transfer instructions in the processor
Register to register
General registers and special registers
Count to register immediately
Memory access instructions
This special exam will be given , There are too many instructions , skip
ah , sorry , The following is all about how to use instructions , skip , Next chapter
边栏推荐
- #19生成器函数经典案例
- DigiCert和GlobalSign单域名OV SSL证书对比评测
- 高级计网笔记(八)
- Rancher2.6 new monitoring QuickStart
- How far is the rise of cloud native industry applications from "available" to "easy to use"?
- Jerry added an input capture channel [chapter]
- Talk about row storage and column storage of database
- Shunted Self-Attention | 源于 PvT又高于PvT,解决小目标问题的ViT方法
- 1、 Array -- sliding window problem -- subarray with the smallest length -- fruit basket problem
- 微机原理第五章笔记整理
猜你喜欢

重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)

Leetcode: hash table 04 (sum of two numbers)

Rancher2.6 new monitoring QuickStart

Shengke communication IPO meeting: annual revenue of 460million China Zhenhua and industry fund are shareholders

Take out Jianghu will change, and meituan "big brother" is hard to be

Yapi installation

yapi安装

三一重能科创板上市:年营收102亿 市值470亿

杰理之DAC 输出方式设置【篇】

Description of all shortcut keys in win11 system
随机推荐
pmp考试需要备考多长时间?
杰理之添加定时器中断【篇】
2022年升降机司机考试题模拟考试平台操作
矩阵分析笔记(三-1)
Borui data attends Alibaba cloud observable technology summit, and digital experience management drives sustainable development
高级计网笔记(四)
【One by One系列】IdentityServer4(四)授权码流程
元宇宙大杀器来了!小扎祭出4款VR头显,挑战视觉图灵测试
【Qt】第十章:数据库
【翻译】具有时间结构的特定信号的鲁棒提取(下)
【One by One系列】IdentityServer4(六)授权码流程原理之SPA
CV-背景-简介
Product feedback mechanism
NLP 论文领读|改善意图识别的语义表示:有监督预训练中的各向同性正则化方法
GES图计算引擎HyG揭秘之图切分
韬略生物冲刺科创板:年亏损过亿 实控人张大为夫妇为美国籍
学习编程只需要这三条建议!
机器学习工作岗位
CV-卷积神经网络
Yaxiang spice listed on Shenzhen Stock Exchange: with a market value of 4billion, Dinglong Bohui and Yongyao investment are shareholders