|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:codesg
datasg segment
db "Beginner's All-purpose Symbolic Instruction Code.",0
datasg ends
codesg segment
begin:
mov ax,datasg
mov ds,ax
mov si,0
call s
mov ax,4c00h
int 21h
s: mov al,ds:[si]
cmp al,0
je s1
cmp al,61h
jb s2
cmp al,71h
ja s2
inc si
jmp short s
s2: and al,11011111b
mov ds:[si],al
jmp s
s1: mov ax,0b800h
mov es,ax
mov di,0
sub dh,1
mov al,160
mul dh
mov bx,ax
sub dl,2
mov al,2
mul dl
mov bx,ax
mov cl,2
mov al,cl
mov ch,0
s3: mov cl,ds:[si]
jcxz s3
mov es:[bx+di],cl
mov es:[bx+di+1],al
inc si
add di,2
jmp short s1
ret
codesg ends
end begin
|
|