lcc-win的错误/问题 [英] Bug/problem with lcc-win

查看:64
本文介绍了lcc-win的错误/问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在Windows 98上使用lcc-win。我正在编写一个简单的c控制台应用程序,并且

我需要设置背景颜色为蓝色。这是我在

时刻得到的代码:


_asm(" movb $ 2,%ah\\\
"

" movb $ 7,%dl \ n"

" int $ 0x21 \ n"

);


但这不行。


有没有人有任何建议?


谢谢。

Hi

I am using lcc-win on Windows 98. I''m writing a simple c console app, and
I need to set the background color to blue. Here''s the code I''ve got at
the moment:

_asm ( "movb $2, %ah\n"
"movb $7, %dl\n"
"int $0x21\n"
);

But this doesn''t work.

Does anyone have any suggestions?

Thanks.

推荐答案

2,%ah \ n"

" movb
2, %ah\n"
"movb


7,%dl \ n"

" int
7, %dl\n"
"int


0x21 \ n"

);


但这不行。


有没有人有任何建议?


谢谢。

0x21\n"
);

But this doesn''t work.

Does anyone have any suggestions?

Thanks.


这篇关于lcc-win的错误/问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆