马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
code segment
start:
MOV AX,CS
MOV DS,AX
MOV AX,0
MOV ES,AX
MOV SI,offset do0
MOV DI,200h
MOV CX,offset jies-offset do0
CLD
REP movsb
MOV AX,0
MOV DS,AX
MOV WORD ptr DS:[7ch*4+2],0
MOV WORD ptr DS:[7ch*4],200h
MOV AX,4c00h
INT 21h
do0:
PUSH SI
PUSH CX
PUSH AX
s:MOV AL,[si]
MOV CH,0
MOV CL,AL
JCXZ s1
CMP CL,61h
JB ok
CMP CL,7ah
JA ok
AND AL,1011111b
MOV [si],AL
MOV ES:[di],AL
MOV BYTE ptr ES:[DI+1],7
ADD DI,2
ok:
INC SI
jmp s
s1:
POP AX
POP CX
POP si
IRET
jies:nop
code ends
end start
assume cs:code,DS:data
data segment
DB "abcdefg",0;
data ends
code segment
start:
MOV AX,data
MOV DS,AX
MOV SI,0
MOV AX,0b800h
MOV ES,AX
MOV DI,0
INT 7ch
mov ax,4c00h
int 21h
code ends
end start
|