Keil-C51-C-to-SDCC-C-Converter icon indicating copy to clipboard operation
Keil-C51-C-to-SDCC-C-Converter copied to clipboard

Can this convert header from keil to sdcc?

Open physxz opened this issue 2 years ago • 4 comments

Keil has a header called intrins.h. I want to convert this keil file to the format of sdcc, and use the function in it. I tried many ways but none of the worked. Here's the header:

/*--------------------------------------------------------------------------
INTRINS.H
Intrinsic functions for C51.
Copyright (c) 1988-2004 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/

#ifndef __INTRINS_H__
#define __INTRINS_H__

extern void          _nop_     (void);
extern bit           _testbit_ (bit);
extern unsigned char _cror_    (unsigned char, unsigned char);
extern unsigned int  _iror_    (unsigned int,  unsigned char);
extern unsigned long _lror_    (unsigned long, unsigned char);
extern unsigned char _crol_    (unsigned char, unsigned char);
extern unsigned int  _irol_    (unsigned int,  unsigned char);
extern unsigned long _lrol_    (unsigned long, unsigned char);
extern unsigned char _chkfloat_(float);
extern void          _push_    (unsigned char _sfr);
extern void          _pop_     (unsigned char _sfr);

#endif

Any suggestion? Thanks a lot!

physxz avatar Jan 22 '22 07:01 physxz