summaryrefslogtreecommitdiff
path: root/src/z80/support.h
blob: a2902b75e8b542763885c19d561899fd6467e753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** @file z80/support.h
    Support functions for the z80 port.
*/
#ifndef Z80_SUPPORT_INCLUDE
#define Z80_SUPPORT_INCLUDE

typedef unsigned short WORD;
typedef unsigned char BYTE;

typedef struct
  {
    WORD w[2];
    BYTE b[4];
  }
Z80_FLOAT;

/** Convert a native float into 'z80' format */
int convertFloat (Z80_FLOAT * f, double native);

#endif