?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.  ifndef included_xlog10
  2.  define included_xlog10
  3.  include "../common/pushpop.asm"
  4.  include "constantsx.asm"
  5.  include "xmul.asm"
  6.  include "xln.asm"
  7.  
  8. xlog10:
  9. ;lg(x) = ln(x)/ln(2)
  10.   call pushpop
  11.   call xln
  12.   ld h,b
  13.   ld l,c
  14.   ld de,xconst_log10_e
  15.   jp xmul
  16.  endif
  17.