Autor Tema: error programando o en configuracion de mplab ?  (Leído 2637 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado nahueldiaz1992

  • PIC12
  • **
  • Mensajes: 75
error programando o en configuracion de mplab ?
« en: 25 de Agosto de 2013, 16:46:25 »
hola soy practicamente nuevo en el tema ... se un poco de programacion en asm y me estan ayudando a avanzar con este tema ... pero tengo un problema en otra pc o cuando me estan enseñando me andan los programas pero en mi pc me pone ultimamente BUILD FAILED  creo que me estoy comiendo algo o me falta algo o alguna configuracion capas ... me podrian ayudar ?? desde ya muchas gracias !°!

codigo :


list p=16f88

      #INCLUDE <P16F88.INC>

         CBLOCK 0X20
                REG1
                REG2
                REG3
         
         ORG    0X0000
         GOTO   MAIN
         
         
         MAIN   CLRF     PORTB
                BANKSEL  TRISB
                MOVLW    0X0C
                MOVWF    TRISB
                BANKSEL  PORTB
                GOTO     PROGRAM
               
         PROGRAM  BSF    PORTB,0
                  GOTO   $             
                  END



,------------------------------------------------------------------



y el error que me tira es el siguiente :

Debug build of project `C:\Users\nahuel\Desktop\Proyectos (assembler)\nahuel1.mcp' started.
Language tool versions: MPASMWIN.exe v5.49, mplink.exe v4.47, mplib.exe v4.47
Preprocessor symbol `__DEBUG' is defined.
Sun Aug 25 16:20:44 2013
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "D:\Program Files (x86)\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F88 "nahuel1.asm" /l"nahuel1.lst" /e"nahuel1.err" /d__DEBUG=1
Warning[205] C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 1 : Found directive in column 1. (list)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 10 : Illegal label (ORG    0X0000)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 11 : Illegal label (GOTO   MAIN)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 14 : Illegal label (MAIN   CLRF     PORTB)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 15 : Illegal label (BANKSEL  TRISB)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 16 : Illegal label (MOVLW    0X0C)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 17 : Illegal label (MOVWF    TRISB)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 18 : Illegal label (BANKSEL  PORTB)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 19 : Illegal label (GOTO     PROGRAM)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 21 : Illegal label (PROGRAM  BSF    PORTB)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 21 : Illegal label (0)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 22 : Illegal label (GOTO   $)
Error[121]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 23 : Illegal label (END)
Error[129]   C:\USERS\NAHUEL\DESKTOP\PROYECTOS (ASSEMBLER)\NAHUEL1.ASM 24 : Expected (END)
Skipping link step.  Not all sources built successfully.
----------------------------------------------------------------------
Debug build of project `C:\Users\nahuel\Desktop\Proyectos (assembler)\nahuel1.mcp' failed.
Language tool versions: MPASMWIN.exe v5.49, mplink.exe v4.47, mplib.exe v4.47
Preprocessor symbol `__DEBUG' is defined.
Sun Aug 25 16:20:45 2013
----------------------------------------------------------------------
BUILD FAILED

;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

el unico error que no entiendo es el 121... el warning si xq esta en la columna incorrecta si no me equivoco ,,,

Desconectado planeta9999

  • Moderadores
  • DsPIC30
  • *****
  • Mensajes: 3520
    • Pinballsp
Re: error programando o en configuracion de mplab ?
« Respuesta #1 en: 25 de Agosto de 2013, 16:59:43 »


Tal vez te falta ENDC depués de REG3, por eso el compilador te da ese puñao de errores de etiquetas ilegales.


« Última modificación: 25 de Agosto de 2013, 17:03:39 por planeta9999 »

Desconectado nahueldiaz1992

  • PIC12
  • **
  • Mensajes: 75
Re: error programando o en configuracion de mplab ?
« Respuesta #2 en: 25 de Agosto de 2013, 19:29:38 »
AJJAJAJ  que tipo boludo que soy como me saltee eso bueno igual muchisimas gracias !!!


 

anything