diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
| commit | 268a53de823a6750d6256ee1fb1e7707b4b45740 (patch) | |
| tree | 42c1799a9a82b2f7d9790ee9fe181d72a7274751 /src/z80/support.h | |
| download | sdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz | |
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'src/z80/support.h')
| -rw-r--r-- | src/z80/support.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/z80/support.h b/src/z80/support.h new file mode 100644 index 0000000..a2902b7 --- /dev/null +++ b/src/z80/support.h @@ -0,0 +1,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 |
