Error en la linea "PCL"

hola , estoy trabajando en un programa de binario a hexadecimal y me sale este error



""""
Warning[207] G:\RAFA\BAH\BAH.ASM 2 : Found label after column 1. (PORTA)
Warning[207] G:\RAFA\BAH\BAH.ASM 3 : Found label after column 1. (PORTB)
Warning[207] G:\RAFA\BAH\BAH.ASM 4 : Found label after column 1. (STATUS)
Warning[209] G:\RAFA\BAH\BAH.ASM 17 : Missing quote
Error[113] G:\RAFA\BAH\BAH.ASM 22 : Symbol not previously defined (PCL)
Warning[209] G:\RAFA\BAH\BAH.ASM 23 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 24 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 25 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 26 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 27 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 28 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 29 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 30 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 31 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 32 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 33 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 34 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 35 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 36 : Missing quote
Warning[209] G:\RAFA\BAH\BAH.ASM 37 : Missing quote."""""
 

Adjuntos

  • bah.txt
    675 bytes · Visitas: 4
Hola, Te falta definir el registro PCL, debes poner PCL EQU 0X... (el valor que sea)
Missing quote quiere decir que te faltan las comillas al final RETLW B'00000110 debe ser
RETLW B'00000110'
en esta instruccion tenes el mismo priblema ANDLW B'01111111 debe ser ANDLW B'01111111'
 
Puedes definir el registro PCL al igual que definiste el PORTA y PORTB, pero es mejor que incluyas esta línea al principio:
Código:
INCLUDE  <P16F84A.INC>
y así ya se definen todos estos registros.

Saludos!
 
Atrás
Arriba