summaryrefslogtreecommitdiff
path: root/device/lib/stm8/_modulong.lst
diff options
context:
space:
mode:
Diffstat (limited to 'device/lib/stm8/_modulong.lst')
-rw-r--r--device/lib/stm8/_modulong.lst110
1 files changed, 0 insertions, 110 deletions
diff --git a/device/lib/stm8/_modulong.lst b/device/lib/stm8/_modulong.lst
deleted file mode 100644
index 30e20f2..0000000
--- a/device/lib/stm8/_modulong.lst
+++ /dev/null
@@ -1,110 +0,0 @@
- 1 ;--------------------------------------------------------------------------
- 2 ; _modulong.s
- 3 ;
- 4 ; Copyright (C) 2014, Ben Shi
- 5 ;
- 6 ; This library is free software; you can redistribute it and/or modify it
- 7 ; under the terms of the GNU General Public License as published by the
- 8 ; Free Software Foundation; either version 2, or (at your option) any
- 9 ; later version.
- 10 ;
- 11 ; This library is distributed in the hope that it will be useful,
- 12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- 13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- 14 ; GNU General Public License for more details.
- 15 ;
- 16 ; You should have received a copy of the GNU General Public License
- 17 ; along with this library; see the file COPYING. If not, write to the
- 18 ; Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
- 19 ; MA 02110-1301, USA.
- 20 ;
- 21 ; As a special exception, if you link this library with other files,
- 22 ; some of which are compiled with SDCC, to produce an executable,
- 23 ; this library does not by itself cause the resulting executable to
- 24 ; be covered by the GNU General Public License. This exception does
- 25 ; not however invalidate any other reasons why the executable file
- 26 ; might be covered by the GNU General Public License.
- 27 ;--------------------------------------------------------------------------
- 28
- 29 .globl __modulong
- 30
- 31 .area CODE
- 000000 32 __modulong:
- 000000 52 03 [ 2] 33 sub sp, #3
- 34 ; device/lib/_modulong.c: 342: unsigned char count = 0;
- 000002 0F 03 [ 1] 35 clr (0x03, sp)
- 36 ; device/lib/_modulong.c: 344: while (!MSB_SET(b))
- 000004 0F 01 [ 1] 37 clr (0x01, sp)
- 000006 38 __modulong_00103:
- 000006 7B 0A [ 1] 39 ld a, (0x0a, sp)
- 000008 48 [ 1] 40 sll a
- 000009 4F [ 1] 41 clr a
- 00000A 49 [ 1] 42 rlc a
- 00000B 4D [ 1] 43 tnz a
- 00000C 26 2E [ 1] 44 jrne __modulong_00117
- 45 ; device/lib/_modulong.c: 346: b <<= 1;
- 00000E 16 0C [ 2] 46 ldw y, (0x0c, sp)
- 000010 1E 0A [ 2] 47 ldw x, (0x0a, sp)
- 000012 90 58 [ 2] 48 sllw y
- 000014 59 [ 2] 49 rlcw x
- 000015 17 0C [ 2] 50 ldw (0x0c, sp), y
- 000017 1F 0A [ 2] 51 ldw (0x0a, sp), x
- 52 ; device/lib/_modulong.c: 347: if (b > a)
- 000019 1E 08 [ 2] 53 ldw x, (0x08, sp)
- 00001B 13 0C [ 2] 54 cpw x, (0x0c, sp)
- 00001D 7B 07 [ 1] 55 ld a, (0x07, sp)
- 00001F 12 0B [ 1] 56 sbc a, (0x0b, sp)
- 000021 7B 06 [ 1] 57 ld a, (0x06, sp)
- 000023 12 0A [ 1] 58 sbc a, (0x0a, sp)
- 000025 24 0D [ 1] 59 jrnc __modulong_00102
- 60 ; device/lib/_modulong.c: 349: b >>=1;
- 000027 16 0C [ 2] 61 ldw y, (0x0c, sp)
- 000029 1E 0A [ 2] 62 ldw x, (0x0a, sp)
- 00002B 54 [ 2] 63 srlw x
- 00002C 90 56 [ 2] 64 rrcw y
- 00002E 17 0C [ 2] 65 ldw (0x0c, sp), y
- 000030 1F 0A [ 2] 66 ldw (0x0a, sp), x
- 67 ; device/lib/_modulong.c: 350: break;
- 000032 20 08 [ 2] 68 jra __modulong_00117
- 000034 69 __modulong_00102:
- 70 ; device/lib/_modulong.c: 352: count++;
- 000034 0C 01 [ 1] 71 inc (0x01, sp)
- 000036 7B 01 [ 1] 72 ld a, (0x01, sp)
- 000038 6B 03 [ 1] 73 ld (0x03, sp), a
- 00003A 20 CA [ 2] 74 jra __modulong_00103
- 75 ; device/lib/_modulong.c: 354: do
- 00003C 76 __modulong_00117:
- 00003C 7B 03 [ 1] 77 ld a, (0x03, sp)
- 00003E 6B 02 [ 1] 78 ld (0x02, sp), a
- 000040 79 __modulong_00108:
- 80 ; device/lib/_modulong.c: 356: if (a >= b)
- 000040 1E 08 [ 2] 81 ldw x, (0x08, sp)
- 000042 72 F0 0C [ 2] 82 subw x, (0x0c, sp)
- 000045 7B 07 [ 1] 83 ld a, (0x07, sp)
- 000047 12 0B [ 1] 84 sbc a, (0x0b, sp)
- 000049 90 97 [ 1] 85 ld yl, a
- 00004B 7B 06 [ 1] 86 ld a, (0x06, sp)
- 00004D 12 0A [ 1] 87 sbc a, (0x0a, sp)
- 00004F 25 06 [ 1] 88 jrc __modulong_00107
- 89 ; device/lib/_modulong.c: 357: a -= b;
- 000051 1F 08 [ 2] 90 ldw (0x08, sp), x
- 000053 90 95 [ 1] 91 ld yh, a
- 000055 17 06 [ 2] 92 ldw (0x06, sp), y
- 000057 93 __modulong_00107:
- 94 ; device/lib/_modulong.c: 358: b >>= 1;
- 000057 16 0C [ 2] 95 ldw y, (0x0c, sp)
- 000059 1E 0A [ 2] 96 ldw x, (0x0a, sp)
- 00005B 54 [ 2] 97 srlw x
- 00005C 90 56 [ 2] 98 rrcw y
- 00005E 17 0C [ 2] 99 ldw (0x0c, sp), y
- 000060 1F 0A [ 2] 100 ldw (0x0a, sp), x
- 101 ; device/lib/_modulong.c: 360: while (count--);
- 000062 7B 02 [ 1] 102 ld a, (0x02, sp)
- 000064 0A 02 [ 1] 103 dec (0x02, sp)
- 000066 4D [ 1] 104 tnz a
- 000067 26 D7 [ 1] 105 jrne __modulong_00108
- 106 ; device/lib/_modulong.c: 362: return a;
- 000069 1E 08 [ 2] 107 ldw x, (0x08, sp)
- 00006B 16 06 [ 2] 108 ldw y, (0x06, sp)
- 00006D 5B 03 [ 2] 109 addw sp, #3
- 00006F 81 [ 4] 110 ret