X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Faddrsize.h;h=9d11ce44cda0e5e4fc4608a211b3ec4e86b413a3;hb=7bd19b737aacfcf0d81e2bc3a6e537ee72a4eb2f;hp=d6297fe0a0a2d9e8313c1b186500911bcdacd50f;hpb=cd8d69d1b047aecf19203fbeec9a39ba9f4c6a3e;p=cc65 diff --git a/src/common/addrsize.h b/src/common/addrsize.h index d6297fe0a..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,15 +39,33 @@ /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ +#define ADDR_SIZE_INVALID 0xFF #define ADDR_SIZE_DEFAULT 0x00 -#define ADDR_SIZE_ZEROPAGE 0x01 -#define ADDR_SIZE_ABSOLUTE 0x02 +#define ADDR_SIZE_ZP 0x01 +#define ADDR_SIZE_ABS 0x02 #define ADDR_SIZE_FAR 0x03 +#define ADDR_SIZE_LONG 0x04 + + + +/*****************************************************************************/ +/* Code */ +/*****************************************************************************/ + + + +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. + */