diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2007-11-06 21:48:12 -0800 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2007-11-06 21:48:12 -0800 |
commit | 8c7eca493600aa2ee39554dfe8712fb30a8cec3f (patch) | |
tree | bd1e9129e666eba8f5087f2af62659407cfe0a59 /nasm.h | |
parent | 1f8bc4c9a90ef5c28ba65627f4088920bfb61df4 (diff) | |
download | nasm-8c7eca493600aa2ee39554dfe8712fb30a8cec3f.tar.gz nasm-8c7eca493600aa2ee39554dfe8712fb30a8cec3f.tar.bz2 nasm-8c7eca493600aa2ee39554dfe8712fb30a8cec3f.zip |
Pass 64-bit instruction lengths to back-ends.
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -100,7 +100,7 @@ typedef struct { * work with when doing things like uplevel(LIST_TIMES) or * uplevel(LIST_INCBIN). */ - void (*output) (int32_t, const void *, uint32_t); + void (*output) (int32_t, const void *, uint64_t); /* * Called to send a text line to the listing generator. The @@ -709,7 +709,7 @@ struct ofmt { * The `type' argument specifies the type of output data, and * usually the size as well: its contents are described below. */ - void (*output) (int32_t segto, const void *data, uint32_t type, + void (*output) (int32_t segto, const void *data, uint64_t type, int32_t segment, int32_t wrt); /* @@ -840,13 +840,14 @@ struct ofmt { * OUT_RAWDATA, in which case it points to an "uint8_t" * array. */ -#define OUT_RAWDATA 0x00000000UL -#define OUT_ADDRESS 0x10000000UL -#define OUT_REL2ADR 0x20000000UL -#define OUT_REL4ADR 0x30000000UL -#define OUT_RESERVE 0x40000000UL -#define OUT_TYPMASK 0xF0000000UL -#define OUT_SIZMASK 0x0FFFFFFFUL +#define OUT_RAWDATA (uint64_t)0x0000000000000000 +#define OUT_ADDRESS (uint64_t)0x1000000000000000 +#define OUT_REL2ADR (uint64_t)0x2000000000000000 +#define OUT_REL4ADR (uint64_t)0x3000000000000000 +#define OUT_RESERVE (uint64_t)0x4000000000000000 +#define OUT_REL8ADR (uint64_t)0x5000000000000000 +#define OUT_TYPMASK (uint64_t)0xF000000000000000 +#define OUT_SIZMASK (uint64_t)0x0FFFFFFFFFFFFFFF /* * ------------------------------------------------------------ |