Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

汇编语言绘图在bochs虚拟机上正常但在Windows上就会黑屏该如何解决?具体内容如下。

要求用汇编语言绘制一个彩色三角形,现在基本功能已经完成并且在tpc-usb集成开发环境用masm611编译器+bochs虚拟机实现功能,但是现在同样的代码到windowxp系统下用masm615编译并运行后就会黑屏但不报错,学校要求我必须在windowsxp用masm编译,我现在没有办法

windows xp及到windows2000的32位数版本用masm611和masm615

.8086
.model small
.stack 1024
.data
ud dw 0000h
rl dw 0000h
.code
.startup
mov rl,0
mov ud,0
mov ah,0
mov al,12h ;12色
mov es,ax
int 10h
mov ah,0bh
mov bh,0
mov bl,11   ;调色板(背景色)
int 10h    
mov ah,0ch
mov al,0110b
mov dx,220
mov si,228
l16:    
mov cx,228
l17: 
int 10h
inc cx
cmp cx,si
jbe l17
inc dx
inc si  
cmp dx,260
jbe l16        ;画实心直角等腰三角形  
.exit
end 

image用bochs正常编译结果

image用windows2000虚拟机就会黑屏


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

没有人啊啊啊啊啊,还是没有人啊啊啊啊啊,依然没人啊啊啊啊


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...