* RX FAMILY ASSEMBLER V2.00.00 [15 Feb 2013] * SOURCE LIST Mon Feb 18 20:15:19 2013 (1) (2) (3) (4) LOC. OBJ. 0XMDA SOURCE STATEMENT ;RX Family C/C++ Compiler (V2.00.00 [15 Feb 2013]) 18-Feb-2013 20:15:19 ;*** CPU TYPE *** ;-ISA=RXV1 ;*** COMMAND PARAMETER *** ;-output=src=sample.src ;-listfile ;-show=source ;sample.c .glb _x .glb _y .glb _func02 .glb _func03 .glb _func01 (5) (6) ;LineNo. C-SOURCE STATEMENT .SECTION P,CODE 00000000 _func02: .STACK _func02=12 ; 1 #include "include.h" ; 2 int func01(int); ; 3 int func03(int); ; 4 ; 5 int func02(int z) 00000000 6E67 PUSHM R6-R7 00000002 EF16 MOV.L R1, R6 ; 6 { ; 7 x = func01(z); 00000004 05rrrrrr A BSR _func01 00000008 FB72rrrrrrrr MOV.L #_x, R7 0000000E E371 MOV.L R1, [R7] ; 8 if (z == 2) { 00000010 6126 CMP #02H, R6 00000012 18 S BNE L12 00000013 L11: ; bb3 ; 9 x++; 00000013 6211 ADD #01H, R1 00000015 08 S BRA L13 00000016 L12: ; bb6 ; 10 } else { ; 11 x = func03(x + 2); 00000016 6221 ADD #02H, R1 00000018 39rrrr W BSR _func03 0000001B L13: ; bb13 0000001B E371 MOV.L R1, [R7] ; 12 } ; 13 return x; ; 14 } |