
怎么用汇编语言编写,在彩色图形方式下在屏幕上显示一条红色线???
1个回答
展开全部
调用系统的BIOS功能呗 显示有关的中断类型号是10H, 你说得显示红线的程序如下,自己琢磨吧
stack segment stack 'stack'
dw 32 dup(0)
stack ends
code segment
begin proc far
assume ss:stack,cs:code
push ds
sub ax,ax
push ax
mov ah,0
mov al,5
int 10h
mov ah,0bh
mov bh,0
mov bl,0
int 10h
mov ah,0bh
mov bh,1
mov bl,0
int 10h
mov cx,320
mov bp,0
again:push cx
mov cx,bp
mov ah,0ch
mov al,2
mov dx,100
int 10h
inc bp
pop cx
loop again
ret
begin endp
code ends
end begin
stack segment stack 'stack'
dw 32 dup(0)
stack ends
code segment
begin proc far
assume ss:stack,cs:code
push ds
sub ax,ax
push ax
mov ah,0
mov al,5
int 10h
mov ah,0bh
mov bh,0
mov bl,0
int 10h
mov ah,0bh
mov bh,1
mov bl,0
int 10h
mov cx,320
mov bp,0
again:push cx
mov cx,bp
mov ah,0ch
mov al,2
mov dx,100
int 10h
inc bp
pop cx
loop again
ret
begin endp
code ends
end begin

2024-07-20 广告
博思AIPPT是基于ai制作PPT的智能在线工具,它提供了4种AI制作PPT的方式,包括AI生成大纲、AI直接生成PPT、文本生成PPT、AI提炼文档生成PPT,一站式集成多种AI生成PPT的方式,可满足办公用户的不同需求和使用场景。ai生...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询