Assembly Question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    Portland Oregon
    Posts
    15

    Default Assembly Question

    When I try to compile the following code with MicroCode Studio 3.0.0.5 melabs Programmer 4.23 and PBP 2.50b

    < OSCCAL = $58
    GPIO = 0
    CMCON = 7
    ANSEL = 0

    TRISIO = %00111000
    OPTION_REG = %10000000


    Pulse:
    ASM
    bsf gpio, 0
    goto $+1
    goto $+1
    goto $+1
    goto $+1
    goto $+1
    goto $+1
    bcf gpio, 0
    goto $+1
    goto $+1
    goto $+1
    goto $+1
    goto $+1
    goto _Pulse
    ENDASM

    goto Pulse

    end>

    I get error[113] Symbol not previously defined (gpio)

    What am I missing?

    Thanks
    Aaron

  2. #2
    Join Date
    Jan 2007
    Location
    Portland Oregon
    Posts
    15


    Did you find this post helpful? Yes | No

    Default Re: Assembly Question

    @ #define IRTX GPIO
    @ #define PIN 0

    Fixed it, but why?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Assembly Question

    how can we help if you don't specify the PIC you're using? Crystal ball? Continuum Functionner?

    You can specify MPASM to not care about CASE....
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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