X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Faddrsize.h;h=9d11ce44cda0e5e4fc4608a211b3ec4e86b413a3;hb=7bd19b737aacfcf0d81e2bc3a6e537ee72a4eb2f;hp=86ed732e933a5be1be8c9c455863832a78cee6d2;hpb=7e740788015cdb2c817d51fffa7c60e5a9d49646;p=cc65 diff --git a/src/common/addrsize.h b/src/common/addrsize.h index 86ed732e9..9d11ce44c 100644 --- a/src/common/addrsize.h +++ b/src/common/addrsize.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2003 Ullrich von Bassewitz */ -/* Römerstraße 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2009, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -39,20 +39,22 @@ /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ +#define ADDR_SIZE_INVALID 0xFF #define ADDR_SIZE_DEFAULT 0x00 #define ADDR_SIZE_ZP 0x01 #define ADDR_SIZE_ABS 0x02 #define ADDR_SIZE_FAR 0x03 +#define ADDR_SIZE_LONG 0x04 /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -60,6 +62,11 @@ const char* AddrSizeToStr (unsigned char AddrSize); /* Return the name for an address size specifier */ +unsigned char AddrSizeFromStr (const char* Str); +/* Return the address size for a given string. Returns ADDR_SIZE_INVALID if + * the string cannot be mapped to an address size. + */ + /* End of addrsize.h */