第一個匯編程序
1.在第9行40列顯示“方塊”(◆)(04H),要求方塊為黑色,且閃動,背景為白色。
; 置光標位置 mov dh, 9 ; DH = 行 mov dl, 40 ; DL = 列 mov bh, 0 ; BH = 頁號 mov ah, 2 ; 置光標位置 int 10h ; INT 10H功能調用 ; 顯示“方塊”(◆) mov al, 4 ; AL = character to display. mov bl, 0f0h ; BL = attribute. mov bh, 0 ; BH = page number. mov cx, 0 ; CX = number of times to write character mov ah, 9 ; 顯示 int 10h ; INT 10H功能調用
最後更新:2017-04-02 00:06:27