当前位置:网站首页>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
边栏推荐
- Basic knowledge of penetration test
- 高级计网笔记(五)
- Sany Heavy energy technology innovation board listed: annual revenue of RMB 10.2 billion and market value of RMB 47 billion
- CV-背景-简介
- Shengke communication IPO meeting: annual revenue of 460million China Zhenhua and industry fund are shareholders
- Jerry's serial port communication serial port receiving IO needs to set digital function [chapter]
- 为什么要创建公开的OKR?
- Product design - Requirements Analysis
- 1、 Array -- sliding window problem -- subarray with the smallest length -- fruit basket problem
- Leetcode: hash table 02 (intersection of two arrays)
猜你喜欢

Taolue biology rushes to the scientific innovation board: the actual controllers with annual losses of more than 100 million are Zhang Dawei and his wife, who are American nationals

This year, Anhui master fund exploded

韬略生物冲刺科创板:年亏损过亿 实控人张大为夫妇为美国籍

物流服务与管理主要学什么

Yaxiang spice listed on Shenzhen Stock Exchange: with a market value of 4billion, Dinglong Bohui and Yongyao investment are shareholders

【翻译】一种减小运动伪影的新方法基于AS-LMS自适应滤波器的PPG信号

杰理之串口通信 串口接收 IO 需要设置数字功能【篇】

用软件可编程FPGA加速网络边缘的移动应用总结

【Qt】第三、四章:窗口部件、布局管理

从零开发小程序和公众号【第一期】
随机推荐
汇编语言(1)基础知识
杰理之DAC 输出方式设置【篇】
高级计网笔记(四)
Develop small programs and official account from zero [phase II]
Ges graph computing engine hyg unveils the secrets of Graph Segmentation
重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)
TimerTasks笔记
【One by One系列】IdentityServer4(七)授权码流程原理之MVC
获取设备信息相关
Know Chuangyu: content oriented, ai+ artificial empowerment
How can enterprises do business monitoring well?
可编程全功能速率限制器设计硬件交换机
Js25 topic
NLP 论文领读|改善意图识别的语义表示:有监督预训练中的各向同性正则化方法
Obtain equipment information
【NOI2014】15.起床困難綜合症【二進制】
【One by One系列】IdentityServer4(八)使用EntityFramework Core对数据进行持久化
矩阵分析笔记(二)
在Microsoft Exchange Server 2007中安装SSL证书的教程
Requirements and precautions for applying for multi domain SSL certificate