Adding and reading byte variable from the bit array?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: Adding and reading byte variable from the bit array?

    The issue is that these boundaries should be changeable, since different chars will have different pixel width.
    There are two ways of doing this - all capitals have same width and all non-capital letters have another, smaller width. This indeed reduces some visual gaps, but not exactly what I want.
    So my idea is to have a spare, "mask" byte for each character, which will define it's width and entry and exit points.
    Say, there's "t", it is 4 pixels wide, and "mask" for it will look like this 00011110. zeros will be trimmed, and bits #5,4,3,2,1 from the letter shape will be added to output image.
    Another, more complex idea, is to do it "ZX Spectrum way", via complex STR/MID/LEN/ASC and other statements, currently not implemented, but still doable, in PBP....

  2. #2
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: Adding and reading byte variable from the bit array?

    FOR X=1 to 5
    Y=Z.X
    NEXT

    As I understand, such operation is not possible in PBP, I mean, it is not possible to substitute variable as a bit part identifier for another variable?

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: Adding and reading byte variable from the bit array?

    As I understand, such operation is not possible in PBP, I mean, it is not possible to substitute variable as a bit part identifier for another variable?
    where did you get that idea, it is very possible with the correct syntax

    suggest a read of the manual re

    Applying Offsets to Bits within a Variable or Register
    Warning I'm not a teacher

  4. #4
    Join Date
    Feb 2013
    Posts
    1,132


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Adding and reading byte variable from the bit array?

    I didn't get the idea, I just tried it and it gives syntax error......

Similar Threads

  1. Checking Bit of a Byte using another variable
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th December 2010, 15:02
  2. adding new word variable ?
    By iugmoh in forum General
    Replies: 4
    Last Post: - 21st February 2008, 00:26
  3. Setting / resetting a variable bit within a byte
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th February 2008, 18:38
  4. Bit/Byte array for Hserin/Hserout
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st September 2006, 23:07
  5. Word array behaving like byte array.... wierd
    By forgie in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd August 2005, 15:43

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts