Helpful ReplyLockedError 113

Author
Guest
Super Member
  • Total Posts : 80500
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
2004/01/14 05:42:48 (permalink)
0

Error 113

Hi there !
Everytime i want to assemble my program, i get many of these error 113 messages, what is it that i do wrong ?
This is my program :
list p=16f876 ; list directive to define processor
#include <p16f876.inc> ; processor specific variable definitions

__CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_ON & _LVP_OFF & _DEBUG_OFF & _CPD_OFF

ERRORLEVEL -302
w_temp equ 0x71
status_temp equ 0x72


ORG 0x000 ; processor reset vector
clrf PCLATH ; ensure page bits are cleared
goto init ; go to beginning of program


ORG 0x004 ; interrupt vector location
movwf w_temp ; save off current W register contents
movf STATUS,w ; move status register into W register
movwf status_temp ; save off contents of STATUS register
bcf t1con, tmr1on
movlw 0x01
xorwf pom_status, 0
bcf pir1, tmr1if
movlw 0xdb
movwf tmr1l
movlw 0x0b
movwf tmr1h
bsf t1con, tmr1on

movf status_temp,w ; retrieve copy of STATUS register
movwf STATUS ; restore pre-isr STATUS register contents
swapf w_temp,f
swapf w_temp,w ; restore pre-isr W register contents
retfie ; return from interrupt

init
bsf status, rp0 ; bank1
bsf adcon1, pcfg3 ; porta digital
bsf adcon1, pcfg2
bsf adcon1, pcfg1
bsf adcon1, pcfg0
bcf trisa, 2 ; porta2 digital out
bcf trisa, 3 ; porta3 digital out
clrf trisc ; portc digital out
bcf status, rp0 ; bank0
clrf portc

movlw 0x30 ; setup timer1
movwf t1con
movlw 0xdb
movwf tmr1l
movlw 0x0b
movlw tmr1h

movlw 0xc0 ; setup interrupt
movwf intcon
clrf pir1
clrf pir2
bsf status, rp0 ; bank1
clrf pie1
clrf pie2
bsf pie1, tmr1ie
bcf status, rp0 ; bank0

bsf t1con, tmr1on ; start timer

main
btfsc portb, 0 ; poluzje u dosjedu
bsf porta, 3 ; LED On
btfss portb, 0 ; poluzje nije u dosjedu
bcf porta, 3 ; LED Off

btfsc portb, 1 ; katadiopteri na stabilizatorima
bcf portc, 4
btfss portb, 1
bsf portc, 4

btfss portb, 0 ; optocna slavina
goto isklj_opt_slav
btfsc porta, 1
goto uklj_opt_slav
btfsc porta, 4
goto uklj_opt_slav
isklj_opt_slav
bcf portc, 1
goto end_slavina
uklj_opt_slav
bsf portc, 1
end_slavina

btfsc portb, 4 ; LED stabilizatora
goto kontr_led
btfsc portb, 5
goto kontr_led
btfsc portb, 6
goto kontr_led
btfsc portb, 7
goto isklj_led
kontr_led
btfss portb, 4
goto blinkanje
btfss portb, 5
goto blinkanje
btfss portb, 6
goto blinkanje
btfss portb, 7
goto blinkanje
bsf porta, 2
goto end_led
blinkanje
movf pom_status, 0
xorwf porta, 1
goto end_led
isklj_led
bcf porta, 2

goto main
END


AND THIS IS WHAT I GET !

Deleting intermediary files... done.
Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p16F876 "stabi.asm" /l"stabi.lst" /e"stabi.err" /o"stabi.o"
Warning[207] C:\PIC\STABI.ASM 8 : Found label after column 1. (w_temp)
Warning[207] C:\PIC\STABI.ASM 9 : Found label after column 1. (status_temp)
Error[113] C:\PIC\STABI.ASM 21 : Symbol not previously defined (t1con)
Error[113] C:\PIC\STABI.ASM 21 : Symbol not previously defined (tmr1on)
Error[113] C:\PIC\STABI.ASM 23 : Symbol not previously defined (pom_status)
Error[113] C:\PIC\STABI.ASM 24 : Symbol not previously defined (pir1)
Error[113] C:\PIC\STABI.ASM 24 : Symbol not previously defined (tmr1if)
Error[113] C:\PIC\STABI.ASM 26 : Symbol not previously defined (tmr1l)
Error[113] C:\PIC\STABI.ASM 28 : Symbol not previously defined (tmr1h)
Error[113] C:\PIC\STABI.ASM 29 : Symbol not previously defined (t1con)
Error[113] C:\PIC\STABI.ASM 29 : Symbol not previously defined (tmr1on)
Error[113] C:\PIC\STABI.ASM 38 : Symbol not previously defined (status)
Error[113] C:\PIC\STABI.ASM 38 : Symbol not previously defined (rp0)
Error[113] C:\PIC\STABI.ASM 39 : Symbol not previously defined (adcon1)
Error[113] C:\PIC\STABI.ASM 39 : Symbol not previously defined (pcfg3)
Error[113] C:\PIC\STABI.ASM 40 : Symbol not previously defined (adcon1)
Error[113] C:\PIC\STABI.ASM 40 : Symbol not previously defined (pcfg2)
Error[113] C:\PIC\STABI.ASM 41 : Symbol not previously defined (adcon1)
Error[113] C:\PIC\STABI.ASM 41 : Symbol not previously defined (pcfg1)
Error[113] C:\PIC\STABI.ASM 42 : Symbol not previously defined (adcon1)
Error[113] C:\PIC\STABI.ASM 42 : Symbol not previously defined (pcfg0)
Error[113] C:\PIC\STABI.ASM 43 : Symbol not previously defined (trisa)
Error[113] C:\PIC\STABI.ASM 44 : Symbol not previously defined (trisa)
Error[113] C:\PIC\STABI.ASM 45 : Symbol not previously defined (trisc)
Error[113] C:\PIC\STABI.ASM 46 : Symbol not previously defined (status)
Error[113] C:\PIC\STABI.ASM 46 : Symbol not previously defined (rp0)
Error[113] C:\PIC\STABI.ASM 47 : Symbol not previously defined (portc)
Error[113] C:\PIC\STABI.ASM 50 : Symbol not previously defined (t1con)
Error[113] C:\PIC\STABI.ASM 52 : Symbol not previously defined (tmr1l)
Error[113] C:\PIC\STABI.ASM 54 : Symbol not previously defined (tmr1h)
Error[113] C:\PIC\STABI.ASM 57 : Symbol not previously defined (intcon)
Error[113] C:\PIC\STABI.ASM 58 : Symbol not previously defined (pir1)
Error[113] C:\PIC\STABI.ASM 59 : Symbol not previously defined (pir2)
Error[113] C:\PIC\STABI.ASM 60 : Symbol not previously defined (status)
Error[113] C:\PIC\STABI.ASM 60 : Symbol not previously defined (rp0)
Error[113] C:\PIC\STABI.ASM 61 : Symbol not previously defined (pie1)
Error[113] C:\PIC\STABI.ASM 62 : Symbol not previously defined (pie2)
Error[113] C:\PIC\STABI.ASM 63 : Symbol not previously defined (pie1)
Error[113] C:\PIC\STABI.ASM 63 : Symbol not previously defined (tmr1ie)
Error[113] C:\PIC\STABI.ASM 64 : Symbol not previously defined (status)
Error[113] C:\PIC\STABI.ASM 64 : Symbol not previously defined (rp0)
Error[113] C:\PIC\STABI.ASM 66 : Symbol not previously defined (t1con)
Error[113] C:\PIC\STABI.ASM 66 : Symbol not previously defined (tmr1on)
Error[113] C:\PIC\STABI.ASM 69 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 70 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 71 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 72 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 74 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 75 : Symbol not previously defined (portc)
Error[113] C:\PIC\STABI.ASM 76 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 77 : Symbol not previously defined (portc)
Error[113] C:\PIC\STABI.ASM 79 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 81 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 83 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 86 : Symbol not previously defined (portc)
Error[113] C:\PIC\STABI.ASM 89 : Symbol not previously defined (portc)
Error[113] C:\PIC\STABI.ASM 92 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 94 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 96 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 98 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 101 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 103 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 105 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 107 : Symbol not previously defined (portb)
Error[113] C:\PIC\STABI.ASM 109 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 110 : Symbol not previously defined (end_led)
Error[113] C:\PIC\STABI.ASM 112 : Symbol not previously defined (pom_status)
Error[113] C:\PIC\STABI.ASM 113 : Symbol not previously defined (porta)
Error[113] C:\PIC\STABI.ASM 114 : Symbol not previously defined (end_led)
Error[113] C:\PIC\STABI.ASM 116 : Symbol not previously defined (porta)
Warning[203] C:\PIC\STABI.ASM 118 : Found opcode in column 1. (goto)
Warning[205] C:\PIC\STABI.ASM 119 : Found directive in column 1. (END)
Halting build on first failure as requested.
BUILD FAILED: Wed Jan 14 13:42:54 2004
#1
isa.guru
Super Member
  • Total Posts : 1703
  • Reward points : 0
  • Joined: 2003/12/19 13:15:38
  • Location: America's finest city
  • Status: offline
RE: Error 113 2004/01/14 07:25:37 (permalink) ☄ Helpfulby eagle1 2014/11/14 03:51:25
5 (1)
Labels have to start at column 1.
Registers and bits declared in *.inc are case sensitive. Change porta to PORTA etc.
#2
Jump to:
© 2018 APG vNext Commercial Version 4.5