当前位置:网站首页>Chapter V -[bx] and loop instructions
Chapter V -[bx] and loop instructions
2022-06-12 08:54:00 【Pickup Ping】
The fifth chapter -[bx] and Loop Instructions
- In the front
- 5.1 [bx]
- 5.2Loop Instructions
- 5.3 stay Debug For tracking loop A circular program implemented by instructions
- 5.4Debug And assembler compiler Masm Different processing of instructions
- 5.5loop and [bx] The combined application of
- 5.6 Segment prefix
- 5.7 A safe space
- 5.8 The use of segment prefixes
In the front
[bx] And the description of the memory unit
- [bx] and [0] Some similar ,[0] Represents a memory unit , Its offset address is 0
- To describe a memory unit , Two messages are required :1. Memory unit address ,2. Memory unit length .
- [bx] It also means a memory unit , Its offset address is in bx in :mov ax,[bx] or mov al,[bx]
Loop
It's a cycle
Descriptive symbols “()”
Represents the contents of a register or a memory unit
idata
- Represents a constant
5.1 [bx]
take bx As an offset address
- mov ax,[bx]
take ax The data is sent to the indicated memory
mov [bx],ax
5.2Loop Instructions
loop label
Two step operation :
1.(cx)=(cx)-1;
2, Judge cx The value in , If it is not zero, it will go to the label to execute the program , If 0 Then go down .
- Usually we use Loop Instruction to implement the loop function ,cx The number of storage cycles in .
5.3 stay Debug For tracking loop A circular program implemented by instructions
- g command : g ip Jump right after the loop
5.4Debug And assembler compiler Masm Different processing of instructions
masm incognizance [0],Debug know
5.5loop and [bx] The combined application of
S: mov al, [bx]
mov ah, 0
add dx, ax
inc bx
loop s
5.6 Segment prefix
- Instructions “mov ax,[bx]” in , The offset address of the memory unit is determined by bx give , The default segment address is in ds in
- We can display the address in the instruction accessing the memory unit, and give the segment register where the segment address of the memory unit is located
- “cs:0”、“ss:0” in cs,ss Are segment prefixes .
5.7 A safe space
- It is very dangerous to write content randomly like a piece of memory space , It may be system data or code
- In a normal PC In flight ,DOS Under way ,DOS And other legal systems are not easy to use 0:200~0:2FF Of 256 Bytes of space . So it's safe for us to use this space .
5.8 The use of segment prefixes
mov es:[bx], dl
边栏推荐
- Regularization to limit the number of digits after the decimal point of an input number
- [compilation principle] understand BNF
- Gets the number of occurrences of a character in a string
- Flink CheckPoint : Exceeded checkpoint tolerable failure threshold
- Background position position NOUN
- [data storage] storage of floating point data in memory
- About weights exercise
- 【指針進階三】實現C語言快排函數qsort&回調函數
- 进制GB和GiB的区别
- [open source project] easycmd command graphical software
猜你喜欢

Redis installation test

IP, DNS, domain name, URL, hosts

Xshell startup encountered "unable to continue code execution because mfc110.dll cannot be found"

Chapter IV - first procedure

【新规划】

ERROR 1630 (42000): FUNCTION a.avg does not exist. Check the ‘Function Name Parsing and Resolution‘

Building a cluster: and replacing with error

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

Background color translucent

通俗理解时域采样与频域延拓
随机推荐
Configuration and principle of MSTP
2022.6.9-----leetcode. four hundred and ninety-seven
【字符集八】char8_t、char16_t、char32_t、wchar、char
(十三)文本渲染Text
Random acquisition of 4-digit non repeated verification code
The difference between deep copy and shallow copy
IDEA新版UI申请方法+无测试资格使用方法及相关介绍
域名映射到指定IP
Union selector
[compilation principle] understand BNF
Engineers learn music theory (III) interval mode and chord
About weights exercise
第八章-数据处理的两个基本问题
Problems that cannot be resolved by tar command
The newline character with in the string is converted to an array
Get last month, current time and next month
【进阶指针二】数组传参&指针传参&函数指针&函数指针数组&回调函数
The database doesn't know what went wrong
Centos8 installing MySQL 8.0 (upper)
2022 safety officer-c certificate special operation certificate examination question bank and simulation examination