For each X, the assembly program erases the old pixel at the old Y and plots the new pixel at the new Y. It also updates the word that holds the Y. So, the first time the loop runs, it is going to erase some pixels. The Y buffer for all those pixels is in a VAR, so it is initialized to all zeros. By plotting a line across the top of the screen (Y=0), you give it something to erase, leaving the rest of the screen looking normal afterwards. If you didn't preset those pixels, they would get XOR'd on, and there would be a line at the top of the screen.
Kaos Kidd said...
Chip, what is the reason for these lines?
'fill top line so that it gets erased by COG
longfill(@pixels, $FFFFFFFF, vga#xtiles)
Chip,
Could you explain for me a quick question? How do I tell know where to actually wire the VGA pins? Is basepin the first line, y (16) then v (17) etc.? Just getting started, sorry if this is an obvious one...
PS, you would not believe how much I have searched just trying to get started on this....
neoteric said...
Chip,
Could you explain for me a quick question? How do I tell know where to actually wire the VGA pins? Is basepin the first line, y (16) then v (17) etc.? Just getting started, sorry if this is an obvious one...
PS, you would not believe how much I have searched just trying to get started on this....
Yes, that circuit using those pins has become a de-facto standard for all sorts of prop projects. I've just finished harvesting a D15 plug off an old PC motherboard I got for free at my local computer store. Nothing you can't salvage with an angle grinder and a blowtorch!
Comments
'fill top line so that it gets erased by COG
longfill(@pixels, $FFFFFFFF, vga#xtiles)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
Could you explain for me a quick question? How do I tell know where to actually wire the VGA pins? Is basepin the first line, y (16) then v (17) etc.? Just getting started, sorry if this is an obvious one...
PS, you would not believe how much I have searched just trying to get started on this....
Download the following schematic for the Parallax Demo Board:
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropDemoDschem.pdf
Simple D/A conversion for VGA from the Prop. I think that is what you are asking.
Jim
The downside of scrounging old bits is that you seldon get two idendical types of anything.
·Thats what· I thought.· Full speed ahead.