ReadByte question....

Just starting out? Need help? Post your questions and find answers here.
GregBUG
User
User
Posts: 16
Joined: Tue Apr 13, 2004 10:02 pm
Location: Italy

ReadByte question....

Post by GregBUG »

there is a system in order to make so that "readbyte" releases a byte without sign? 8O

in blitzbasic :oops: "readbyte" release a byte from 0..255

thanks!
Ciao Ciao!
GregBUG [Gianluca D'Angelo]
Fred
Administrator
Administrator
Posts: 18263
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can try:

MyUnisgnedByte.l = ReadByte() & $FF
GregBUG
User
User
Posts: 16
Joined: Tue Apr 13, 2004 10:02 pm
Location: Italy

Post by GregBUG »

OK! work fine!

thanks!!!!
Ciao Ciao!
GregBUG [Gianluca D'Angelo]
Post Reply