Chapter 41. v850 Dependent Features
235
.offset
expression
Moves the offset into the current section to the specified amount.
.section "name",
type
This is an extension to the standard .section directive. It sets the current section to be
type
and creates an alias for this section called "name".
.v850
Specifies that the assembled code should be marked as being targeted at the V850 processor. This
allows the linker to detect attempts to link such code with code assembled for other processors.
.v850e
Specifies that the assembled code should be marked as being targeted at the V850E processor.
This allows the linker to detect attempts to link such code with code assembled for other proces 
sors.
.v850e1
Specifies that the assembled code should be marked as being targeted at the V850E1 proces 
sor. This allows the linker to detect attempts to link such code with code assembled for other
processors.
41.5. Opcodes
as
implements all the standard V850 opcodes.
as
also implements the following pseudo ops:
hi0()
Computes the higher 16 bits of the given expression and stores it into the immediate operand
field of the given instruction. For example:
mulhi hi0(here   there), r5, r6
computes the difference between the address of labels 'here' and 'there', takes the upper 16 bits
of this difference, shifts it down 16 bits and then mutliplies it by the lower 16 bits in register 5,
putting the result into register 6.
lo()
Computes the lower 16 bits of the given expression and stores it into the immediate operand field
of the given instruction. For example:
addi lo(here   there), r5, r6
computes the difference between the address of labels 'here' and 'there', takes the lower 16 bits
of this difference and adds it to register 5, putting the result into register 6.
hi()
Computes the higher 16 bits of the given expression and then adds the value of the most signif 
icant bit of the lower 16 bits of the expression and stores the result into the immediate operand
field of the given instruction. For example the following code can be used to compute the address
of the label 'here' and store it into register 6:






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

canadian web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved