你瞧瞧...
.file "test.c"
.version "01.01"
gcc2_compiled.:
.globl __loadsi_bp
.globl __loadsi_sp
.globl __loadsi_dptr
.globl __storesi_bp
.globl __storesi_sp
.globl __storesi_dptr
.globl __loadhi_bp
.globl __loadhi_sp
.globl __loadhi_dptr
.globl __storehi_bp
.globl __storehi_sp
.globl __storehi_dptr
.globl __divsi3
.globl __addsi3
.text
.globl test
.type test,@function
test:
MOV 0x40,#10
MOV 0x41,#0
MOV 0x42,#0
MOV 0x43,#0
MOV DPL,0x30
MOV DPH,0x31
CALL __storesi_dptr
CALL __divsi3
MOV R4,#100
MOV R5,#0
MOV R6,#0
MOV R7,#0
CALL __addsi3
RET
.Lfe1:
.size test,.Lfe1-test
.globl __loaddf_bp
.globl __loaddf_sp
.globl __loaddf_dptr
.globl __storedf_bp
.globl __storedf_sp
.globl __storedf_dptr
.section .rodata
.align 8
.LC0:
.long 0x0,0x40240000
.text
.globl get_x
.type get_x,@function
get_x:
MOV DPTR,.LC0
CALL __loaddf_dptr
MOV DPTR,#-16
CALL __storedf_bp
MOV DPTR,#-24
CALL __storedf_bp
MOV DPTR,#16
CALL __loaddf_bp
MOV DPTR,#-8
CALL __storedf_bp
MOV A,0x60
ADD A,#232
MOV R2,A
MOV A,0x61
ADDC A,#255
MOV R3,A
MOV R4,#24
MOV R5,#0
MOV R6,#0
MOV R7,#0
CALL memcpy
RET
.Lfe2:
.size get_x,.Lfe2-get_x
.globl __muldf3
.globl __adddf3
.globl __addsi3
.globl f
.type f,@function
f:
MOV A,R3
CJNE A,#0,.L4
MOV A,R2
CJNE A,#0,.L4
MOV A,R1
CJNE A,#0,.L4
MOV A,R0
ADD A,#-10
JZ .L2
.L4:
MOV R4,#100
MOV R5,#0
MOV R6,#0
MOV R7,#0
JMP .L3
.L2:
MOV R4,#200
MOV R5,#0
MOV R6,#0
MOV R7,#0
.L3:
MOV A,R7
CJNE A,#0,.L7
MOV A,R6
CJNE A,#0,.L7
MOV A,R5
CJNE A,#0,.L7
MOV A,R4
ADD A,#-100
JZ .L5
.L7:
MOV R0,#200
MOV R1,#0
MOV R2,#0
MOV R3,#0
JMP .L6
.L5:
MOV R0,#44
MOV R1,#1
MOV R2,#0
MOV R3,#0
.L6:
MOV A,0x60
ADD A,#236
MOV 0x30,A
MOV A,0x61
ADDC A,#255
MOV 0x31,A
CALL test
MOV DPTR,#-20
CALL __loadsi_bp
MOV R4,0x40
MOV R5,0x41
MOV R6,0x42
MOV R7,0x43
CALL __addsi3
RET
.Lfe3:
.size f,.Lfe3-f
.ident "GCC: (GNU) 2.95.3 20010315 (release)"
发表时间:2004年10月17日20:25:21