Buenas, me estoy iniciando en assembler del PIC, vengo de estar usando mucho C con el CCS.
Pero ahora necesito hacer unos programas en assembler con el MPLAB.
Aca dejo el codigo, al compilarlo me tira los errores que estan listados mas abajo, pensé que era un problema de tabulacion, pero al parecer no (corregi las primeras tabulaciones pero no cambia nada, sigue marcando un error a la altura de los equ).
Otro error que aparece mucho en el listado es el 113, que no me reconoce las intrucciones (movwf, clrf, etc)...
Por favor si me pueden dar una mano se lo agradeceria, hace unos días vengo buscando la solución y no doy con nada.
Los fusibles estan configurados por el mismo MPLAB, el Select Device esta correcto, finaliza con un sleep y end, probe poniendo el #include <p12c508a.inc> pero tampoco, el list es el correcto, cambie el "disable case sensivity" y tampoco.
Me da la impresión que el problema esta antes del codigo...Pongo un pedazo del programa, si es necesario me dicen y lo pongo completo,
;*****************************************************************************************
; Defino registros y directivas
#DEFINE CARRY 03,0
#DEFINE DC 03,1
#DEFINE ZERO 03,2
#DEFINE PD 03,3
#DEFINE TO 03,4
#DEFINE PA 03,5 ;0-Page 0 1-Page 1
#DEFINE GP0 06,0
#DEFINE GP1 06,1
#DEFINE GP2 06,2
#DEFINE GP3 06,3 ;TRIS = b'011011'
#DEFINE GP4 06,4
#DEFINE GP5 06,5
BIZQ equ 08
BDER equ 04
BPAN equ 0C
BARR equ 0E
CODE1 equ 33 ;ID TX - 1 byte y medio
CODE2 equ 30 ;segunda parte en "0" para insertar "XData"
GPIO equ 06
OSCAL equ 05
xdata equ 07
num1 equ 08
num2 equ 09
timer1 equ 0A
timer2 equ 0B
cont_pulsos equ 0C
cont_8bits equ 0D
list p=12c508
;*****************************************************************************************
; Comienzo programa
RESET_VECTOR org 00
movwf OSCAL
goto inicio
;*****************************************************************************************
; Subrutinas de Retardo
timer_180 org 03
movlw d'58'
movwf timer1
bucle_180 decfsz timer1,F
goto bucle_180
retlw 0
silencio_3ms org 08
movlw d'4'
movwf timer2
movlw d'227'
movwf timer1
bucle_3ms decfsz timer1, F
goto bucle_3ms
decfsz timer2, F
goto bucle_3ms
return
silencio_23ms org 11
movlw d'30'
movwf timer2
movlw d'221'
movwf timer1
bucle_23ms decfsz timer1,F
goto bucle_23ms
decfsz timer2,F
goto bucle_23ms
return
;*****************************************************************************************
; Programa Principal
inicio org 19
movlw b'00011111'
option
movlw b'011011'
tris GPIO
clrf xdata
clrf num1
clrf num2
clrf timer1
clrf timer2
movlw d'5'
movwf cont_pulsos
bsf GP2 ;Enciende Led
;....... continua
Estos son los errores al darle BUILD ALL...
Executing: "C:\Archivos de programa\Microchip\MPASM Suite\MPASMWIN.exe" /q /p12C508A "TX3_CAB400.asm" /l"TX3_CAB400.lst" /e"TX3_CAB400.err" /d__DEBUG=1
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 61 : Symbol not previously defined (R)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 61 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 61 : Symbol not previously defined (equ)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 92 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 92 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 92 : Symbol not previously defined (timer1bucle_180)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 96 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 96 : Missing operator
Warning[227] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 97 : Substituting RETLW 0 for RETURN pseudo-op
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 100 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 100 : Missing operator
Warning[227] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 101 : Substituting RETLW 0 for RETURN pseudo-op
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 107 : Symbol not previously defined (option)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 107 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 108 : Symbol not previously defined (tris)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 108 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 109 : Symbol not previously defined (clrf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 109 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 113 : Symbol not previously defined (F)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 113 : Symbol not previously defined (goto)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 113 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 113 : Symbol not previously defined (retardo_inicio)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 115 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 115 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 116 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 116 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 116 : Symbol not previously defined (timer2pul_1)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 118 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 118 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 120 : Symbol not previously defined (movwf)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 120 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 120 : Symbol not previously defined (cont_pulsosbucle_10ms)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Symbol not previously defined (GP5)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Symbol not previously defined (call)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Symbol not previously defined (F)
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Symbol not previously defined (goto)
Error[112] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Missing operator
Error[113] C:\MPLAB\TX3PUL_MPLAB\TX3_CAB400.ASM 121 : Symbol not previously defined (bucle_16bitssepara_bit_num1)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\mplab\TX3PUL_MPLAB\TX_3_CAB400.mcp' failed.
Language tool versions: MPASMWIN.exe v5.46, mplink.exe v4.44, mplib.exe v4.44
Preprocessor symbol `__DEBUG' is defined.
Tue Jul 17 10:55:48 2012
----------------------------------------------------------------------
BUILD FAILED