用汇编在显示器上显示"HOW ARE YOU TODAY?急急急 明天考试要用啊 哪位大神帮个忙啊
这是原程序可是闪一下就消失了求大神帮忙解决stacksegmentstackdw64dup(?)stackendsdatasegmentorg3200hdata1db48...
这是原程序 可是闪一下就消失了 求大神帮忙解决stack segment stack
dw 64 dup(?)
stack ends
data segment
org 3200h
data1 db 48h,4fh,57h,20h,41h,52h,45h,20h,59h,4fh,55h,20h,54h
db 4fh,44h,41h,59h,3fh
data ends
code segment
assume cs:code,ss:stack,ds:data
start: mov ax,data
mov ds,ax
mov cx,0012h
lea si,data1
mov ah,02h
a1: mov bl,[si]
mov dl,bl
int 21h
push cx
mov cx,0ffffh
a2: loop a2
pop cx
inc si
dec cx
cmp cx,00h
ja a1
mov ah,4ch
int 21h
code ends
end start 展开
dw 64 dup(?)
stack ends
data segment
org 3200h
data1 db 48h,4fh,57h,20h,41h,52h,45h,20h,59h,4fh,55h,20h,54h
db 4fh,44h,41h,59h,3fh
data ends
code segment
assume cs:code,ss:stack,ds:data
start: mov ax,data
mov ds,ax
mov cx,0012h
lea si,data1
mov ah,02h
a1: mov bl,[si]
mov dl,bl
int 21h
push cx
mov cx,0ffffh
a2: loop a2
pop cx
inc si
dec cx
cmp cx,00h
ja a1
mov ah,4ch
int 21h
code ends
end start 展开
2个回答
展开全部
;改好了,没问题了 就是stack名字有冲突
STACKS SEGMENT STACK
DW 64 DUP(?)
STACKS ENDS
DATA SEGMENT
ORG 3200H
DATA1 DB 48H,4FH,57H,20H,41H,52H,45H,20H,59H,4FH,55H,20H,54H
DB 4FH,44H,41H,59H,3FH
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACKS,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV CX,0012H
LEA SI,DATA1
MOV AH,02H
A1: MOV BL,[SI]
MOV DL,BL
INT 21H
PUSH CX
MOV CX,0FFFFH
A2: LOOP A2
POP CX
INC SI
DEC CX
CMP CX,00H
JA A1
MOV AH,4CH
INT 21H
CODE ENDS
END START
STACKS SEGMENT STACK
DW 64 DUP(?)
STACKS ENDS
DATA SEGMENT
ORG 3200H
DATA1 DB 48H,4FH,57H,20H,41H,52H,45H,20H,59H,4FH,55H,20H,54H
DB 4FH,44H,41H,59H,3FH
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACKS,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV CX,0012H
LEA SI,DATA1
MOV AH,02H
A1: MOV BL,[SI]
MOV DL,BL
INT 21H
PUSH CX
MOV CX,0FFFFH
A2: LOOP A2
POP CX
INC SI
DEC CX
CMP CX,00H
JA A1
MOV AH,4CH
INT 21H
CODE ENDS
END START
展开全部
STACKS SEGMENT STACK
DW 64 DUP(?)
STACKS ENDS
DATA SEGMENT
ORG 3200H
DATA1 DB 48H,4FH,57H,20H,41H,52H,45H,20H,59H,4FH,55H,20H,54H
DB 4FH,44H,41H,59H,3FH
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACKS,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV CX,0012H
LEA SI,DATA1
MOV AH,02H
A1: MOV BL,[SI]
MOV DL,BL
INT 21H
PUSH CX
MOV CX,0FFFFH
A2: LOOP A2
POP CX
INC SI
DEC CX
CMP CX,00H
JA A1
MOV AH,4CH
INT 21H
CODE ENDS
END START
DW 64 DUP(?)
STACKS ENDS
DATA SEGMENT
ORG 3200H
DATA1 DB 48H,4FH,57H,20H,41H,52H,45H,20H,59H,4FH,55H,20H,54H
DB 4FH,44H,41H,59H,3FH
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACKS,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV CX,0012H
LEA SI,DATA1
MOV AH,02H
A1: MOV BL,[SI]
MOV DL,BL
INT 21H
PUSH CX
MOV CX,0FFFFH
A2: LOOP A2
POP CX
INC SI
DEC CX
CMP CX,00H
JA A1
MOV AH,4CH
INT 21H
CODE ENDS
END START
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询