题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-21 15:43:39

[填空题]阅读程序并填空,使程序完整并能正常运行: 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 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内存单元中得到的结果是______。

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码