Total members 11895 |It is currently Sun Dec 22, 2024 12:52 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com