共2条
1/1 1 跳转至页

问
下面这个小程序,编译始终不能通过,请大侠指教
#include "MSP430x44x.h"
#include "fppdef4.s43"
#include "Fpp04.s43"
#include "CNV04.s43"
#define SW_UFLOW 0
#define SW_RND 1
#define DOUBLE 0
#define arg1 0230h
#define arg2 0220h
#define HW_MPY 0
ORG 01100H
RESET
mov.w #0a00h,SP
mov.w #WDTPW+WDTHOLD,&WDTCTL
mov.b #80h,&0220h
mov.b #040h,&0221h
mov.b #00h,&0222h
mov.b #7ch,&0230h
mov.b #00h,&0231h
mov.b #00h,&0232h
call #FLT_SAV
sub #6,sp
mov #arg2,RPARG
mov #arg1,RPRES
call #FLT_ADD
mov #arg1,RPRES
call #FLT_SUB
; store the
; result to
; the destination
add #6,sp
call #FLT_REC
ORG 0FFFEH
DW RESET
END
我用的编译器是4K限制版1。26B,我把“fppdef4.s43"、"Fpp04.s43"、"CNV04.s43"拷贝到“LIB”文件夹里面。如何使用浮点库,请各位大侠指点,急用
#include "MSP430x44x.h"
#include "fppdef4.s43"
#include "Fpp04.s43"
#include "CNV04.s43"
#define SW_UFLOW 0
#define SW_RND 1
#define DOUBLE 0
#define arg1 0230h
#define arg2 0220h
#define HW_MPY 0
ORG 01100H
RESET
mov.w #0a00h,SP
mov.w #WDTPW+WDTHOLD,&WDTCTL
mov.b #80h,&0220h
mov.b #040h,&0221h
mov.b #00h,&0222h
mov.b #7ch,&0230h
mov.b #00h,&0231h
mov.b #00h,&0232h
call #FLT_SAV
sub #6,sp
mov #arg2,RPARG
mov #arg1,RPRES
call #FLT_ADD
mov #arg1,RPRES
call #FLT_SUB
; store the
; result to
; the destination
add #6,sp
call #FLT_REC
ORG 0FFFEH
DW RESET
END
我用的编译器是4K限制版1。26B,我把“fppdef4.s43"、"Fpp04.s43"、"CNV04.s43"拷贝到“LIB”文件夹里面。如何使用浮点库,请各位大侠指点,急用
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
“我踩过的那些坑”主题活动——第002期 | |
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |