Mercurial > hg > Members > kono > nitros9-code
annotate lib/kreiderclib/strnucmp.as @ 3295:6b7a7b233925 default tip
makefile: Allow PORTS with level1/2 mix
https://sourceforge.net/p/nitros9/feature-requests/10/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 19 Apr 2022 18:12:17 +0200 |
parents | 1647f1874cdf |
children |
rev | line source |
---|---|
2824 | 1 * Disassembly by Os9disasm of strnucmp.r |
2 | |
3 section code | |
4 | |
5 strnucmp: pshs y,u | |
6 ldu 8,s | |
7 ldd 10,s | |
8 beq L0037 | |
9 bra L0017 | |
10 L000a ldd 10,s | |
11 subd #1 | |
12 std 10,s | |
13 beq L0035 | |
14 ldb ,u+ | |
15 beq L0035 | |
16 L0017 ldb ,u | |
17 clra | |
18 pshs d | |
19 lbsr toupper | |
20 std ,s | |
21 ldx 8,s | |
22 ldb ,x+ | |
23 stx 8,s | |
24 clra | |
25 pshs d | |
26 lbsr toupper | |
27 leas 2,s | |
28 subd ,s++ | |
29 beq L000a | |
30 bra L0037 | |
31 L0035 clra | |
32 clrb | |
33 L0037 puls y,u,pc | |
34 | |
35 endsect | |
36 |