Began adding float support
[fw/sdcc] / src / z80 / support.h
1 /** @file z80/support.h
2     Support functions for the z80 port.
3 */
4 #ifndef Z80_SUPPORT_INCLUDE
5 #define Z80_SUPPORT_INCLUDE
6
7 typedef unsigned short WORD;
8 typedef unsigned char BYTE;
9
10 typedef struct {
11     WORD w[2];
12     BYTE b[4];
13 } Z80_FLOAT;
14
15 /** Convert a native float into 'z80' format */
16 int convertFloat(Z80_FLOAT *f, double native);
17
18 #endif