PropBasic: VGA driver 2 color, palette every 8x8 pixels
Bean
Posts: 8,129
This is a VGA driver that is kind of like the Timex 2068 / Sinclair spectrum.
It has 320 pixel across and 240 pixels up and down.
Each set of 8x8 pixels has it's own foreground and background color (0 to 63).
When I get the character set included it will be 40 x 30 text mode.
I'll update this when I get more included.
It took a bit of trickery to get the timing fast enough for a different palette every 8 pixels, but I got it working.
Nice thing is it only uses 12_000 bytes of hub ram.
[noparse][[/noparse]EDIT]·I updated the driver to a PropBasic .lib file.
Bean
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Post Edited (Bean) : 6/23/2010 4:44:48 PM GMT
It has 320 pixel across and 240 pixels up and down.
Each set of 8x8 pixels has it's own foreground and background color (0 to 63).
When I get the character set included it will be 40 x 30 text mode.
I'll update this when I get more included.
It took a bit of trickery to get the timing fast enough for a different palette every 8 pixels, but I got it working.
Nice thing is it only uses 12_000 bytes of hub ram.
[noparse][[/noparse]EDIT]·I updated the driver to a PropBasic .lib file.
Bean
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Post Edited (Bean) : 6/23/2010 4:44:48 PM GMT
Comments
The last time I looked at the code however I commented alot of it out to work on different parts of the functionality but I can give you an older working version to play arround with. I've scheduled some time to finish the code next week.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Kye: Can't wait to see your code after you finish it.
I've seen some of the spectrum games make very good use of this type of graphics. And with 64 colors even better graphics should be possible.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
I'm off to get the new demo and files.