/_oldcode/singtest/epfl/e_prox.s
Assembly | 909 lines | 908 code | 1 blank | 0 comment | 1 complexity | 5db28cf5e8aef0eaf094befe2245aeb0 MD5 | raw file
- .file "/home/a514277/bitbucket/chatter/singtest/epfl/e_prox.c"
- .section .debug_abbrev,info
- .Ldebug_abbrev0:
- .section .debug_info,info
- .Ldebug_info0:
- .section .debug_line,info
- .Ldebug_line0:
- .section .text,code
- .Ltext0:
- .section .bss,bss
- .align 2
- _init_value_ir: .space 16
- .section .text,code
- .align 2
- .global _e_calibrate_ir ; export
- .type _e_calibrate_ir,@function
- _e_calibrate_ir:
- .LFB2:
- .LM1:
- .set ___PA___,1
- lnk #40
- mov.d w8,[w15++]
- mov w10,[w15++]
- .LM2:
- clr w0
- mov w0,[w14+6]
- clr w0
- mov w0,[w14+4]
- .LM3:
- bra .L2
- .L3:
- .LM4:
- mov [w14+6],w0
- mov #_init_value_ir,w1
- add w0,w0,w0
- add w0,w1,w1
- clr w0
- mov w0,[w1]
- .LM5:
- mov [w14+6],w0
- add w14,#8,w1
- sl w0,#2,w0
- add w0,w1,w2
- mul.uu w0,#0,w0
- mov.d w0,[w2]
- .LM6:
- mov [w14+6],w0
- inc w0,w0
- mov w0,[w14+6]
- .L2:
- mov [w14+6],w0
- sub w0,#7,[w15]
- .set ___BP___,0
- bra le,.L3
- .LM7:
- bra .L5
- .L6:
- .LM8:
- clr w0
- mov w0,[w14+6]
- bra .L7
- .L8:
- .LM9:
- mov [w14+6],w10
- mov [w14+6],w0
- add w14,#8,w1
- sl w0,#2,w0
- add w1,w0,w0
- mov.d [w0],w8
- mov [w14+6],w0
- rcall _e_get_prox
- asr w0,#15,w1
- add w0,w8,w2
- addc w1,w9,w3
- add w14,#8,w1
- sl w10,#2,w0
- add w0,w1,w0
- mov.d w2,[w0]
- .LM10:
- mul.uu w0,#0,w0
- mov.d w0,[w14]
- bra .L9
- .L10:
- mov #1,w0
- mov #0,w1
- add w0,[w14],[w14]
- addc w1,[++w14],[w14--]
- .L9:
- mov #999,w0
- mov #0,w1
- subr w0,[w14++],[w15]
- subbr w1,[w14--],[w15]
- .set ___BP___,0
- bra le,.L10
- .LM11:
- mov [w14+6],w0
- inc w0,w0
- mov w0,[w14+6]
- .L7:
- mov [w14+6],w0
- sub w0,#7,[w15]
- .set ___BP___,0
- bra le,.L8
- .LM12:
- mov [w14+4],w0
- inc w0,w0
- mov w0,[w14+4]
- .L5:
- mov [w14+4],w1
- mov #99,w0
- sub w1,w0,[w15]
- .set ___BP___,0
- bra le,.L6
- .LM13:
- clr w0
- mov w0,[w14+6]
- bra .L14
- .L15:
- .LM14:
- mov [w14+6],w10
- mov [w14+6],w0
- add w14,#8,w1
- sl w0,#2,w0
- add w1,w0,w0
- mov.d [w0],w0
- rcall ___floatsisf
- mov.d w0,w8
- mov [w14+4],w0
- asr w0,#15,w1
- rcall ___floatsisf
- mov.d w0,w2
- mov.d w8,w0
- rcall ___divsf3
- rcall ___fixsfsi
- mov w0,w2
- mov #_init_value_ir,w1
- add w10,w10,w0
- add w0,w1,w0
- mov w2,[w0]
- .LM15:
- mov [w14+6],w0
- inc w0,w0
- mov w0,[w14+6]
- .L14:
- mov [w14+6],w0
- sub w0,#7,[w15]
- .set ___BP___,0
- bra le,.L15
- .LM16:
- mov [--w15],w10
- mov.d [--w15],w8
- ulnk
- return
- .set ___PA___,0
- .LFE2:
- .align 2
- .global _e_get_prox ; export
- .type _e_get_prox,@function
- _e_get_prox:
- .LFB3:
- .LM17:
- .set ___PA___,1
- lnk #4
- mov w0,[w14]
- .LM18:
- mov #7,w0
- subr w0,[w14],[w15]
- .set ___BP___,0
- bra leu,.L19
- .LM19:
- clr w0
- mov w0,[w14+2]
- bra .L21
- .L19:
- .LM20:
- mov [w14],w0
- mov #_e_ambient_ir,w1
- add w0,w0,w0
- mov [w1+w0],w2
- mov [w14],w0
- mov #_e_ambient_and_reflected_ir,w1
- add w0,w0,w0
- mov [w1+w0],w0
- sub w2,w0,w2
- mov w2,[w14+2]
- .L21:
- mov [w14+2],w0
- .LM21:
- ulnk
- return
- .set ___PA___,0
- .LFE3:
- .align 2
- .global _e_get_calibrated_prox ; export
- .type _e_get_calibrated_prox,@function
- _e_get_calibrated_prox:
- .LFB4:
- .LM22:
- .set ___PA___,1
- lnk #6
- mov w0,[w14+2]
- .LM23:
- mov [w14+2],w0
- sub w0,#7,[w15]
- .set ___BP___,0
- bra leu,.L24
- .LM24:
- clr w0
- mov w0,[w14+4]
- bra .L26
- .L24:
- .LM25:
- mov [w14+2],w0
- mov #_e_ambient_ir,w1
- add w0,w0,w0
- mov [w1+w0],w2
- mov [w14+2],w0
- mov #_e_ambient_and_reflected_ir,w1
- add w0,w0,w0
- mov [w1+w0],w0
- sub w2,w0,w2
- mov [w14+2],w0
- mov #_init_value_ir,w1
- add w0,w0,w0
- mov [w1+w0],w0
- sub w2,w0,[w14]
- .LM26:
- cp0 [w14]
- .set ___BP___,0
- bra le,.L27
- .LM27:
- mov [w14],w0
- mov w0,[w14+4]
- bra .L26
- .L27:
- .LM28:
- clr w0
- mov w0,[w14+4]
- .L26:
- mov [w14+4],w0
- .LM29:
- ulnk
- return
- .set ___PA___,0
- .LFE4:
- .align 2
- .global _e_get_ambient_light ; export
- .type _e_get_ambient_light,@function
- _e_get_ambient_light:
- .LFB5:
- .LM30:
- .set ___PA___,1
- lnk #4
- mov w0,[w14]
- .LM31:
- mov #7,w0
- subr w0,[w14],[w15]
- .set ___BP___,0
- bra leu,.L31
- .LM32:
- clr w0
- mov w0,[w14+2]
- bra .L33
- .L31:
- .LM33:
- mov [w14],w0
- mov #_e_ambient_ir,w1
- add w0,w0,w0
- mov [w1+w0],w1
- mov w1,[w14+2]
- .L33:
- mov [w14+2],w0
- .LM34:
- ulnk
- return
- .set ___PA___,0
- .LFE5:
- .section .debug_frame,info
- .Lframe0:
- .4byte .LECIE0-.LSCIE0
- .LSCIE0:
- .4byte 0xffffffff
- .byte 0x1
- .byte 0
- .uleb128 0x1
- .sleb128 2
- .byte 0x14
- .byte 0xc
- .uleb128 0xf
- .uleb128 0xfffffffc
- .byte 0x9
- .uleb128 0x14
- .uleb128 0xf
- .LECIE0:
- .LSFDE0:
- .4byte .LEFDE0-.LASFDE0
- .LASFDE0:
- .4byte .Lframe0
- .4byte .LFB2
- .4byte .LFE2-.LFB2
- .LEFDE0:
- .LSFDE2:
- .4byte .LEFDE2-.LASFDE2
- .LASFDE2:
- .4byte .Lframe0
- .4byte .LFB3
- .4byte .LFE3-.LFB3
- .LEFDE2:
- .LSFDE4:
- .4byte .LEFDE4-.LASFDE4
- .LASFDE4:
- .4byte .Lframe0
- .4byte .LFB4
- .4byte .LFE4-.LFB4
- .LEFDE4:
- .LSFDE6:
- .4byte .LEFDE6-.LASFDE6
- .LASFDE6:
- .4byte .Lframe0
- .4byte .LFB5
- .4byte .LFE5-.LFB5
- .LEFDE6:
- .section .text,code
- .Letext0:
- .section .debug_line,info
- .4byte .LELT0-.LSLT0
- .LSLT0:
- .2byte 0x2
- .4byte .LELTP0-.LASLTP0
- .LASLTP0:
- .byte 0x1
- .byte 0x1
- .byte 0xf6
- .byte 0xf5
- .byte 0xa
- .byte 0x0
- .byte 0x1
- .byte 0x1
- .byte 0x1
- .byte 0x1
- .byte 0x0
- .byte 0x0
- .byte 0x0
- .byte 0x1
- .ascii "/usr/lib/gcc/pic30-elf/3.01/../../../../pic30-elf/include"
- .byte 0
- .byte 0x0
- .asciz "p30f6014a.h"
- .uleb128 0x1
- .uleb128 0x0
- .uleb128 0x0
- .asciz "e_prox.c"
- .uleb128 0x0
- .uleb128 0x0
- .uleb128 0x0
- .byte 0x0
- .LELTP0:
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM1
- .byte 0x4
- .uleb128 0x2
- .byte 0x59
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM2
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM3
- .byte 0x18
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM4
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM5
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM6
- .byte 0x12
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM7
- .byte 0x19
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM8
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM9
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM10
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM11
- .byte 0x12
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM12
- .byte 0x13
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM13
- .byte 0x1b
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM14
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM15
- .byte 0x13
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM16
- .byte 0x17
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM17
- .byte 0x26
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM18
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM19
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM20
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM21
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM22
- .byte 0x20
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM23
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM24
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM25
- .byte 0x17
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM26
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM27
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM28
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM29
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM30
- .byte 0x1e
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM31
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM32
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM33
- .byte 0x16
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .LM34
- .byte 0x15
- .byte 0x0
- .uleb128 0x5
- .byte 0x2
- .4byte .Letext0
- .byte 0x0
- .uleb128 0x1
- .byte 0x1
- .LELT0:
- .section .debug_info,info
- .4byte 0x278
- .2byte 0x2
- .4byte .Ldebug_abbrev0
- .byte 0x4
- .uleb128 0x1
- .4byte .Ldebug_line0
- .4byte .Letext0
- .4byte .Ltext0
- .ascii "GNU C 4.0.3 (dsPIC30, Microchip v3.01,, resource version 3.02 (A), m"
- .asciz "odified for Debian GNU/Linux) Build date: Apr 21 2008"
- .byte 0x1
- .asciz "e_prox.c"
- .asciz "/home/a514277/bitbucket/chatter/singtest/epfl"
- .uleb128 0x2
- .4byte .LASF0
- .byte 0x2
- .byte 0x7
- .uleb128 0x3
- .asciz "unsigned char"
- .byte 0x1
- .byte 0x8
- .uleb128 0x2
- .4byte .LASF0
- .byte 0x2
- .byte 0x7
- .uleb128 0x4
- .4byte 0x13d
- .byte 0x1
- .asciz "e_calibrate_ir"
- .byte 0x2
- .byte 0x46
- .4byte .LFB2
- .4byte .LFE2
- .byte 0x1
- .byte 0x5e
- .uleb128 0x5
- .asciz "i"
- .byte 0x2
- .byte 0x47
- .4byte 0x13d
- .byte 0x2
- .byte 0x7e
- .sleb128 6
- .uleb128 0x5
- .asciz "j"
- .byte 0x2
- .byte 0x47
- .4byte 0x13d
- .byte 0x2
- .byte 0x7e
- .sleb128 4
- .uleb128 0x5
- .asciz "t"
- .byte 0x2
- .byte 0x48
- .4byte 0x144
- .byte 0x2
- .byte 0x7e
- .sleb128 0
- .uleb128 0x5
- .asciz "tmp"
- .byte 0x2
- .byte 0x49
- .4byte 0x150
- .byte 0x2
- .byte 0x7e
- .sleb128 8
- .byte 0x0
- .uleb128 0x3
- .asciz "int"
- .byte 0x2
- .byte 0x5
- .uleb128 0x3
- .asciz "long int"
- .byte 0x4
- .byte 0x5
- .uleb128 0x6
- .4byte 0x160
- .4byte 0x144
- .uleb128 0x7
- .4byte 0xe2
- .byte 0x7
- .byte 0x0
- .uleb128 0x8
- .4byte 0x191
- .byte 0x1
- .asciz "e_get_prox"
- .byte 0x2
- .byte 0x6c
- .byte 0x1
- .4byte 0x13d
- .4byte .LFB3
- .4byte .LFE3
- .byte 0x1
- .byte 0x5e
- .uleb128 0x9
- .4byte .LASF1
- .byte 0x2
- .byte 0x6b
- .4byte 0xca
- .byte 0x2
- .byte 0x7e
- .sleb128 0
- .byte 0x0
- .uleb128 0x8
- .4byte 0x1dc
- .byte 0x1
- .asciz "e_get_calibrated_prox"
- .byte 0x2
- .byte 0x7d
- .byte 0x1
- .4byte 0x13d
- .4byte .LFB4
- .4byte .LFE4
- .byte 0x1
- .byte 0x5e
- .uleb128 0x9
- .4byte .LASF1
- .byte 0x2
- .byte 0x7c
- .4byte 0xca
- .byte 0x2
- .byte 0x7e
- .sleb128 2
- .uleb128 0x5
- .asciz "temp"
- .byte 0x2
- .byte 0x7e
- .4byte 0x13d
- .byte 0x2
- .byte 0x7e
- .sleb128 0
- .byte 0x0
- .uleb128 0x8
- .4byte 0x216
- .byte 0x1
- .asciz "e_get_ambient_light"
- .byte 0x2
- .byte 0x94
- .byte 0x1
- .4byte 0x13d
- .4byte .LFB5
- .4byte .LFE5
- .byte 0x1
- .byte 0x5e
- .uleb128 0x9
- .4byte .LASF1
- .byte 0x2
- .byte 0x93
- .4byte 0xca
- .byte 0x2
- .byte 0x7e
- .sleb128 0
- .byte 0x0
- .uleb128 0x6
- .4byte 0x226
- .4byte 0x13d
- .uleb128 0x7
- .4byte 0xe2
- .byte 0x7
- .byte 0x0
- .uleb128 0x5
- .asciz "init_value_ir"
- .byte 0x2
- .byte 0x40
- .4byte 0x216
- .byte 0x5
- .byte 0x3
- .4byte _init_value_ir
- .uleb128 0xa
- .asciz "e_ambient_ir"
- .byte 0x2
- .byte 0x3d
- .4byte 0x216
- .byte 0x1
- .byte 0x1
- .uleb128 0xa
- .asciz "e_ambient_and_reflected_ir"
- .byte 0x2
- .byte 0x3e
- .4byte 0x216
- .byte 0x1
- .byte 0x1
- .byte 0x0
- .section .debug_abbrev,info
- .uleb128 0x1
- .uleb128 0x11
- .byte 0x1
- .uleb128 0x10
- .uleb128 0x6
- .uleb128 0x12
- .uleb128 0x1
- .uleb128 0x11
- .uleb128 0x1
- .uleb128 0x25
- .uleb128 0x8
- .uleb128 0x13
- .uleb128 0xb
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0x1b
- .uleb128 0x8
- .byte 0x0
- .byte 0x0
- .uleb128 0x2
- .uleb128 0x24
- .byte 0x0
- .uleb128 0x3
- .uleb128 0xe
- .uleb128 0xb
- .uleb128 0xb
- .uleb128 0x3e
- .uleb128 0xb
- .byte 0x0
- .byte 0x0
- .uleb128 0x3
- .uleb128 0x24
- .byte 0x0
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0xb
- .uleb128 0xb
- .uleb128 0x3e
- .uleb128 0xb
- .byte 0x0
- .byte 0x0
- .uleb128 0x4
- .uleb128 0x2e
- .byte 0x1
- .uleb128 0x1
- .uleb128 0x13
- .uleb128 0x3f
- .uleb128 0xc
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0x3a
- .uleb128 0xb
- .uleb128 0x3b
- .uleb128 0xb
- .uleb128 0x11
- .uleb128 0x1
- .uleb128 0x12
- .uleb128 0x1
- .uleb128 0x40
- .uleb128 0xa
- .byte 0x0
- .byte 0x0
- .uleb128 0x5
- .uleb128 0x34
- .byte 0x0
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0x3a
- .uleb128 0xb
- .uleb128 0x3b
- .uleb128 0xb
- .uleb128 0x49
- .uleb128 0x13
- .uleb128 0x2
- .uleb128 0xa
- .byte 0x0
- .byte 0x0
- .uleb128 0x6
- .uleb128 0x1
- .byte 0x1
- .uleb128 0x1
- .uleb128 0x13
- .uleb128 0x49
- .uleb128 0x13
- .byte 0x0
- .byte 0x0
- .uleb128 0x7
- .uleb128 0x21
- .byte 0x0
- .uleb128 0x49
- .uleb128 0x13
- .uleb128 0x2f
- .uleb128 0xb
- .byte 0x0
- .byte 0x0
- .uleb128 0x8
- .uleb128 0x2e
- .byte 0x1
- .uleb128 0x1
- .uleb128 0x13
- .uleb128 0x3f
- .uleb128 0xc
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0x3a
- .uleb128 0xb
- .uleb128 0x3b
- .uleb128 0xb
- .uleb128 0x27
- .uleb128 0xc
- .uleb128 0x49
- .uleb128 0x13
- .uleb128 0x11
- .uleb128 0x1
- .uleb128 0x12
- .uleb128 0x1
- .uleb128 0x40
- .uleb128 0xa
- .byte 0x0
- .byte 0x0
- .uleb128 0x9
- .uleb128 0x5
- .byte 0x0
- .uleb128 0x3
- .uleb128 0xe
- .uleb128 0x3a
- .uleb128 0xb
- .uleb128 0x3b
- .uleb128 0xb
- .uleb128 0x49
- .uleb128 0x13
- .uleb128 0x2
- .uleb128 0xa
- .byte 0x0
- .byte 0x0
- .uleb128 0xa
- .uleb128 0x34
- .byte 0x0
- .uleb128 0x3
- .uleb128 0x8
- .uleb128 0x3a
- .uleb128 0xb
- .uleb128 0x3b
- .uleb128 0xb
- .uleb128 0x49
- .uleb128 0x13
- .uleb128 0x3f
- .uleb128 0xc
- .uleb128 0x3c
- .uleb128 0xc
- .byte 0x0
- .byte 0x0
- .byte 0x0
- .section .debug_pubnames,info
- .4byte 0x62
- .2byte 0x2
- .4byte .Ldebug_info0
- .4byte 0x27c
- .4byte 0xe9
- .asciz "e_calibrate_ir"
- .4byte 0x160
- .asciz "e_get_prox"
- .4byte 0x191
- .asciz "e_get_calibrated_prox"
- .4byte 0x1dc
- .asciz "e_get_ambient_light"
- .4byte 0x0
- .section .debug_aranges,info
- .4byte 0x1c
- .2byte 0x2
- .4byte .Ldebug_info0
- .byte 0x4
- .byte 0x0
- .2byte 0x0
- .2byte 0x0
- .4byte .Ltext0
- .4byte .Letext0-.Ltext0
- .4byte 0x0
- .4byte 0x0
- .section .debug_str,info
- .LASF0:
- .asciz "unsigned int"
- .LASF1:
- .asciz "sensor_number"
- .end