运行下面的汇编语言程序,在NUM内存单元中得到的结果是______。DSEG SEGMENTDAT DB 5,13,4,-2,-6,23,3,1,9,0CNT EQU S-DAT-1NUM DB ?DSEG ENDSSSEG SEGMENT STACKDB 256 DUP(0)SSEG ENDSCSEG SEGMENTASSUME DS:DSEG,SS:SSEG,CS:CSEGSTART: MOV AX, DSEGMOV DS,AXMOV SI,OFFSET DATMOV CX, CNTXOR EL,ELLP: MOV AL,[SI]XOR AL,[SI+1]TEST AL, 80H ; 两个相邻字节的最高位相同吗?JNE NEXTINC BLNEXT: INC SILOOP LPMOV NUM, BLMOV AH,4CHINT 21HCSEG ENDSEND START
运行下面的汇编语言程序,在NUM内存单元中得到的结果是______。
DSEG SEGMENT
DAT DB 5,13,4,-2,-6,23,3,1,9,0
CNT EQU S-DAT-1
NUM DB ?
DSEG ENDS
SSEG SEGMENT STACK
DB 256 DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME DS:DSEG,SS:SSEG,CS:CSEG
START: MOV AX, DSEG
MOV DS,AX
MOV SI,OFFSET DAT
MOV CX, CNT
XOR EL,EL
LP: MOV AL,[SI]
XOR AL,[SI+1]
TEST AL, 80H ; 两个相邻字节的最高位相同吗?
JNE NEXT
INC BL
NEXT: INC SI
LOOP LP
MOV NUM, BL
MOV AH,4CH
INT 21H
CSEG ENDS
END START
相关考题:
下面程序的运行结果是includevoid main( 0{ int num =1; int ref = num; ref= 下面程序的运行结果是 #include<iostream.h> void main( 0 { int num =1; int ref = num; ref=ref+2; cout << num; num = num+3; cout < < ref < < end1; }A.13B.16C.36D.33
下面程序的运行结果是 include Void main( ) { int num=1; int ref=num;ref= 下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33
下面程序的运行结果是#includevoid main(){int num=1;int ref=num:ref=ref+2;cout(num;num=num+3;cout}A.13B.16C.36D.33
运行下面的汇编语言程序:DSEG SEGMENTDAT DB 5,13,4,-2,-6,23,3,1,9,0CNT EQU $—DAT—1NUM DB ?DSEG ENDSSSEG SEGMENT STACKDB 256DUP(0)SSEG ENDSCSEG SEGMENTASSUME DS:DSEG,SS:SSEG,CS:CSEGSTART: MOV AX,DSEGMOV DS,AXMOV SI,OFFSETDATMOV CX,CNTXOR BL,BLLP: MOV AL,[SI]XOR AL,[SI+1]TEST AL,80HJNE NEXTINC BLNEXT: INC SILOOP LPMOV NUM,BLMOV AH,4CHINT 21HCSEG ENDSEND START在NUM内存单元中得到的结果是______。
下面程序的运行结果是includevoid main(){int num=1;int ref=num;ref=ref+2;c 下面程序的运行结果是 #include<iostream.h> void main() { int num=1; int ref=num; ref=ref+2; cout<<num; num=num+3; cout<<ref<<end1; }A.13B.16C.36D.33
6、现有如下程序,请问运行结果是什么?num1=5 num2=num1 num2=7 print(num1)A.0B.12C.7D.5