更多"在下面的汇编语言程序横线处填空,使语句完整,保证程序正确执行。 D"的相关试题:
[填空题]在下面的汇编语言程序横线处填空,使语句完整,保证程序正确执行。
DSEG SEGMENT
D1 DB-1,5,2,6,-7,4
CNT EQU $-D1
RS DW
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUM CS:CSEGDS:DSEGSS:SSEG
START PROC FAR
PUSH DS
XOR AX,AX
PUSH AX
MOV AX.DSEG
MOV DS.AX
MOV BX.OFFSETFD1
MOV CX.CNT
MOV DX,0
LP: MOV AL,[BX]
CMP AL,0
JGE CONT
INC DX
CONT:INC BX
DEC CX
JNZ LP
MOV RS,DX
RET
START 【6】
CSEG ENDS
END START
[填空题]在下面的汇编语言程序横线处填空,使语句完整,保证程序正确执行。
DSEG SEGMENT
D1 DB-1,5,2,6,-7,4
CNT EQU $-D1
RS DW
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUM CS:CSEGDS:DSEGSS:SSEG
START PROC FAR
PUSH DS
XOR AX,AX
PUSH AX
MOV AX.DSEG
MOV DS.AX
MOV BX.OFFSETFD1
MOV CX.CNT
MOV DX,0
LP: MOV AL,[BX]
CMP AL,0
JGE CONT
INC DX
CONT:INC BX
DEC CX
JNZ LP
MOV RS,DX
RET
START______
CSEG ENDS
END START
[填空题]在下面的汇编语言源程序中填空,使程序结构完整。
DSEG SEGMENT
DB -1
ARRAY DB 4,6,13,18,0
X EQU 2
LEN EQU s-ARRAY
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
START PROC FAN
PUSH DS
XOR AX,AX
PUSH AX
MOV AX,DSEG
MOV DS,AX
MOV AL,X
MOV BX,OFFSET ARRAY
MOV SI,LEN-2 ;设置指向ARRAY + 3字节单元的指针
ADD BX,SI ;形成基地址
MOV SI,0
SWIM: CMP AL,[BX+SI)
JGE INS
MOV DL,[BX+SI]
MOV [BX+SI+I),DL ;移动数据
DEC SI
JMP SWIM
INS: MOV [BX+SI+1],AL
RET
START 【 】
CSEG ENDS
END START
[填空题]在下面的汇编语言源程序中填空,使程序结构完整。
DSEG SEGMENT
DB -1
ARRAY DB 4,6,13,18,0
X EQU 2
LEN EQU $-ARRAY
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUNE CS:CSEG,DS:DSEG,SS:SSEG
START PROC FAR
PUSH DS
XOR AX,AX
PUSH AX
MOV AX,DSEG
MOV DS,AX
MOV AL,X
MOV BX,OPPSET ARRAY
MOV SI,LEN -2 ;设置指向ARRAY+3字节单元的指针
ADD BX,SI ;形成基地址
MOV SI,0
SWM: CMP AL,[BX+SI]
JGE INS
MOV DL,[BX+SI]
MOV [BX+SI+1),DL ;移动数据
DEC SI
JMP SWIM
INS: MOV [BX+SI+1],AL
RET
【6】
CSEG ENDS
END START
[填空题]运行下面的汇编语言程序:
DSEG SEGMENT
DAT DB 5,13,4,-2,-6,23,3,1,9,0
CNT EQU $—DAT—1
NUM DB
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME DS:DSEG,SS:SSEG,CS:CSEG
START: MOV AX,DSEG
MOV DS,AX
MOV SI,OFFSETDAT
MOV CX,CNT
XOR BL,BL
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
在NUM内存单元中得到的结果是______。
[填空题]根据下面的汇编语言源程序,NUM单元中的数据是 【6】 。
DSEG SEGMENT
DAT DB ’I am Chinese!$’
NUM DB 0
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
IEA SI BUF
LP: MOV AL,[SI]
INC SI
CMP AL,’S’
JZ DONE
CMP AL,65H
JNE NEXT
INC NUM
NEXT: JMP LP
DONE:// MOV AH,4CH
INT 2H
CSEG ENDS
END START MOV AL, DAT
[填空题]根据下面的汇编语言源程序,NUM单元中的数据是 【6】 。
DSEG SEGMENT
DAT DB ’I am Chinese!$’
NUM DB 0
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
IEA SI BUF
LP: MOV AL,[SI]
INC SI
CMP AL,’S’
JZ DONE
CMP AL,65H
JNE NEXT
INC NUM
NEXT: JMP LP
DONE:// MOV AH,4CH
INT 2H
CSEG ENDS
END START MOV AL, DAT
[填空题]根据下面的汇编语言源程序,其运行结果是在屏幕上显示【 】。
DSEG SEGMENT
DAT DB 0FFH
N EQU 3
BUF DB 3 DUP(‘’)
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 BX,OFFSET BUF
MOV SI,N
MOV AL,DAT
MOV AH,0
MOV CX,10
NEXT: XOR DX,DX
DIV CX
ADD DL,30H ;形成ASCII码
DEC SI ;保存余数
MOV [BX+SI],DL
OR SI,SI
JNE NEXT
LEA DX,BUF
MOV AH,9
INT 21H 显示字符串
MOV AH,4CH
INT 21H
CSEG ENDS
END START
[填空题]
运行下面的汇编语言程序,在NUM内存单元中得到的结果是()。
DSEG SEGMENT
DAT DB 5,13,4,-2,-6,23,3,1,9,0
CNT EQU $-DAT-1
NUM DB
DSEG ENDS
SSEG SEGMENT STACK
DB 256 DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME DS:DSEGSS:SSEG,CS:CSEG
START: MOV AX,DSEG
MOV DS,AX
MOV SI,OFFSET DAT
MOV CX,CNT
XOR BL,BL
LP: MOV AL,[SI]
XOR AL,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