awk字符串字符串处理函数
While talking about the 8086 microprocessors, the Strings can be defined as the collection of ASCII characters. Each ASCII character is of one byte, and each byte of a String is stored at successive memory locations.
在谈论8086微处理器时,可以将字符串定义为ASCII字符的集合。 每个ASCII字符为一个字节,字符串的每个字节存储在连续的存储位置中。
Source Index (SI), Destination Index (DI) and the general-purpose register-CX (which functions as a counter) are the registers involved in performing string operations.
源索引(SI),目标索引(DI)和通用寄存器CX(用作计数器)是执行字符串操作所涉及的寄存器。
The following are the various string manipulation instructions in the 8086 microprocessor:
以下是8086微处理器中的各种字符串操作指令 :
1) REP
1)REP
Stands for 'Repeat'. This instruction repeats the given instruction(s) till CX does not becomes zero, i.e. CX!=0
代表“重复” 。 该指令重复给定的指令,直到CX不为零,即CX!= 0
REP instruction_to_be_repeated
2) REPE
2)重复
This instruction repeats the given instruction(s) till CX remains zero, i.e. CX=0
该指令重复给定指令,直到CX保持为零,即CX = 0
REPE instruction_to_be_repeated
3) REPZ
3)REPZ
It repeats the given instruction(s) while ZF remains 1, i.e. ZF=1
当ZF保持为1时,它将重复给定的指令,即ZF = 1
REPZ instruction_to_be_repeated
4) REPNE
4)重复
This instruction is same as REP. It repeats the given instruction(s) till CX remains zero, i.e. CX=0
该指令与REP相同。 它重复给定的指令,直到CX保持为零,即CX = 0
REPZ instruction_to_be_repeated
5) REPNZ
5)REPNZ
It repeats the instructions while ZF=0
ZF = 0时重复指令
REPNZ instruction_to_be_repeated
6) MOVSB
6)MOVSB
Stands for 'Move String Byte'. It moves the contents of a byte (8 bits) from DS:SI to ES:DI
代表“移动字符串字节” 。 它将字节的内容(8位)从DS:SI移至ES:DI
MOVSB
7) MOVSW
7)MOVSW
Stands for 'Move String Word'. It moves the contents of a word (16 bits) from DS:SI to ES:DI
代表“移动字符串词” 。 它将字的内容(16位)从DS:SI移至ES:DI
MOVSW
8) MOVSD
8)MOVSD
Stands for 'Move String Double Word'. It moves the contents of a double word (32 bits) from DS:SI to ES:DI
代表“移动字符串双字” 。 它将双字(32位)的内容从DS:SI移至ES:DI
MOVSD
9) CMPSB
9)CMPSB
Stands for 'Compare String Byte'. It moves the compares the contents of a byte (8 bits) at DS:SI with the contents of a byte at ES:DI and sets the flag.
代表“比较字符串字节” 。 它移动比较DS:SI处字节(8位)的内容与ES:DI处字节的内容,并设置标志。
CMPSB
10) CMPSW
10)CMPSW
Stands for 'Compare String Word'. It moves the compares the contents of the word (16 bits) at DS:SI with the contents of the word at ES:DI and sets the flag.
代表“比较字符串词” 。 它将DS:SI处的字内容(16位)与ES:DI处的字内容进行比较,并设置标志。
CMPSW
11) CMPSD
11)CMPSD
Stands for 'Compare String Double Word'. It moves the compares the contents of the double word (32 bits) at DS:SI with the contents of the double word at ES:DI and sets the flag.
代表“比较字符串双字” 。 它移动比较DS:SI中双字(32位)的内容和ES:DI中双字的内容,并设置标志。
CMPSD
翻译自: https://www.includehelp.com/embedded-system/string-handling-in-the-8086-microprocessor.aspx
awk字符串字符串处理函数