Mercurial > hg > Members > kono > nitros9-code
annotate lib/kreiderclib/strspn.as @ 2833:0f3030598435 lwtools-port
Really fix level 1 builds: Do not use os9 dcopy
Bugs in os9 dcopy make it run into infinite recursion before it
eventually dies of buffer overflow.
Instead use os9 makdir and copy, which was already used some places.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 19:09:05 +0200 |
parents | 1647f1874cdf |
children |
rev | line source |
---|---|
2824 | 1 * Disassembly by Os9disasm of strspn.r |
2 | |
3 section code | |
4 | |
5 strspn: pshs x,u | |
6 ldx 8,s | |
7 ldu 6,s | |
8 pshs x | |
9 L0008 ldb ,u+ | |
10 beq L0028 | |
11 stb 3,s | |
12 lbsr strchr | |
13 bne L0008 | |
14 bra L0028 | |
15 strcspn: pshs x,u | |
16 ldx 8,s | |
17 ldu 6,s | |
18 pshs x | |
19 L001d ldb ,u+ | |
20 beq L0028 | |
21 stb 3,s | |
22 lbsr strchr | |
23 beq L001d | |
24 L0028 leau -1,u | |
25 tfr u,d | |
26 subd 8,s | |
27 leas 4,s | |
28 puls u,pc | |
29 | |
30 endsect | |
31 |