Error 152 ??? Hilfe schnell dringend sehr wichtig
	
	
		Hi Leutz in 1 Monat soll ich von meiner Firma aus ein Display Programmieren. Ich bin auch schon fleißig dabei, nur ein Problem gibt es noch. Mein MPLAB funktioniert daheim nicht. Warum auch immer.
Und zwar kommt beim kompilieren der Error 152 er meint er wüsste nicht was dieser Befehl bedeutet, man könnte fast sagen er zieht die Libary nicht an ??? Was kann ich machen schnell und dringend bitte Antworten.
PICNICK danke für deine Antwort nur hab end nicht vergessen.
	 
	
	
	
		So hab vergessen den Code
	
	
		Hier ist der Code denke daran kann nun wirklich nichts falsch sein.
	list p=16f877a
	#include <p16f877a.inc>
;***** variable ************
;***** variable ende********
;*********** init **********	
	bsf 	STATUS, RP0
	movlw	B'00000000'
	movwf	TRISB
	bcf 	STATUS, RP0
	clrf 	PORTB
	clrf	PORTA
	bcf		STATUS, Z
;***********End Init************
Main
	
	movfw	PORTB
	sublw	H'01'
	btfss	STATUS, Z
	goto	Main
	bcf		STATUS, Z
	goto 	Main
	end
Nur halt ein einfaches weil es bei gar keinem Code funktioniert.
Und hier die Error Liste
Make: The target "J:\M. Display\LED Matrix\AD Wandler.o" is out of date.
Executing: "C:\Programme\Microchip\MPASM Suite\MPASMWIN.EXE" /q /p16F877A "AD Wandler.asm" /l"AD Wandler.lst" /e"AD Wandler.err" /o"AD Wandler.o"
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 12 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 13 : Executable code and data must be defined in an appropriate section
Message[302] J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 14 : Register in operand not in bank 0.  Ensure that bank bits are correct.
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 14 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 15 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 16 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 17 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 18 : Executable code and data must be defined in an appropriate section
Error[150]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 22 : Labels must be defined in a code or data section when making an object file
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 24 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 25 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 26 : Executable code and data must be defined in an appropriate section
Error[151]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 27 : Operand contains unresolvable labels or is too complex
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 27 : Executable code and data must be defined in an appropriate section
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 28 : Executable code and data must be defined in an appropriate section
Error[151]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 29 : Operand contains unresolvable labels or is too complex
Error[152]   J:\M. DISPLAY\LED MATRIX\AD WANDLER.ASM 29 : Executable code and data must be defined in an appropriate section
Halting build on first failure as requested.
BUILD FAILED: Sun Jul 17 11:24:04 2005
Ich danke euch