Download RH850 Coding - Renesas Electronics

Transcript
CubeSuite+ V2.01.00
Assembler
CHAPTER 3 COMPILER LANGUAGE SPECIFICATIONS
Function
Embedded Function
Instruction
mulu
Instruction that assigns higher
unsigned long
a, b;
32 bits of unsigned multiplica-
unsigned long
__mul32u(a, b);
tion result to variable
sch0l
sch0r
sch1l
sch1r
ldsr
Bit (0) search from MSB side
Bit (0) search from LSB side
Bit (1) search from MSB side
Bit (1) search from LSB side
Loads to system register
long
a;
long
__sch0l(a);
long
a;
long
__sch0r(a);
long
a;
long
__sch1l(a);
long
a;
long
__sch1r(a);
long
regID;
unsigned long
a;
void __ldsr(regIDNote 2, a);
ldsr
Loads to system register
long
regID;
long
selID;
unsigned long
a;
void __ldsr_rh(regIDNote 2, selIDNote 2, a);
stsr
stsr
Stores contents of system
long
register
unsigned long
Stores contents of system
long
regID;
register
long
selID;
regID;
unsigned long
caxi
Compare and Exchange
long
*a;
long
b, c;
__stsr(regIDNote 2);
__stsr_rh(regIDNote 2, selIDNote 2);
long __caxi(a, b, c);
clr1
Bit clear
unsigned char
*a;
int
bit;
void __clr1(a, bit);
set1
Bit set
unsigned char
*a;
int
bit;
void __set1(a, bit);
not1
Bit not
unsigned char
*a;
int
bit;
void __not1(a, bit);
ldl.wNote 3
stc.wNote 3
synce
Atomic load.
Store
Exception synchronization
R20UT2584EJ0101 Rev.1.01
Sep 01, 2013
long
*a;
long
__ldlw(a);
long
*a;
long
b;
void
__stcw(a, b);
void __synce(void);
Page 79 of 751