wordfill verses array.word
mike goettling
Posts: 31
I am having an issue with wordfill command verses array.word
I am using chips VGA_Tile_Driver_Demo2 - Archive [noparse][[/noparse]Date 2006[noparse][[/noparse]1].11.22 Time 02.13].zip
when you print a charactor to the screen it uses
·k := color << 1 + c & 1
····· i := $200 + (c & $FE) + k << 10
····· array.word[noparse][[/noparse]row * cols + col] := i
····· array.word[noparse][[/noparse](row + 1) * cols + col] := i | 1
array is······· long·· array[noparse][[/noparse]tiles/2]
i am trying to do a block clear of space of display memory
wordfill(array1[noparse][[/noparse]0],spacetile,1)·
this clears the top half of the first letter on screen.
wordfill(array1[noparse][[/noparse]0],spacetile,1)
skips the second leter and erase the top of the third letter.
i need to be able to get to the second charactor to start the block fill.
i know that it problem is related to the array is set to a long.
just showing this code for simplisty to test to se if it works
I am using chips VGA_Tile_Driver_Demo2 - Archive [noparse][[/noparse]Date 2006[noparse][[/noparse]1].11.22 Time 02.13].zip
when you print a charactor to the screen it uses
·k := color << 1 + c & 1
····· i := $200 + (c & $FE) + k << 10
····· array.word[noparse][[/noparse]row * cols + col] := i
····· array.word[noparse][[/noparse](row + 1) * cols + col] := i | 1
array is······· long·· array[noparse][[/noparse]tiles/2]
i am trying to do a block clear of space of display memory
wordfill(array1[noparse][[/noparse]0],spacetile,1)·
this clears the top half of the first letter on screen.
wordfill(array1[noparse][[/noparse]0],spacetile,1)
skips the second leter and erase the top of the third letter.
i need to be able to get to the second charactor to start the block fill.
i know that it problem is related to the array is set to a long.
just showing this code for simplisty to test to se if it works
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
i made a mistake in that it should have been array instead of array1
i removed the one but it did not help till i added the @
this is what seems to work.
wordfill(@array.word[noparse][[/noparse]0],spacetile,1)·············· 'clear the top half of the first char
wordfill(@array.word[noparse][[/noparse]1],spacetile,1)·············· 'clears the top half of the second char
you pointed me in the right dir
thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.