年份怎么改?
<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,
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:,ah
mov byte ptr es:,11001010b
mov byte ptr es:,al
mov byte ptr es:,11001010b
cmp bx,0
je ok
add di,10
dec bx
jmp s1
ok: pop di
mov byte ptr es:,'/'
mov byte ptr es:,10100010b
mov byte ptr es:,'/'
mov byte ptr es:,10100010b
mov byte ptr es:,'/'
mov byte ptr es:,10100010b
mov byte ptr es:,':'
mov byte ptr es:,10100010b
mov byte ptr es:,':'
mov byte ptr es:,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年,对么??
我要把年份改一下,应该怎么写?
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年,对么??
页:
[1]