如何在程序集8086中创建位图

编程入门 行业动态 更新时间:2024-10-26 12:28:43
本文介绍了如何在程序集8086中创建位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个作业需要创建一个从屏幕一端到另一端的人.我知道您可以更改像素的颜色(所以我所做的就是使用如下所示的指令将默认的黑色像素更改为红色像素)

i have an assignment where I need to create a person walking from one end of a screen to the other. I know you can change the colour of pixels ( som simply all I have been doing is changing the default black pixel to a red pixel using istructions such as below)

01 mov al,03h 02 mov ah,0 03 int 10h 04 mov al,1100b 05 06 mov cx,50 07 mov dx,20 08 09 mov ah,0Ch 10 int 10h

已经知道这将非常繁琐,因为当该人移动时,我将不得不完全改变其先前的位置,然后在另一个位置(逐个像素)重新绘制(稍加修改以使其看起来像他在跑步).我们的教练说ti可以使用位图,但没有解释如何使用.我想知道是否有人可以向我解释如何使用but按钮,或者为此指向我一个好的教程. PS以及我使用的是Windows XP SP1,每次我编译带有exe视频中断的obj文件并尝试运行它时,它都无法正常工作,只是向我显示黑屏或一秒钟而死.我使用emu8086(一个可用于8086处理器的仿真器)并且可以工作,我想知道是否有可能使这16个程序使用Windows XP而不是Windows 98或我来运行.

have learned this will be very tedious because when the person moves I will have to change its previous location completly black and redraw (slightly modified to make him look like he is running) in another location, pixel by pixel. Our instructor has said ti is possible to use a bit map but did not explain how. I was wondering if someone can explain to me how to use a but map or point me to a good tutorial for this. ps as well I am using windows xp sp1 and every time I compile an obj file with video interrupts to a exe and try to run it it does not work, simply shows me a black screen or one second and dies. I use emu8086, an emulator for 8086 processors and works, I was wondering if it is possible to make these 16 but programs to work using windows xp and not reverting to windows 98 or me.

推荐答案

搜索"sprite图形": nondot/sabre/graphpro/sprite2.html [ ^ ] Search for "sprite graphics" : nondot/sabre/graphpro/sprite2.html[^]

更多推荐

如何在程序集8086中创建位图

本文发布于:2023-10-23 18:48:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1521708.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位图   程序   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!