更多"阅读程序并填空,使程序完整并能正常运行:
DSEG SEGME"的相关试题:
[填空题]阅读程序并填空,使程序完整并能正常运行:
DSEG SEGMENT
BUF DB 5 DUP( )
DSEG ENDS
SSEG SEGMENT PARA STACK
DB 256 DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS: CSEG, DS: DSEC, SS: SSEG
START: PROC 【6】
PUSH DS
MOV AX, 0
PUSH AX
MOV AX, DSEG
MOV DS, AX
LEA DI, BUF
MOV CX, 0
MOV BX, 10
MOV AX, 36H
LP1: MOV DX, 0
DIV BX
PUSH DX
INC CX
CMP AX, 0
JNE LP1
MOV BX, 5
SUB BX, CX
LP2: POP DX
ADD 30H
MOV [DI], DL
INC DI
LOOP LP2
CMP BX, 0
JE EXIT
MOV CX, BX
LP3: MOV BYTE PTR [DI], 20H
INC DI
LOOP LP3
EXIT: RET
START ENDP
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: CSEG,DS:DSEG, SS:SSEG
START PROC FAR
PUSH DS
XOR AX,AX
PUSH AX
MOV AX, DSEG
MOV DS,AX
MOV BX,OFFSETF D1
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
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
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 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 【6】 CSEG ENDS END START
[填空题]
执行下面的汇编语言程序后,NUM单元中的数据是()。
DSEG SEGMENT
BUF DB ’This is a character string!$’
NUM DB
DSEG ENDS
SSEG SEGMENT STACK
DB 256 DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME DS:DSEG,SS: SSEQCS: CSEG
START: MOV AX,DSEG
MOV DS,AX
LEA SI,BUF
LP: MOV AL,[SI]
INC SI
CMP AL,’$’
JZ DONE
CMP AL,61H
JNE NEXT
INC NUM
NEXT: JMP LP
DONE:// MOV AH,4CH
INT 21H
CSEG ENDS
END START
[填空题]阅读下面的程序,并填空,使程序能按预定的设计要求正常运行:
DSEG SEGMENT
ARRAY DB 12H,56H,78H,96H
CNT DW $-ARRAY
DSEG ENDS
SSEG SEGMENT PARA STACK ‘STACK’
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG,DS:DSEG,SS:SSEG
START:MOV AX,DSEG
MOV DS,AX
LEA SI,ARRAY
MOV CX,CNT
NEXT: LODSB
MOV BL,AL
AND AL,0F0H
【6】
MOV CL,4
SHR AL,CL
POP CX
OR AL,30H
CALL DISP
MOV AL,BL
AND AL,0FH
OR AL,30H
CALL DISP
DEC CX
JCXZ DONE
MOV AL,’,’
CALL DISP
JMP NEXT
DONE:// MOV AH,4DH ;中止当前进程,返回调用进程
INT 21H
DISP: MOV AH,14
INT 10H
RET
CSEG:// ENDS
END START
[填空题]阅读下面的程序,并填空,使程序能按预定的设计要求正常运行:
DSEG SEGMENT
ARRAY DB 12H,56H,78H,96H
CNT DW $-ARRAY
DSEG ENDS
SSEG SEGMENT PARA STACK ‘STACK’
DB 256DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG,DS:DSEG,SS:SSEG
START:MOV AX,DSEG
MOV DS,AX
LEA SI,ARRAY
MOV CX,CNT
NEXT: LODSB
MOV BL,AL
AND AL,0F0H
【6】
MOV CL,4
SHR AL,CL
POP CX
OR AL,30H
CALL DISP
MOV AL,BL
AND AL,0FH
OR AL,30H
CALL DISP
DEC CX
JCXZ DONE
MOV AL,’,’
CALL DISP
JMP NEXT
DONE:// MOV AH,4DH ;中止当前进程,返回调用进程
INT 21H
DISP: MOV AH,14
INT 10H
RET
CSEG:// ENDS
END START
[填空题]下面是用来实现二分法查找的8086/8088汇编语言源程序,填空使语句完整,使程序正确执行。
DSEG SEGMENT
TABLE DB ’112679ACDF’
CNT EQU $-TABLE-1
DSEG ENDS
SSEG SEGMENT PARA STACK ’STACK’
DB 256 DUP (0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS: CSEG, DS: DSEG, SS: SSEG
START PROC FAR
MOV AX, DSEG
MOV 【6】
LEA SI, TABLE
MOV DI, SI
ADD DI, CNT
MOV DX, 1 ;设定查找次数初值
MOV AL,’F’
GOON: MOV BX, SI
ADD BX, DI
SHR BX, 1
CMP AL, [BX]
JE DONE ;已找到
PUSHF
CMP BX, SI
JE FD ;搜索完毕,未找到
POPF
JLE GO
MOV SI, BX
JMP NEXT
GO: MOV DI, BX
NEXT: INC DX
JMP GOON
FD: MOV BX, OFFFFH
DONE: MOV AH, 4CH
INT 21H
RET
START ENDP
CSEG ENDS
END START
[填空题]下面是用来实现二分法查找的8086/8088汇编语言源程序,填空使语句完整,使程序正确执行。
DSEG SEGMENT
TABLE DB ’112679ACDF’
CNT EQU $-TABLE-1
DSEG ENDS
SSEG SEGMENT PARA STACK ’STACK’
DB 256 DUP (0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS: CSEG, DS: DSEG, SS: SSEG
START PROC FAR
MOV AX, DSEG
MOV 【6】
LEA SI, TABLE
MOV DI, SI
ADD DI, CNT
MOV DX, 1 ;设定查找次数初值
MOV AL,’F’
GOON: MOV BX, SI
ADD BX, DI
SHR BX, 1
CMP AL, [BX]
JE DONE ;已找到
PUSHF
CMP BX, SI
JE FD ;搜索完毕,未找到
POPF
JLE GO
MOV SI, BX
JMP NEXT
GO: MOV DI, BX
NEXT: INC DX
JMP GOON
FD: MOV BX, OFFFFH
DONE: MOV AH, 4CH
INT 21H
RET
START ENDP
CSEG ENDS
END START
[填空题](6) 下面是用宋实现二分法查找的8086/8088汇编语言源程序,填空使语句完整,使程序正确执行。
DSEG SEGMENT
TABLE DB ’112679ACDF’
CNT EQU $-TABLE-1
DSEG ENDS
SSEG SEGMENT PARA STACK’STACK’
DB 256 DUP(0)
SSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
START PROC FAR
MOV AX, DSEG
MOV 【6】
LEA SI,TABLE
MOV DI,SI
ADD DI,CNT
MOV DX,l ;设定查找次数初值
MOV AL,’F’
GOON: MOV BX,SI
ADD BX,DI
SHR BX,1
CMP AL,[BX]
JE DONE ;已找到
PUSHF
CMP BX,SI
JE FD ;搜索完毕,未找到
POPF
JLE GO
MOV SI,BX
JMP NEXT
GO: MOV DI,BX
NEXT: INC DX
JMP GOON
FD:// MOV BX,0FFFFH
DONE:// MOV AH,4CH
INT 21H
RET
START ENDP
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内存单元中得到的结果是______。