在Assemble中画一个圆圈 [英] Drawing a circle in Assemble

查看:116
本文介绍了在Assemble中画一个圆圈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个代码,使用汇编语言中的像素绘制一个小圆圈...

我正在使用Masm611 ...我必须使用这个圆圈作为pacman中的一个玩家...

I need a code that draw a small circle using pixels in assembly language...
I am using Masm611... I have to use this circle as a player in pacman...

推荐答案

当然,这种算法可以广泛使用。请参阅:

http://en.wikipedia.org/wiki/Midpoint_circle_algorithm [< a href =http://en.wikipedia.org/wiki/Midpoint_circle_algorithmtarget =_ blanktitle =New Window> ^ ],

http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle .html [ ^ ]。



你应该能够自己组装。它并不依赖于特定的Assembler,而是更多地依赖于平台和对可以使用的硬件的访问。



-SA
Sure, such algorithms are widely available. Please see:
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm[^],
http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle.html[^].

And you should be able to do it in Assembly yourself. It does not depend much on particular Assembler, but more on platform and access to hardware you could use.

—SA


这篇关于在Assemble中画一个圆圈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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