Switch to full style
PIC Assembly Articles
Post a reply

Object File Directives Usage PIC Assembly

Sat May 11, 2013 1:00 am

Object File Directives Usage PIC Assembly

banksel <label>

  • generate the instruction sequence to set active data bank to the one where
    <label> is located
  • <label> must have been defined before the banksel directive is invoked.
Code:
bigq set 0x300
...
...
...
banksel bigq ; this directive will cause the assembler to
; insert the instruction movlb 0x03



[<label>] org <expr>

  • sets the program origin for subsequent code at the address defined in <expr>.
  • <label> will be assigned the value of <expr>.
Code:
reset org 0x00
goto start

start …
led_pat org 0x1000 ; led_pat has the value of 0x1000
db 0x7E,0x30,0x6D,0x79,0x33,0x5B,0x5F,0x70,0x7F,0x7B



processor <processor_type>

Code:
- Sets the processor type
processor p18F8680 ; set processor type to PIC18F8680




Post a reply
  Related Posts  to : Object File Directives Usage PIC Assembly
 Control Directives usage PIC assembly     -  
 macro usage PIC assembly     -  
 Usage of Request.ServerVariables object     -  
 Marshal Java object to XML file     -  
 Read file content to StringBuffer String object     -  
 assembler directives types     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 PIC Assembly For Loop Example     -  
 multiply two numbers in PIC assembly     -  
 MULTIPLEXING Seven SEGMENT DECODER Assembly     -