写出下列程序段执行后AX的值为多少? MOV AX, 1234H; AX=(1)H MOV CL, 4 AND AL, 0FH; AX= (2) H ADD AL, 30H; AX= (3)H SHL AH, CL; AX= (4)H AND AH, 0F3H; AX= (5)H
举一反三
- 写出下列程序段执行后AX的值为多少? MOV AX, 1234H MOV CL, 4 AND AL, 0FH ADD AL, 30H SHL AH, CL AND AH, 0F3H
- 执行下列程序段后,写出AX= 【12】 H。 MOV AL,87 MOV CL,4 MOV AH,AL AND AL,OFH OR AL,30H SHR AH,CL OR AH,30H
- 阅读下面程序段: MOV AX,1234H MOV CL,4 ROR AX,CL INC AX MOV BX,0 ADD BX,AX 该程序段执行后,AX=______H,BX=_______ H。(注:(1)字符全部大写,并且为半角字符)
- 写出每条汇编指令执行后相关寄存器的值 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=________________
- 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