I need help understanding the definition of spacetile in Chip Gracey's VGA 1280
Marc Gebauer
Posts: 60
I thought I had a handle on the use of the constant spacetile when I familiarized myself with Chip Gracey's VGA_1024x768_Tile_Driver_With_Cursor.spin. In the demo, spacetile was defined as $8000 + $20 << 6 = $8800.·I figured out $8800 is the space character in the rom bit map and these spaces are being used to clear the screen via wordfill(@array, spacetile, tiles).
Now I am looking at the VGA_1024x768_Tile_Driver_With_Cursor.spin and I noticed that in the demo spacetile is defined as $220. This does not make sense to me. How does $220 relate to the rom bit map location of the space character? Why is it different?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Now I am looking at the VGA_1024x768_Tile_Driver_With_Cursor.spin and I noticed that in the demo spacetile is defined as $220. This does not make sense to me. How does $220 relate to the rom bit map location of the space character? Why is it different?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
The demo for trhe VGA 1024x768 driver has some code that looks like this:
· 'make some graphics tiles on the screen
· repeat i from 0 to 7
··· repeat j from 0 to 15
····· array.word[noparse][[/noparse]cols * (w_y + i) + j + w_x] := display_base + i << 6 + j <<9 + 21
How would it be written for the VGA 1280x1024 driver?
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 6/16/2007 8:38:32 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔