第一个汇编程序
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