Hi, I'm really new to assembly and really struggling to understand it, but i have to as its needed for a class. I get a "symbol not defined (delay)" error for the following. Why? (P.S> the delay part isn't done yet)
Mod edit: Added code tags
Code:
title "Our first Assembler program"
list P=PIC18F45K22 ; processor type - include in your test & exam
; code so we can see you selected the correct
; device
#include "p18f45K22.inc"
;
; -------------
; PROGRAM START
; -------------
;
org 0h ; startup address = 0000h
start movlw 0xFF ; move 11111111b to W register
movwf PORTA ; move W to port A
movlw 0x00 ; move 00000000b to W register
movwf PORTA ; move W to port A
goto delay
end
delay nop
nop
nop
nop
goto start