Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clear ink from attr
#5
LCD Wrote:SETATTR only for paper needs BAND function to work. I myself use pokes, especialy for the whole screen (768 bytes), but SATATTR is fast too. You will need ATTR to read the Attribute at given coordinate, then binary AND it with a mask (BIN 11000111) to get a value without paper. Then you can use a new paper if it is different than zero by binary OR-ing (BOR) it with Paper shifted to left 3 times ( newpaper<<3 ).
BAND is already implemented as an operator! :!: It should be working since 1.2.6 (to say the least).
So
Code:
DIM a as Ubyte = 5
PRINT a bAND 1
Should work and PRINT just 1
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)