view lib/kreiderclib/ltoa.as @ 3285:345ff5806dd7

Correct coco.d filename in shipped Defsfile files It seems that 8 years ago in commit 2624:b8c7b7fbf3c9 the coco defs were put into a new "coco.d" (from "systype"), and the various level*/<port>/defsfile were updated. However, the level*/<port>/defs/Defsfile (that are copied to the disk images under DEFS) were apparently wrongly updated.
author hpmachining <aur@hpminc.com>
date Thu, 18 Jun 2020 20:29:32 +0200
parents 1647f1874cdf
children
line wrap: on
line source

* Disassembly by Os9disasm of ltoa.r

 section code

* class D external label equates

D0000 equ $0000 
D000a equ $000a 

ltoa: clra   
 clrb   
 pshs  d,u 
 ldu   10,s 
 tst   6,s 
 bpl   L0018 
 inc   ,s 
 leax  6,s 
 pshs  x 
 leax  8,s 
 lbsr  _lneg 
 lbsr  _lmove 
L0018 ldd   8,s 
 pshs  d 
 ldd   8,s 
 pshs  d 
 leax  >L005e,pcr 
 lbsr  _lmod 
 ldb   3,x 
 addb  #$30 
 stb   ,u+ 
 leax  6,s 
 pshs  x 
 ldd   2,x 
 pshs  d 
 ldd   ,x 
 pshs  d 
 leax  >L005e,pcr 
 lbsr  _ldiv 
 lbsr  _lmove 
 ldd   8,s 
 addd  6,s 
 bne   L0018 
 tst   ,s 
 beq   L0051 
 ldb   #$2d 
 stb   ,u+ 
L0051 clr   ,u 
 ldd   10,s 
 pshs  d 
 lbsr  reverse 
 leas  4,s 
 puls  u,pc 
L005e neg   D0000 
 neg   D000a 

 endsect