21,459
社区成员
发帖
与我相关
我的任务
分享
assume cs:code
code segment
start: mov ax,cs
mov ds,ax
mov si,offset do0
mov ax,0
mov es,ax
mov di,200h
mov cx,offset do0end-offset do0
cld
rep movsb
mov ax,0
mov es,ax
mov word ptr es:[1ch*4],200h
mov word ptr es:[1ch*4+2],0
;int 1ch
mov ax,4c00h
int 21h
do0:push bx
push es
push ax
push cx
mov bx,0b800h
mov es,bx
mov al,9
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2],ah
mov byte ptr es:[160*12+40*2+2],al
mov byte ptr es:[160*12+40*2+4],47
mov al,8
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2+6],ah
mov byte ptr es:[160*12+40*2+8],al
mov byte ptr es:[160*12+40*2+10],47
mov al,7
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2+12],ah
mov byte ptr es:[160*12+40*2+14],al
mov al,4
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2+18],ah
mov byte ptr es:[160*12+40*2+20],al
mov byte ptr es:[160*12+40*2+22],58
mov al,2
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2+24],ah
mov byte ptr es:[160*12+40*2+26],al
mov byte ptr es:[160*12+40*2+28],58
mov al,0
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr es:[160*12+40*2+30],ah
mov byte ptr es:[160*12+40*2+32],al
pop cx
pop ax
pop es
pop bx
;mov ax,4c00h ;修改此处
;int 21h
iret
do0end:nop
code ends
end start