|
-
Apr 15th, 2003, 01:55 PM
#5
Ok, I see.
So
x1 = bx % 320
y1 = bx / 320
x2 = cx % 320
y2 = cx / 320
So you have a line, you need to rasterize it. I'm sure you can find a good rasterizing algorithm on the internet. If it is C (it probably is) just feed it to an optimizing C compiler and convert the resulting assembly to 16-bit code. It should be easier than translating the code yourself.
Then you just put values at the appropriate memory addresses.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|