文档详情

8086、8088汇编指令系统(国外英文资料).doc

发布:2017-06-09约1.94万字共32页下载文档
文本预览下载声明
8086、8088汇编指令系统(国外英文资料) 1 8086/8088 instruction system 8086/8088 command system One, data transfer instructions General data transfer instructions MOV (Move) transmission PUSH onto the stack POP from the stack XCHG Exchange (Exchange) . MOV instruction The format is: MOV DST, SRC Operations: (DST) - (SRC) A PUSH into stack instructions PUSH SRC Operation: (SP) - (SP) -2 (SP) + 1, (SP)) - (SRC) . POP the stack command The format is: POP DST Action: (DST) - (SP + 1), (SP) (SP) - (SP) + 2 XCHG exchange instructions XCHG OPR1, OPR2 Operation: (OPR1) - (OPR2) The accumulator specialized transfer instructions IN (Input) Input OUT (Output) Output XLAT (Translate) This set of instructions is limited to using the accumulator AX or AL to transmit information. IN input instruction Long format: IN AL, PORT (bytes) IN AX, PORT Operation: (AL) - (PORT) (bytes) (AX) - (PORT + 1, PORT) Short format: IN AL, DX (bytes) IN AX, DX Operation: AL - ((DX)) (bytes) AX - ((DX) + 1, DX) OUT instruction Long format: OUT PORT, AL (bytes) OUT PORT, AX Operation: (PORT) - () (bytes) (PORT + 1, PORT) - (a) The short format is: OUT DX, AL (bytes) OUT DX, AX Operation: ((DX)) - () (bytes) ((DX) + 1, (DX)) - AX () IN IBM - PC, external devices can have up to 65536 I/O PORT, PORT (i.e. peripherals PORT address) of 0000 ~ FFFFH. The top 256 ports (0 ~ FFH) can be specified IN the instruction directly, this is the long format of the PORT, the machine instruction with two bytes, said the second byte is the PORT number. So when using a long format can be specified directly IN the specified PORT number, but only 256 ports before. When the PORT number = 256, can only use the short format, at this point, you must first put the PORT number IN the DX registers (PORT number from 0000 to 0 FFFFH), then use IN or OUT instructions to transmit information. XLAT change command Format: XLAT OPR Or: XLAT Operation: (AL) (BX) + (AL)) The valid address sends the register instructions The LEA (Load effe
显示全部
相似文档