Download CubeSuite+ V1.00.00 Integrated Development Environment User`s

Transcript
CubeSuite+ Ver.1.00.00
CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS
(c) hi( ) /lo( ) /hi1( )
In the next table, the as850 can specify the higher 16 bits of a 32-bit value, the lower 16 bits of a 32-bit value,
and the value of the higher 16 bits + bit 15 of a 32-bit value by using hi( ), lo( ), and hi1( ) Note .
Note If this information cannot be internally resolved by the assembler, it is reflected in the relocation
information and subsequently resolved by the linker (ld850).
Table 4-11. Area Allocation Quasi Directives
hi ( ) /lo ( ) /hi1 ( )
Meaning
hi ( value )
Higher 16 bits of value
lo ( value )
Lower 16 bits of value
hi1 ( value )
Higher 16 bits of value + value of bit 15 of value
Example
.data
L1:
:
.text
movhi
hi($L1), r0, r10
--Stores the higher 16 bits of the gp offset value of
--L1 in the higher 16 bits of r10, and 0 in the
--lower 16 bits.
movea
lo($L1), r0, r10
--Sign-extends and stores the lower 16 bits of gp
--offset value of L1 in r10
:
movhi
hi1($L1), r0, r1
movea
lo($L1), r1, r10
R20UT0553EJ0100 Rev.1.00
Apr 01, 2011
--Stores the gp offset value of L1 in r10
Page 206 of 943