Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BritLion's Putchars
#26
I added a paint subroutine (at the top of this thread), so you can paint a block in a single color, and it works the same as the putchars one. I also sped up the putChars routine a little bit.

In fact, it can't be too hard to do something like:

Code:
SUB putCharsOneColour (x as uByte,y as uByte, width as uByte, height as uByte, dataAddress as uInteger, attribute as uByte)
paint (x,y,width,height,attribute)
putChars(x,y,width,height,dataAddress)
end SUB

(Note that I just wrote the above here, and it isn't tested - but you should get the idea.

The biggest WARNING with these routines is that they are not error trapped at all. They are written for speed, and make assumptions that they won't be told to write off the bottom or right hand side of the screen memory.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)