i wrote this program to toggel the output of Port d in the proteus and it is running perfectly. But when i complied it with MPASMWIN it shows the following errors. Could you please tell me what wrong with this ?
lst file
#include <p18F4520.inc>
portb equ 0xff6
trisb equ 0f93h
trisd equ 0f95h
portd equ 0xf83
org 0h
bsf trisb,0 ;make Rb0 input
clrf trisd ;make port d output
movf portb,w
movlw 55h
movwf portd
end
lst file
MPASM 02.40 Released BB.ASM 9-24-2015 7:58:14 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
Error[105] : Cannot open file (Include File "p18F4520.inc" not found)
00001 #include <p18F4520.inc>
00002
00000FF6 00003 portb equ 0xff6
00000F93 00004 trisb equ 0f93h
00000F95 00005 trisd equ 0f95h
00000F83 00006 portd equ 0xf83
00007
0000 00008 org 0h
Warning[207]: Found label after column 1. (bsf)
Error[122] : Illegal opcode (trisb)
0000 00009 bsf trisb,0 ;make Rb0 input
Warning[207]: Found label after column 1. (clrf)
Error[122] : Illegal opcode (trisd)
0000 00010 clrf trisd ;make port d output
Warning[207]: Found label after column 1. (movf)
Error[122] : Illegal opcode (portb)
0000 00011 movf portb,w
Warning[207]: Found label after column 1. (movlw)
Error[108] : Illegal character (5)
0000 00012 movlw 55h
Warning[207]: Found label after column 1. (movwf)
Error[122] : Illegal opcode (portd)
0000 00013 movwf portd
00014
00015 end
Error[131] : Processor type is undefined
MPASM 02.40 Released BB.ASM 9-24-2015 7:58:14 PAGE 2
SYMBOL TABLE
LABEL VALUE
portb 00000FF6
portd 00000F83
trisb 00000F93
trisd 00000F95
MEMORY USAGE MAP ('X' = Used, '-' = Unused)
All other memory blocks unused.
Program Memory Words Used: 0
Program Memory Words Free: 1
Errors : 7
Warnings : 5 reported, 0 suppressed
Messages : 0 reported, 0 suppressed