50分之汇编之最后一练习题..哈..真的有难度..但不知道杂写..!详细看图!
2个回答
展开全部
七、
1、DATAS SEGMENT
DA_BYTE1 DB ?
ORG 100H
DA_BYTE2 DB ?
DATAS ENDS
STACKS SEGMENT
DW 10 DUP(0)
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
LEA SI,DA_BYTE1
LEA DI,DA_BYTE2
CMP BYTE PTR [SI],0
JG A1
MOV BYTE PTR [DI],0
JMP A2
A1: MOV BYTE PTR [DI],1
A2: MOV AH,4CH
INT 21H
CODES ENDS
END START
2、DATAS SEGMENT
DA_BYTE1 DB ?
ORG 100H
DA_BYTE2 DB ?
DATAS ENDS
STACKS SEGMENT
DW 10 DUP(0)
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
LEA SI,DA_BYTE1
LEA DI,DA_BYTE2
MOV AL,[SI]
XCHG AL,[DI]
MOV [SI],AL
MOV AH,4CH
INT 21H
CODES ENDS
END START
1、DATAS SEGMENT
DA_BYTE1 DB ?
ORG 100H
DA_BYTE2 DB ?
DATAS ENDS
STACKS SEGMENT
DW 10 DUP(0)
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
LEA SI,DA_BYTE1
LEA DI,DA_BYTE2
CMP BYTE PTR [SI],0
JG A1
MOV BYTE PTR [DI],0
JMP A2
A1: MOV BYTE PTR [DI],1
A2: MOV AH,4CH
INT 21H
CODES ENDS
END START
2、DATAS SEGMENT
DA_BYTE1 DB ?
ORG 100H
DA_BYTE2 DB ?
DATAS ENDS
STACKS SEGMENT
DW 10 DUP(0)
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
LEA SI,DA_BYTE1
LEA DI,DA_BYTE2
MOV AL,[SI]
XCHG AL,[DI]
MOV [SI],AL
MOV AH,4CH
INT 21H
CODES ENDS
END START
追问
展开全部
1.
主程序:
mov al,DA_BYTE1
cmp al,0
JG STA1
MOV al,0
JMP STA2
STA1:MOV al,1
STA2:MOV DA_BYTE2,al
2.
主程序:
MOV AL,DA_BYTE1
MOV AH,DA_BYTE2
MOV DA_BYTE2,AL
MOV DA_BYTE1,AH
你看看怎么样
主程序:
mov al,DA_BYTE1
cmp al,0
JG STA1
MOV al,0
JMP STA2
STA1:MOV al,1
STA2:MOV DA_BYTE2,al
2.
主程序:
MOV AL,DA_BYTE1
MOV AH,DA_BYTE2
MOV DA_BYTE2,AL
MOV DA_BYTE1,AH
你看看怎么样
追问
实话说!看不懂!..
高人,先帮我看下选择题吧!..只有4题
http://zhidao.baidu.com/question/426637716.html?quesup2&oldq=1
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询