【程序题】设在 31H单元存有#23H,执行下面程序: MOV A, 31H ANL A, #0FH MOV 41H, A MOV A, 31H ANL A, #0F0H SWAP A MOV 42H, A 则 (41H)= _______, (42H)= _______
举一反三
- 已知:(30H)=23H,(31H)=13H,(40H)=72H,(41H)=08H 执行: MOV A,30H ADD A,40H DA A MOV 30H,A MOV A,31H ADDC A,41H DA A MOV 31H,A 则结果为:(30H)=______H,(31H)=______H,(40H)=______H,(CY)=______。
- 设R0=42H,(42H)=80H,A=48H,(50H)=08H,指出下列程序执行后,上述各单元内容的变化。 MOV A,@R0 MOV @R0,50H MOV 50H,A
- 根据下列程序段运行情况,将运行结果和指令分别补充完整。 (1)( );(A)=10H ( );(B)=10H ( );(A)=20H MOV 23H,A;(23H)=20H ( );(A)=21H MOV 24H,A;(24H)=21H INC A ;(A)=22H ( );(25H)= 22H (2)MOV A,#50H;(A)=( )H MOV R0,A;(R0)=( )H MOV @R0,#30H;(50H)=( )H ADD A,@R0;(A)=( )H MOVX @R0,A;(50H)=( )H
- 有如下程序段:MOV31H,#24H;MOVA,31H;SWAPA;ANLA,#0F0H;执行结果是() A: B: =24H C: D: =42H E: F: =40H G: H: =00H
- 写出下列程序段执行后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