I added some more text to scroll "MARCH 19" and smiley faces.
Im a bit stuck again in some of the scrolling. I can scroll Up and Left but not Down and Right unless I use a ColMask DATA statement or something like that.
I have attached the code if I can get some help. I will keep trying of course to understand it more.
Thanks.
Post Edited (T&E Engineer) : 3/18/2007 11:38:52 PM GMT
To scroll up and down you're going to need to shift the buffer data, and if you need to roll around they you'll have to set the carry with the opposite side bit before doing so. To roll a word left you would do something like this:
ASM
RL tmpW1_LSB
RL tmpW1_MSB
MOVB tmpW1_LSB, C
ENDASM
I appreciate the help but the ASM code is foreign to me at this point. I have been able to scroll in all 4 directions using variations of ColMask DATA statements for your CGoL· 8x8 LED program. However, the latest 16x16 LED program that you have graciously helped me with does not use ColMask DATA statements. I was able to scroll LEFT and UP with the program attached to my last posting·WITH OUT·ColMask Data statements. Although I did notice that when scrolling LEFT, the bits are reversed and may need to be mirrored or something.
What I can't do is scroll DOWN or RIGHT using your 16x16 LED program - as I do not know how to implement the ColMask DATA statements to this program.
I think the easiest approach without getting into ASM is to learn how to use the 16x16 LED program with ColMask DATA (or WDATA) statements instead of the "1 << col" approach.
I will keep trying to figure this out but I just don't understand everything you did completely.
Comments
Im a bit stuck again in some of the scrolling. I can scroll Up and Left but not Down and Right unless I use a ColMask DATA statement or something like that.
I have attached the code if I can get some help. I will keep trying of course to understand it more.
Thanks.
Post Edited (T&E Engineer) : 3/18/2007 11:38:52 PM GMT
Post Edited (JonnyMac) : 3/19/2007 1:04:53 AM GMT
I appreciate the help but the ASM code is foreign to me at this point. I have been able to scroll in all 4 directions using variations of ColMask DATA statements for your CGoL· 8x8 LED program. However, the latest 16x16 LED program that you have graciously helped me with does not use ColMask DATA statements. I was able to scroll LEFT and UP with the program attached to my last posting·WITH OUT·ColMask Data statements. Although I did notice that when scrolling LEFT, the bits are reversed and may need to be mirrored or something.
What I can't do is scroll DOWN or RIGHT using your 16x16 LED program - as I do not know how to implement the ColMask DATA statements to this program.
I think the easiest approach without getting into ASM is to learn how to use the 16x16 LED program with ColMask DATA (or WDATA) statements instead of the "1 << col" approach.
I will keep trying to figure this out but I just don't understand everything you did completely.
Thanks again.