08-24-2025, 05:18 PM
Define your type for starters: DIM chracter AS _UNSIGNED _BYTE
I don't see why you don't just: PUT #1, , chracter
What's the desire to convert it to a string character first with the CHR$ usage?
And why are you putting CHARACTER64 to the file, when you're changing the value of chracter in the SELECT CASE?
Your variable types aren't matching here. And aren't your values in reverse order? Bit 0 is normally the 2 ^ 0 bit, while bit 7 is the 2 ^ 7 bit. Doesn't seem to me like you'd need a SELECT CASE here. Just a simple: chracter = character + 2 ^ HORIPIXEL%
I don't see why you don't just: PUT #1, , chracter
What's the desire to convert it to a string character first with the CHR$ usage?
And why are you putting CHARACTER64 to the file, when you're changing the value of chracter in the SELECT CASE?
Your variable types aren't matching here. And aren't your values in reverse order? Bit 0 is normally the 2 ^ 0 bit, while bit 7 is the 2 ^ 7 bit. Doesn't seem to me like you'd need a SELECT CASE here. Just a simple: chracter = character + 2 ^ HORIPIXEL%


