-
Categories
-
Platforms
-
Content
Also is there no "Code" listing ability?
Some sites have a CODE between square brackets for posting an example of a scroll page for code listing.
I didn't realize until after posting it you cannot delete a post here!.I see from your "test" post that you have figured this out.
I had tried a zipped file with the .RAR extension but it did not like that,
We have this feature too:Some sites have a CODE between square brackets for posting an example of a scroll page for code listing.
This one for e.g. it displays the code in common colour and format.
BANK1 MACRO
bsf STATUS, RP0
ENDM
BANK0 MACRO
bcf STATUS, RP0
ENDM
;**********************************************************************
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
// some foo stuff to make the code longer for the scroll feature to show
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
// end of foo stuff
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