Vga_Hires_text_demo - More colors ?? can you help ?
Webbers
Posts: 2
For all us electronic hobbyists the propellor chip means we can now interface to a touch screen monitor instead of a 2x16 character line display, yipee! - great days ahead.·Incidently you can get a 12" color monitor·on ebay with serial interface for around 120 euro.
I programmed in C many years ago and also did some work with 6502 assembly language for those who remember the atari days. My·problem is Im getting old and my·brain is a little rusty, so if you can help I really would appreciate it -·Im sure you·wizz kids out there can solve my problem in·a few seconds.
The Vga_hires_text_demo is just what i need - except for the fact that you have to have the same color for each character in the row - instead of individual colors for each character. Now this mode can display 128 x 64 characters (= 8192 characters) which if each one was to have its own colour - would mean an extra 8192 (8bit) words or 2048 longs. So there is plenty of memory to do this and although I have tried - I just cant figure out the assembly language.
So has anyone even tried this or would anyone know how to change the code ?
Any info would be greatly appreciated.
Thanks
Paul
I programmed in C many years ago and also did some work with 6502 assembly language for those who remember the atari days. My·problem is Im getting old and my·brain is a little rusty, so if you can help I really would appreciate it -·Im sure you·wizz kids out there can solve my problem in·a few seconds.
The Vga_hires_text_demo is just what i need - except for the fact that you have to have the same color for each character in the row - instead of individual colors for each character. Now this mode can display 128 x 64 characters (= 8192 characters) which if each one was to have its own colour - would mean an extra 8192 (8bit) words or 2048 longs. So there is plenty of memory to do this and although I have tried - I just cant figure out the assembly language.
So has anyone even tried this or would anyone know how to change the code ?
Any info would be greatly appreciated.
Thanks
Paul
Comments
You say that there is not enough processing power to display different colors on the same line and yet that is exactly what the VGA_512_384_bitmap_demo does. I have not managed though to get more that 16 tiles of a different color - maybe thats the maximum it can process ?
Paul
The tiling of color has to do with the way the video generator works in the Propeller chip. Look at the description of the video mode of the counter registers in the Propeller documentation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Other forums I frequent: Briel Computers: brielcomputers.com/forums
Applefritter: applefritter.com
Even at 320x240 you can display 40x30 characters at 8x8 fonts!
Thats a lot more then what you would have got with a little serial LCD.
The HUB memory which is the 32k ram where you would store your bitmap buffer can only be accessed at a slower speed then the 80Mhz the COGs run at.
It works like this because the HUB multiplexes between all of the COGs and the 32k RAM. Sort of like taking turns.
If it's not your turn as a COG then you just wait until your turn comes around again. (I think this is why they call it the Propeller)
Basically the pipeline from the COGs and the RAM is shared between all 8 COGs.