PDA

View Full Version : Assembly Question



idtat
- 14th June 2011, 22:40
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

idtat
- 14th June 2011, 23:22
@ #define IRTX GPIO
@ #define PIN 0

Fixed it, but why?

mister_e
- 15th June 2011, 02:21
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....