dSEG SEGMENT d1 db 'Welcome','$' var db 20 db ? db 20 dup(?) dseg ends cseg SEGMENT assume cs:cseg,ds:dseg,es:dseg bg: mov ax,dseg mov ds,ax mov es,ax lea dx,var mov ah,0ah int 21h lea di,d1 MOV AH,9 INT 21H mov ah,4ch int 21h dis proc near mov ah,02h int 21h ret dis endp cseg ends end bg
我这样编了个~但不正确........ d segment db11 db 'welcome ' db22 db 10 dup(?) db00 db 'enter your name:' db33 db 10 db ? db 10 dup(?) d ends c segment assume cs:c,ds:d bg: mov ax,d mov ds,ax lea dx,db00 xor ax,ax mov ah,9 int 21h //运行到这就就跳到last 去了??- ag: lea dx,db33 | mov ah,0ah | int 21h | mov ah,1 | int 21h | mov si,0 | mov di,0 re: mov al,db33[si+2] cmp al,0 //问题在哪儿? jbe last xchg al,db22[di] inc di inc si jmp re | last: mov ah,4ch <-- ---- int 21h c ends end bg