当前位置:网站首页>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'
边栏推荐
- Use NVM to dynamically adjust the nodejs version to solve the problem that the project cannot be run and packaged because the node version is too high or too low
- Webrtc series - mobile terminal hardware coding supports simulcast
- 第四章-第一个程序
- (p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef
- Background position - exact units
- ip、DNS、域名、URL、hosts
- 【字符集九】gbk拷贝到Unicode会乱码?
- 调整svg宽高
- 动态线段树leetcode.699
- Redis installation test
猜你喜欢

Binlog in mysql:

Centos8 installing MySQL 8.0 (upper)
![[new planning]](/img/8e/0e15e0f3ee08002eaceea1fe8948ec.jpg)
[new planning]
![[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array](/img/d2/a6276d8415c46124920395df5651d1.png)
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array

《MATLAB 神经网络43个案例分析》:第8章 GRNN网络的预测----基于广义回归神经网络的货运量预测
![[data storage] storage of floating point data in memory](/img/c4/a67735858ce5d58bd504b087a2d123.png)
[data storage] storage of floating point data in memory

【指针进阶三】实现C语言快排函数qsort&回调函数

(p15-p16) optimization of the right angle bracket of the template and the default template parameters of the function template

Configuration and principle of MSTP

通俗理解时域采样与频域延拓
随机推荐
Webrtc series - mobile terminal hardware coding supports simulcast
【字符集九】gbk拷贝到Unicode会乱码?
Engineers learn music theory (II) scale and tendency
Redis installation test
Specify 404 and 500 error reporting pages.
Flink CheckPoint : Exceeded checkpoint tolerable failure threshold
Popular understanding of time domain sampling and frequency domain continuation
sql中的Exists用法
(P14) use of the override keyword
(p19-p20) delegate constructor (proxy constructor) and inheritance constructor (using)
Close asymmetric key
【字符集六】宽字符串和多字节字符互转
Adjust SVG width and height
【字符集七】汉字的宽字符码和多字节码分别是多少
The database doesn't know what went wrong
Dynamic segment tree leetcode six hundred and ninety-nine
(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
[character set 8] char8_ t、char16_ t、char32_ t、wchar、char
Error: ER_ NOT_ SUPPORTED_ AUTH_ MODE: Client does not support authentication protocol requested ... ...
Background attribute compound writing