举一反三
- 说出下列汇编程序中源操作数与目的操作数的寻址方式(1) MOV AH,F5H;(2) MOV AX, F58AH;(3) MOV AX,[2000H];(4) MOV AX,[BX];(5) MOV AX,10[SI];(6) MOV AX,[SI]10;(7) MOV AX,10[SI 10];(8) MOV AX, [BX][SI];(9) MOV AX, 10[BX][SI];
- BAS DB 11,22,33,44,55 NUM DB 10,20,30,40,50 IN DB 1,2,3 代码段定义如下: MOV BX,OFFSET BAS LEA SI,IN MOV DI,4 MOV AX,[SI+2] ;(AX)=【1】H XCHG AX,[SI] ;(AX)=【2】H MOV AX,4[BX] ;(AX)=【3】H MOV AX,[BX][DI] ;(AX)=【4】H
- DS=1000H,ES=2000H,SS=3500H,SI=00A0H,DI=0024H,BX=0100H,BP=0200H,数据段中变 量名为VAL 的偏移地址值为0030H,说明下列源操作数的寻址方式和物理地址? (1)MOV AX,[100H] (2) MOV AX,VAL (3)MOV AX,[BX] (4) MOV AX,ES:[BX] (5)MOV AX,[SI] (6) MOV AX,[BX+10H] (7)MOV AX,[BP] (8) MOV AX,VAL[BP][SI] (9)MOV AX,VAL[BX][DI] (10) MOV AX,[BP][DI]
- 设 DS=2000H,BX=0100H,SI=0002H,(20100H)=12H,(20101H)=34H,(20102H)= 56H,(20103H)=78H,(21200H)=2AH,(21201H)=4CH,(21202H)=B7H,(21203H)=65H,试说明下列各条指令执行完后AX寄存器中的内容是多少? (1)MOV AX,1200H (2)MOV AX,BX (3)MOV AX,[1200H] (4)MOV AX,[BX] (5)MOV AX,[BX+1100H] (6)MOV AX,[BX+SI] (7)MOV AX,[BX+SI+1100H]
- 下面有语法错误的语句是( )。 A: MOV AX,[BX][SI] B: MOV AX,-2[BX][DI] C: MOV AX,[BX][BP] D: MOV AX,-1[BX][SI]
内容
- 0
下列使用正确的指令是( )。 A: MOV AH, BX B: MOV BX, OFFSET MYDAT [SI] C: MOV AX, [BX+SI] D: MOV CS, AX
- 1
阅读下面程序段: MOV AX,1234H MOV CL,4 ROR AX,CL INC AX MOV BX,0 ADD BX,AX 该程序段执行后,AX=______H,BX=_______ H。(注:(1)字符全部大写,并且为半角字符)
- 2
指出下列传送类指令中非法的指令(针对8086/8088 CPU)。 (1)MOV BX,AL (2)MOV BH,AL (3)MOV 100,CL (4)MOV SS,2400H (5)MOV [SI],[BX] (6)MOV [SI+4*3],BX (7)MOV AX,[BX][BP] (8)MOV AX,[SI][BP] (9)MOV AX,BX+DI (10)MOV AX,[BX+DI] (11)MOV SP,AX (12)MOV SP,[AX] (13)XCHG AH,AL (14)XCHG 200,AL (15)OUT 21H,AL (16)OUT 260H,AL
- 3
已知DS=091DH,SS=1E4AH,AX=1234H,BX=0024H,CX=5678H,BP=0024H,SI=0012H,DI=0032H,[09226H]=00F6H,[09228H]=1E40H,[1E4F6H]=091DH,试求单独执行下列指令后的结果。 (1)MOV CL,20H[BX][SI]; CL=? (2)MOV [BP][DI],CX; [1E4F6H]=? (3)LEA BX,20H[BX][SI]; BX=? MOV AX,2[BX]; AX=? (4)LDS SI,[BX][DI] MOV [SI],BX; SI=? [SI]=? (5)XCHG CX,32H[BX]; XCHG 20H[BX][SI],AX; AX=? [09226H]=?
- 4
写出每条汇编指令执行后相关寄存器的值 mov ax,62627 AX=________________ mov ah,31H AX=________________ mov al,23H AX=________________ add ax,ax AX=________________ mov bx,826CH BX=________________ mov cx,ax CX=________________ mov ax,bx AX=________________ add ax,bx AX=________________ mov al,bh AX=________________ mov ah,bl AX=________________ add ah,ah AX=________________ add al,6 AX=________________ add al,al AX=________________ mov ax,cx AX=________________