|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
<div class="blockcode"><blockquote>
assume cs:code
data segment
db 0,2,4,7,8,9
data ends
code segment
start: mov ax,0b800h
mov es,ax
mov di,160*12+25*2
push di
mov ax,data
mov ds,ax
mov bx,5
s1: mov al,[bx]
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:[di],ah
mov byte ptr es:[di+1],11001010b
mov byte ptr es:[di+2],al
mov byte ptr es:[di+3],11001010b
cmp bx,0
je ok
add di,10
dec bx
jmp s1
ok: pop di
mov byte ptr es:[di+6],'/'
mov byte ptr es:[di+7],10100010b
mov byte ptr es:[di+16],'/'
mov byte ptr es:[di+17],10100010b
mov byte ptr es:[di+26],'/'
mov byte ptr es:[di+27],10100010b
mov byte ptr es:[di+36],':'
mov byte ptr es:[di+37],10100010b
mov byte ptr es:[di+46],':'
mov byte ptr es:[di+47],10100010b
mov ax,4c00h
int 21h
code ends
end start
实验14
我要把年份改一下,应该怎么写?
assume cs:code
code segment
mov al,9
out 70h,al
mov al,10
out 71h,al
mov ax,4c00h
int 21h
code ends
end
这样写,把年份改成10年,对么??
|
|