当前位置:网站首页>Chapter 8 - two basic problems of data processing
Chapter 8 - two basic problems of data processing
2022-06-12 08:54:00 【Pickup Ping】
Two basic problems of data processing
- introduction
- 8.1 bx、si、di、bp
- 8.2 Location of data processed by machine instructions
- 8.3 The expression of data position in assembly language
- 8.4 Addressing mode
- 8.5 How long is the data to be processed by the instruction ?
- 8.6 Comprehensive application of addressing mode
- 8.7div Instructions
- 8.8 Pseudo instruction dd
- 8.9dup
introduction
- reg( register ) aggregate :ax、bx、cx、dx、ah、al、bh、bl、ch、cl、dh、dl、sp、bp、si、di;
- sreg( Segment register ) aggregate :ds、ss、cs、es( Extension )
8.1 bx、si、di、bp
- Can be used as [bp]
- The four combinations can only appear as follows :bx and si、bx and di、bp and si、bp and di
- If not given directly bp Section address of 、 The segment address defaults to ss
8.2 Location of data processed by machine instructions
Before the command is executed , The data to be processed can be in three places :CPU Inside 、 Memory 、 port

idata ( Count now )
register
Segment address SA And offset address EA
8.3 The expression of data position in assembly language
- A register that explicitly gives the address of a storage segment
- The register storing the segment address is the default
8.4 Addressing mode

8.5 How long is the data to be processed by the instruction ?
byte---- 8 position
word—16 position
High address points to high byte
The size of the data to be processed is indicated by the register name
The operator X ptr Indicates the length of the memory unit
mov word ptr ds:[0],1 # therefore ds:[0] Deposit is 0001H
mov byte ptr ds:[0],1 # therefore ds:[0] Deposit is 01H
Other methods
- push[1000H] There is no need to specify what data is being accessed , because push Instructions only perform word operations .
8.6 Comprehensive application of addressing mode
8.7div Instructions
- Division instructions , Divisor in memory unit or register , The divisor is in AX or DX and AX in
| Divisor | Divisor |
|---|---|
| 8 position | 16 position (AX) |
| 16 position | 32 position (DX+AX) |
If the divisor is 8 position , Shang Zai AL, The remainder is in AH
If the divisor is 16 position , Shang Zai AX, The remainder is in DX
Command format
div reg
div Memory unit
div byte ptr ds:[0]#(al)=(ax)/((ds)*16+0) The business of ,(ah)=(ax)/((ds)*16+0) The remainder of
div word ptr es:[0]#(ax)=[(dx)*100000H+(ax)]/((ds)*16+0) The business of ,(dx)=[(dx)*100000H+(ax)]/((ds)*16+0) The business of ,
8.8 Pseudo instruction dd
data segment
db 1
dw 1
dd 1
data ends
stay data Three data are defined in the section :
The first data is 01H, stay data:0 It's about , Occupy 1 Bytes ;
The second data is 0001H, stay data:1 It's about , Occupy 1 A word ;
The third data is 00000001H,data:3 It's about , Occupy 2 Bytes ;
8.9dup
db Number of repetitions dup( Duplicate byte data )
db 3 dup(0)# Defined 3 Bytes , Their values are all 0, amount to db,0,0,0
db 3 dup(0,1,2)# Defined 9 Bytes , They are 0、1、2、0、1、2、0、1、2
db 3 dup('abc','ABC')# Definition 18 Bytes , They are 'abcABCabcABCabcABC'
边栏推荐
- 【字符集八】char8_t、char16_t、char32_t、wchar、char
- MFS explanation (IV) -- MFS management server installation and configuration
- [advanced pointer III] implement C language quick sorting function qsort & callback function
- [untitled] task3 multiple recall
- POI library update excel picture
- 【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组
- Regular verification user name
- Set up redis sentinel cluster (instance):
- Code generation tool Autocode for XML Publishing
- Building a cluster: and replacing with error
猜你喜欢

ip、DNS、域名、URL、hosts

Centos8 installing MySQL 8.0 (upper)

【数据存储】浮点型数据在内存中的存储

Set up redis sentinel cluster (instance):

2022 safety officer-c certificate special operation certificate examination question bank and simulation examination

Adjust SVG width and height

《MATLAB 神經網絡43個案例分析》:第7章 RBF網絡的回歸--非線性函數回歸的實現

Oracle installation details (verification)

【动态内存管理】malloc&calloc和realloc和笔试题和柔性数组

《MATLAB 神经网络43个案例分析》:第8章 GRNN网络的预测----基于广义回归神经网络的货运量预测
随机推荐
了结非对称密钥
Random acquisition of 4-digit non repeated verification code
Wechat applet image saving function
(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
(P14) use of the override keyword
Webrtc series - mobile terminal hardware coding supports simulcast
Encapsulate the amount input box component.
【sklearn学习】LightGBM
Adjust SVG width and height
第四章-第一个程序
Binlog in mysql:
RuntimeError:Input and parameter tensors are not at the same device, found input tensor at cuda:0 an
Domain name mapping to specified IP
Audio and video engineer (Preliminary) (I) basic concepts of audio and video
(十四)InputField逻辑分析
Regularization to limit the number of digits after the decimal point of an input number
[new planning]
Difference between binary GB and gib
处理异常数据
ip、DNS、域名、URL、hosts