Download SuperH RISC Engine Assembler, User's Manual
Transcript
.LINE
Coding Example
shc
–code=asmcode -debug test.c
C source program (test.c)
int
{
Assembly source program (test.src)
func()
int
.EXPORT
.SECTION
.LINE
i,j;
_func:
j=0;
for (i=1;i<=10;i++){
j+=i;
}
return(j);
→
.LINE
MOV
.LINE
MOV
MOV
}
_func
P,CODE,ALIGN=4
"/asm/test.c",1
; function: func
; frame size=0
"/asm/test.c",5
#0,R5
"/asm/test.c",6
#10,R6
#1,R4
L212:
.LINE
ADD
ADD
.LINE
CMP/GT
BF
.LINE
RTS
.LINE
MOV
.END
"/asm/test.c",7
R4,R5
#1,R4
"/asm/test.c",6
R6,R4
L212
"/asm/test.c",10
"/asm/test.c",9
R5,R0
Rev. 4.0, 09/98, page 177 of 391
Related documents
M3T-CC32R V.4.30 User`s Manual
SPARC SH Series Simulator/Debugger User's Manual
Old Company Name in Catalogs and Other Documents
Nonthermal Module User`s Manual
H8S, H8/300 Series C/C++ Compiler Package Application Note
MR32R V.3.50 Release 1 User`s Manual
MR32R V.3.50 Release 1 User`s Manual
812 User Manual
820 User Manual
820 User Manual
service manual super audio cd player
Operating Instructions