Mercurial > hg > Members > kono > nitros9-code
view lib/kreiderclib/atoi.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 |
line wrap: on
line source
* Disassembly by Os9disasm of atoi.r section code atoi: pshs u ldu 4,s clra clrb pshs d pshs b L000a ldb ,u+ cmpb #$20 beq L000a cmpb #9 beq L000a cmpb #$2d bne L001c stb ,s bra L0037 L001c cmpb #$2b bne L0039 bra L0037 L0022 ldd 1,s lslb rola lslb rola addd 1,s lslb rola pshs d ldb -1,u clra subb #$30 addd ,s++ std 1,s L0037 ldb ,u+ L0039 cmpb #$30 bcs L0041 cmpb #$39 bls L0022 L0041 tst ,s+ puls d beq L004b nega negb sbca #0 L004b puls u,pc endsect