summaryrefslogtreecommitdiff
path: root/device/lib/stm8/bsearch.lst
diff options
context:
space:
mode:
Diffstat (limited to 'device/lib/stm8/bsearch.lst')
-rw-r--r--device/lib/stm8/bsearch.lst117
1 files changed, 0 insertions, 117 deletions
diff --git a/device/lib/stm8/bsearch.lst b/device/lib/stm8/bsearch.lst
deleted file mode 100644
index fa468fc..0000000
--- a/device/lib/stm8/bsearch.lst
+++ /dev/null
@@ -1,117 +0,0 @@
- 1 ;--------------------------------------------------------
- 2 ; File Created by SDCC : free open source ANSI-C Compiler
- 3 ; Version 3.9.3 #11345 (Linux)
- 4 ;--------------------------------------------------------
- 5 .module bsearch
- 6 .optsdcc -mstm8
- 7
- 8 ;--------------------------------------------------------
- 9 ; Public variables in this module
- 10 ;--------------------------------------------------------
- 11 .globl _bsearch
- 12 ;--------------------------------------------------------
- 13 ; ram data
- 14 ;--------------------------------------------------------
- 15 .area DATA
- 16 ;--------------------------------------------------------
- 17 ; ram data
- 18 ;--------------------------------------------------------
- 19 .area INITIALIZED
- 20 ;--------------------------------------------------------
- 21 ; absolute external ram data
- 22 ;--------------------------------------------------------
- 23 .area DABS (ABS)
- 24
- 25 ; default segment ordering for linker
- 26 .area HOME
- 27 .area GSINIT
- 28 .area GSFINAL
- 29 .area CONST
- 30 .area INITIALIZER
- 31 .area CODE
- 32
- 33 ;--------------------------------------------------------
- 34 ; global & static initialisations
- 35 ;--------------------------------------------------------
- 36 .area HOME
- 37 .area GSINIT
- 38 .area GSFINAL
- 39 .area GSINIT
- 40 ;--------------------------------------------------------
- 41 ; Home
- 42 ;--------------------------------------------------------
- 43 .area HOME
- 44 .area HOME
- 45 ;--------------------------------------------------------
- 46 ; code
- 47 ;--------------------------------------------------------
- 48 .area CODE
- 49 ; ../bsearch.c: 31: void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *) __reentrant)
- 50 ; -----------------------------------------
- 51 ; function bsearch
- 52 ; -----------------------------------------
- 000000 53 _bsearch:
- 000000 52 0A [ 2] 54 sub sp, #10
- 55 ; ../bsearch.c: 33: for(const char *left = base; nmemb;)
- 000002 1E 0F [ 2] 56 ldw x, (0x0f, sp)
- 000004 1F 01 [ 2] 57 ldw (0x01, sp), x
- 000006 58 00109$:
- 59 ; ../bsearch.c: 35: const char *middle = left + nmemb / 2 * size;
- 000006 1E 11 [ 2] 60 ldw x, (0x11, sp)
- 000008 27 43 [ 1] 61 jreq 00107$
- 00000A 54 [ 2] 62 srlw x
- 00000B 1F 03 [ 2] 63 ldw (0x03, sp), x
- 00000D 1E 13 [ 2] 64 ldw x, (0x13, sp)
- 00000F 89 [ 2] 65 pushw x
- 000010 1E 05 [ 2] 66 ldw x, (0x05, sp)
- 000012 89 [ 2] 67 pushw x
- 000013 CDr00r00 [ 4] 68 call __mulint
- 000016 5B 04 [ 2] 69 addw sp, #4
- 000018 72 FB 01 [ 2] 70 addw x, (0x01, sp)
- 71 ; ../bsearch.c: 36: int c = (*compar)(key, middle);
- 00001B 1F 05 [ 2] 72 ldw (0x05, sp), x
- 00001D 1F 07 [ 2] 73 ldw (0x07, sp), x
- 00001F 89 [ 2] 74 pushw x
- 000020 1E 0F [ 2] 75 ldw x, (0x0f, sp)
- 000022 89 [ 2] 76 pushw x
- 000023 1E 19 [ 2] 77 ldw x, (0x19, sp)
- 000025 FD [ 4] 78 call (x)
- 000026 5B 04 [ 2] 79 addw sp, #4
- 000028 1F 09 [ 2] 80 ldw (0x09, sp), x
- 81 ; ../bsearch.c: 38: if(c < 0)
- 00002A 0D 09 [ 1] 82 tnz (0x09, sp)
- 00002C 2A 06 [ 1] 83 jrpl 00105$
- 84 ; ../bsearch.c: 39: nmemb = nmemb / 2;
- 00002E 16 03 [ 2] 85 ldw y, (0x03, sp)
- 000030 17 11 [ 2] 86 ldw (0x11, sp), y
- 000032 20 D2 [ 2] 87 jra 00109$
- 000034 88 00105$:
- 89 ; ../bsearch.c: 40: else if(c > 0)
- 000034 1E 09 [ 2] 90 ldw x, (0x09, sp)
- 000036 A3 00 00 [ 2] 91 cpw x, #0x0000
- 000039 2D 0F [ 1] 92 jrsle 00102$
- 93 ; ../bsearch.c: 42: left = middle + size;
- 00003B 1E 05 [ 2] 94 ldw x, (0x05, sp)
- 00003D 72 FB 13 [ 2] 95 addw x, (0x13, sp)
- 000040 1F 01 [ 2] 96 ldw (0x01, sp), x
- 97 ; ../bsearch.c: 43: nmemb = (nmemb - 1) / 2;
- 000042 1E 11 [ 2] 98 ldw x, (0x11, sp)
- 000044 5A [ 2] 99 decw x
- 000045 54 [ 2] 100 srlw x
- 000046 1F 11 [ 2] 101 ldw (0x11, sp), x
- 000048 20 BC [ 2] 102 jra 00109$
- 00004A 103 00102$:
- 104 ; ../bsearch.c: 46: return(middle);
- 00004A 1E 07 [ 2] 105 ldw x, (0x07, sp)
- 106 ; ../bsearch.c: 49: return(0);
- 00004C 21 107 .byte 0x21
- 00004D 108 00107$:
- 00004D 5F [ 1] 109 clrw x
- 00004E 110 00111$:
- 111 ; ../bsearch.c: 50: }
- 00004E 5B 0A [ 2] 112 addw sp, #10
- 000050 81 [ 4] 113 ret
- 114 .area CODE
- 115 .area CONST
- 116 .area INITIALIZER
- 117 .area CABS (ABS)