5 years ago (2015-10-16)  Hundred Encyclopedias |   First to comment  7 
post score 0 times, average 0.0

Many command books encountered in the learning compendium are forcibly given. They do not tell the reason of the command word. The command is the abbreviation of which English word. It is very troublesome to remember it.

First, the register class (register):

  1. General registers: AX, BX, CX, DX - these are nothing to write, and that's it.
  2. Segment registers: CS--code segment, DS--data segment, SS--stack segment, and ES--extra segment.
  3. Special function registers: instruction pointer register IP--instruction pointer, stack pointer SP--stack pointer, base pointer BP--base pointer, source index register SI--source index, target index register DI--destination index, Flag register FR--flag register (or program status word PSW--program status word).
  4. PSW common signs are:

Marker Flagged with a value of 0

  • OF(overflow flag) OV(overflow) NV(not overflow)
  • ZF(zero flag) ZR(zero) NZ(not zero)
  • PF (parity flag) PE (parity even) PO (parity odd)
  • CF(carry flag) CY(carried) NC(not carried)
  • DF(direction flag) DN(down) UP(up)
  • SF(sign flag) NG(negtive) PL(plus)
  • TF(trap flag)
  • IF (interrupt flag)
  • AF(auxiliary flag)

Assembled instruction corresponds to the English word

Command class

1. General data transfer instructions.

    • MOV----> move
    • MOVSX---->extended move with sign data
    • MOVZX---->extended move with zero data
    • PUSH---->push
    • POP---->pop
    • PUSHA---->push all
    • POPA---->pop all
    • PUSHAD---->push all data
    • POPAD---->pop all data
    • BSWAP---->byte swap
    • XCHG---->exchange
    • CMPXCHG---->compare and change
    • XADD---->exchange and add
    • XLAT---->translate

2. Input and output ports to send instructions.

  • IN---->input
  • OUT---->output

3. Destination address transfer instructions.

  • LEA---->load effective address
  • LDS---->load DS
  • LES---->load ES
  • LFS---->load FS
  • LGS---->load GS
  • LSS---->load SS


4. Sign transfer instructions.

  • LAHF---->load AH from flag
  • SAHF---->save AH to flag
  • PUSHF---->push flag
  • POPF---->pop flag
  • PUSHD---->push dflag
  • POPD---->pop dflag

Second, arithmetic operation instructions

  • ADD---->add
  • ADC---->add with carry
  • INC---->increase 1
  • AAA---->ascii add with adjust
  • DAA---->decimal add with adjust
  • SUB---->substract
  • SBB---->substract with borrow
  • DEC---->decrease 1
  • NEC---->negative
  • CMP---->compare
  • AAS---->ascii adjust on substract
  • DAS---->decimal adjust on substract
  • MUL---->multiplication
  • IMUL---->integer multiplication
  • AAM---->ascii adjust on multiplication
  • DIV---->divide
  • IDIV---->integer divide
  • AAD---->ascii adjust on divide
  • CBW---->change byte to word
  • CWD---->change word to double word
  • CWDE---->change word to double word with sign to EAX
  • CDQ---->change double word to quadrate word

Third, the logic operation instructions

  • AND---->and
  • OR---->or
  • XOR---->xor
  • NOT---->not
  • TEST---->test
  • SHL---->shift left
  • SAL---->arithmatic shift left
  • SHR---->shift right
  • SAR---->arithmatic shift right
  • ROL---->rotate left
  • ROR---->rotate right
  • RCL---->rotate left with carry
  • RCR---->rotate right with carry

Fourth, string instructions

  • MOVS---->move string
  • CMPS---->compare string
  • SCAS---->scan string
  • LODS---->load string
  • STOS---->store string
  • REP---->repeat
  • REPE---->repeat when equal
  • REPZ---->repeat when zero flag
  • REPNE---->repeat when not equal
  • REPNZ---->repeat when zero flag
  • REPC---->repeat when carrying flag
  • REPNC---->repeat when not running flag

Fifth, program transfer instructions


1> Unconditional branch instruction (long transfer)

  • JMP---->jump
  • CALL---->call
  • RET---->return
  • RETF---->return far

2> Conditional transfer instructions (short transfer, within a distance of -128 to +127)

  • JAE---->jump when above or equal
  • JNB---->jump when not below
  • JB---->jump when below
  • JNAE---->jump when not above or equal
  • JBE---->jump when below or equal
  • JNA---->jump when not above
  • JG---->jump when greater
  • JNLE---->jump when not less or equal
  • JGE---->jump when greater or equal
  • JNL---->jump when not less
  • JL---->jump when less
  • JNGE---->jump when not greater or equal
  • JLE---->jump when less or equal
  • JNG---->jump when not greater
  • JE---->jump when equal
  • JZ---->jump when has zero flag
  • JNE---->jump when not equal
  • JNZ---->jump when not has zero flag
  • JC---->jump when has carry flag
  • JNC---->jump when not has carry flag
  • JNO---->jump when not has overflow flag
  • JNP---->jump when not has parity flag
  • JPO---->jump when parity flag is odd
  • JNS---->jump when not has sign flag
  • JO---->jump when has overflow flag
  • JP---->jump when has parity flag
  • JPE---->jump when parity flag is even
  • JS---->jump when has sign flag

3> Cycle Control Instructions (short transfer)

  • LOOP---->loop
  • LOOPE---->loop equal
  • LOOPZ---->loop zero
  • LOOPNE---->loop not equal
  • LOOPNZ---->loop not zero
  • JCXZ---->jump when CX is zero
  • JECXZ---->jump when ECX is zero

4> interrupt instruction

  • INT---->interrupt
  • INTO---->overflow interrupt
  • IRET---->interrupt return

5> Processor Control Instructions

  • HLT---->halt
  • WAIT---->wait
  • ESC---->escape
  • LOCK---->lock
  • NOP---->no operation
  • STC---->set carry
  • CLC---->clear carry
  • CMC---->carry make change
  • STD---->set direction
  • CLD---->clear direction
  • STI---->set interrupt
  • CLI---->clear interrupt

Sixth, the directive

  • ———————————————————————————————————————
  • DW---->definw word
  • PROC---->procedure
  • ENDP---->end of procedure
  • SEGMENT---->segment
  • ASSUME---->assume
  • ENDS---->end segment
  • END---->end

This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/assembly-instruction-corresponding-english-words-2.html

Post comment


No Comment


Forget password?