I believe you are thinking of the alternate format?It's been a while since I did asm.
I don't know what is wrong with the config line but the line labels need to be followed by a colon.
; PIC10F200 Configuration Bit Settings
; Assembly source line config statements
#include "p10f200.inc"
; CONFIG
; __config 0xFEB
__CONFIG _WDTE_OFF & _CP_OFF & _MCLRE_OFF
; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR
#include "p10f200.inc"
; CONFIG
; __config 0xFEB
__CONFIG _WDTE_OFF & _CP_OFF & _MCLRE_OFF
RES_VECT CODE 0x0000 ; processor reset vector
GOTO START ; go to beginning of program
; TODO ADD INTERRUPTS HERE IF USED
MAIN_PROG CODE ; let linker place main program
START
MOVLW 0x0
TRIS GPIO ;set's TRIS to ouput
BSF GPIO,1 ;set's GP1 high
LOOP
GOTO LOOP ; loop forever
END
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
8051 need help with code:CCC | Microcontrollers | 6 | ||
What address does it save in EEPROM ? | Digital Design | 8 | ||
M | Recommendations for good 68HC11 assembler? | Programming & Languages | 2 | |
PIC Assembler 10F200 Light an LED Program | Microcontrollers | 49 | ||
M | Assembler program using 89c2051 for (IR remote ) | Microcontrollers | 2 |