Floating point exponential function with base e

Publisher:冰雪勇士Latest update time:2015-02-03 Source: laogu Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Label: FEXP Function: Floating point exponential function with base e

Entry condition: The operand is in [R0].
Exit information: When OV=0, the result is still in [R0]. When OV=1, overflow occurs.
Affected resources: DPTR, PSW, A, B, R2~R7, bits 1EH, 1FH Stack requirement: 6 bytes
FEXP: MOV R5,#1; The weighting coefficient is 1.44272 (Lng2e)
MOV R6,#0B8H
MOV R7,#0ABH
EXP: CLR 1EH; The weighting coefficient is a positive number
LCALL MVR0; Transfer [R0] to the first work area
LCALL MUL1; Perform weighted operation
SJMP E20; Uniform exponentiation with base 2

Reference address:Floating point exponential function with base e

Previous article:Base 2 floating point exponential function
Next article:Floating point exponential function with base 10

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号