?? p258.asm
字號:
;編程:在屏幕中間顯示當前的月份
assume cs:code
code segment
start: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 bx,0b800h
mov es,bx
mov byte ptr es:[160*12+40*2],ah ;顯示月份的十位數碼
mov byte ptr es:[160*12+40*2+2],al;顯示月份的個位數碼
mov ax,4c00h
int 21h
code ends
end start
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -