HSERIN string starting index ?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: HSERIN string starting index ?

    if the array offset is always a constant value ,
    declare another var with that offset to use as a pointer using the EXT modifier

    eg
    x var byte[100]
    y var byte EXT

    asm
    y = x+5
    endasm

    hserin 60000,main,[str y\90]
    Warning I'm not a teacher

  2. #2
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: HSERIN string starting index ?

    I am not familiar with this EXT statement .. What does it do exactly ? Can you please explain ?
    - Ipsa scientia potestas est -

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: HSERIN string starting index ?

    Is there a possible way to set an index in the command starting with a specific number ? such as ?
    hserin 60000,main,[str x[5]\90]
    That would be my first test as well, I know it compiles and since [5] is just an offset I would asume it works but since you're asking you've must have tested it and found that it didn't, so I'm curious, what did it do?

    I am not familiar with this EXT statement .. What does it do exactly ? Can you please explain ?
    http://www.picbasic.co.uk/forum/showthread.php?t=3891

    /Henrik.

Similar Threads

  1. Hserin parsing string...again?
    By kevlar129bp in forum Serial
    Replies: 21
    Last Post: - 9th July 2012, 17:35
  2. HSERIN for variable length string
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2010, 06:58
  3. How to index Port variable
    By jpadin1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th February 2010, 11:36
  4. How to convert a HSERIN string to a hex value?
    By ShortBus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd October 2009, 05:41
  5. parsing string from hserin
    By xxxxxx in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd April 2009, 19:42

Members who have read this thread : 0

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