I'm using the code below. I am keep receiving these errors and can't figure out why. It did work before for me but now doesn't. Any help would be greatly appreciated. I'm using the latest version of PBP and MPLab 8.4 with associated MPASM. Seems it doesn't recognize "Wout" .
ERROR: Unable to execute mpasmwin.Error[113] C:\PBP\PBPPI18L.LIB 593 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 672 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 674 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 593 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 672 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 674 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 593 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\PBPPI18L.LIB 601 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 672 : Symbol not previously defined (Wout)
Error[113] C:\PBP\LSI\PORTEXPANDER\PORTEXPANDER.ASM 674 : Symbol not previously defined (Wout)
Code:
'------------GetAddress Macro - Location insensitive -------------------------
ASM
GetAddress macro Label, Wout ; Returns the Address of a Label as a Word
CHK?RP Wout
movlw low Label
movwf Wout
movlw High Label
movwf Wout + 1
endm
ENDASM
Bookmarks