Drawing lines in ASM
Moderator: MaxCoderz Staff
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact:
Drawing lines in ASM
I know that you can use bios calls to draw lines to the screen. However, I need to draw lines in an asm prigram running greyscale, so I really don't need to draw to the screen, but the graph buffers. (possibly twice to achieve black rather than grey. Is there an easy way to do this?
If I will end up needing to code something, the line gets to be either horizontal or vertical, but still needs to have edges. (Not like the basic versions of these commands. <shudder>)
Thanks!
-gamefreak
If I will end up needing to code something, the line gets to be either horizontal or vertical, but still needs to have edges. (Not like the basic versions of these commands. <shudder>)
Thanks!
-gamefreak
-
- Extreme Poster
- Posts: 340
- Joined: Fri 07 Jul, 2006 2:39 pm
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
There are a few good line drawing routines on ticalc.org. There is a really nice one by CoBB which can be found here: http://www.ticalc.org/archives/files/fi ... 23429.html
-
- Extreme Poster
- Posts: 340
- Joined: Fri 07 Jul, 2006 2:39 pm
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact:
Hmm... I'm liking this flag idea. I also had a minor thought that may or may not work. I noticed that the greyscale package sort of "ghosts" anything on-screen, but that it goes away if you clear the buffers. Do you suppose that just using the bios calls normally on a white background would produce the effect?
I want to try this buffer idea out though. I see the flag, but how do you tell it what buffer to draw to? I would need to do the draw twice, one for each buffer. Also, can this be applied to text as well?
-gamefreak
I want to try this buffer idea out though. I see the flag, but how do you tell it what buffer to draw to? I would need to do the draw twice, one for each buffer. Also, can this be applied to text as well?
-gamefreak
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
This is the one I use...tr1p1ea wrote:There are a few good line drawing routines on ticalc.org. There is a really nice one by CoBB which can be found here: http://www.ticalc.org/archives/files/fi ... 23429.html
Currently coming up with a new signature idea... since my forum avatar changer was killed by an upgrade...