hallo erstmal, bin Auszubildender und fange grad an mir Assembler beizubringen, kann ja hier sonst keiner...... Ich arbeite mit MPLab und beim Clicken auf MAKEFILE bekomme ich diese Meldung im Output: ---------------------------------------------------------------------- Debug build of project `C:\Dokumente und Einstellungen\Paul\Desktop\test.mcp' started. Preprocessor symbol `__DEBUG' is defined. Fri Jul 04 13:37:28 2008 ---------------------------------------------------------------------- Make: The target "C:\Dokumente und Einstellungen\Paul\Desktop\TRISB.o" is out of date. Executing: "D:\Programme\MPLab\MPASM Suite\MPASMWIN.exe" /q /p16F628 "TRISB.ASM" /l"TRISB.lst" /e"TRISB.err" /d__DEBUG=1 Message[302] C:\DOKUMENTE UND EINSTELLUNGEN\PAUL\DESKTOP\TRISB.ASM 76 : Register in operand not in bank 0. Ensure that bank bits are correct. Error: Bad magic number in COFF file "C:\Dokumente und Einstellungen\Paul\Desktop\TRISB.cod". A language-plugin exception occurred and was logged. ---------------------------------------------------------------------- Debug build of project `C:\Dokumente und Einstellungen\Paul\Desktop\test.mcp' failed. Preprocessor symbol `__DEBUG' is defined. Fri Jul 04 13:37:29 2008 ---------------------------------------------------------------------- BUILD FAILED Nun hab ich mein erstes porblem: "hier der CODE" ;********************************************************************** ; * ; Filename: TRISB.asm * ; Date: 04.07.2008 * ; File Version: V1 * ; * ; Author: -------K.P----- * ; Company: ------WWUM----- * ; * ; * ;********************************************************************** ; * ; Files Required: P16F628.INC * ; * ;********************************************************************** ; * ; Notes: Eine LED soll an Pin 6 (RP0) des PICS zum dauerhaften * ; leuchten gebracht werden, dazu muss der Pin als Ausgang * ; konfiguriert sein. * ; * ;********************************************************************** list p=16f628 ; list directive to define processor #include <p16f628.inc> ; processor specific variable definitions __CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _ER_OSC_CLKOUT & _MCLRE_ON & _LVP_ON ; '__CONFIG' directive is used to embed configuration data within .asm file. ; The lables following the directive are located in the respective .inc file. ; See respective data sheet for additional information on configuration word. ;***** VARIABLE DEFINITIONS w_temp EQU 0x70 ; variable used for context saving status_temp EQU 0x71 ; variable used for context saving RP0 EQU H'0005' TRISB EQU H'0086' PORTB EQU H'0006' STATUS EQU H'0003' ;********************************************************************** ORG 0x000 ; processor reset vector goto main ; 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 ; isr code can go here or be located as a call subroutine elsewhere 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 main clrf PORTB ; PORTB wird gelöscht bsf STATUS,RP0 ; bcf TRISB,0 bcf STATUS,RP0 bsf PORTB,0 END ; directive 'end of program' Würd mich freuen wenn mir jemand helfen könnte!!!!
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.