View Full Version : Help with "VGA_1024x768_Tile_Driver_With_Cursor" driver.
I'm trying to understand a bit more that driver.
And I can't found which is the relation of the array_ptr and the graphics setup code.
In fact I want to draw two or three big decimals digits at vga screen in differents positions. (differents colors if possible)
I can't deduce what to assign to @array variable, and how to configure gr.setup to have control in full screen.
I also try to modify the "VGA_Tile_Driver_Demo", to learn more...but I failed.
Thanks in advance for any help.
03-23-2009, 06:15 PM
There's some notes on the bottom of this page that might help:
Thank you Ray.!!
I'll look at them.
Hi Ray, or somebody.
I did it what Ray suggest, and I can move the graphics screen by any place of the image, but......
What about to resize the rectangle size for graphics ??? when I try it, I get some garbage added.
gxt=32 '# graphics tiles in x direction (was 16)
gyt=4 '# graphics tiles in y direction (was 8)
w_x = 15'40 'left tile# of graphics window
w_y = 3'30 'top tile# of graphics windows
w_left = w_x * 16
w_right = w_left + gxt*16 '256
w_top = (48 - w_y) * 16
w_bottom = w_top - gyt*16'128
PUB start | i, j, k
'start and setup graphics
gr.setup(gxt, gyt, gxt*8, gyt*8, bitmap_base)'(16, 8, 16*8, 8*8, bitmap_base)
'make some graphics tiles on the screen
repeat i from 0 to (gyt-1) '7
repeat j from 0 to (gxt-1) '15
array.word[cols * (w_y + i) + j + w_x] := display_base + i*64 + j*gyt*64 + 21 'RJA}}
Replacing qyt by a number greater than four, works me bad...
What I'm not uderstanding in this ?
I would like to use a full graphics screen. And also change that ugly background color.
Thanks in advance.
Sorry, anybody can help me ??
Where can I found detailed documentation about how to use this driver ?
bitmap_base = $4000 why ??
display_base = $6000 why ??
Although in driver are explained array_ptr, how to understand why this ??
array.word[cols * (w_y + i) + j + w_x] := display_base + i << 6 + j <<9 + 21
Where is the 6 bit color ??
Please I'm, stuck with this since a week.