若AL中存放了一个数的补码,若已知AL的值为80H,以下( )做法,能将AL的值扩展到AX,其值不变。
A: MOV AH,00H
B: MOV AX,AL
C: MOV AH,FFH
D: MOV AX,8000H
A: MOV AH,00H
B: MOV AX,AL
C: MOV AH,FFH
D: MOV AX,8000H
举一反三
- 写出每条汇编指令执行后相关寄存器的值 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=________________
- 写出下列程序段执行后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= 【12】 H。 MOV AL,87 MOV CL,4 MOV AH,AL AND AL,OFH OR AL,30H SHR AH,CL OR AH,30H
- 写出下列程序段执行后AX的值为多少? MOV AX, 1234H MOV CL, 4 AND AL, 0FH ADD AL, 30H SHL AH, CL AND AH, 0F3H
- 一定能使AH与AL寄存器内容交换的指令为 。 A: XCHG AH,AL B: XCHG AL,AH C: MOV CL,08HROL AX,CL D: MOV CL,08HRCR AX,CL