mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 17:33:00 +00:00
Added/corrected code info.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4033 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
97c0e45c9f
commit
430c13f658
@ -68,15 +68,15 @@ static const char CmpSuffixTab [][4] = {
|
|||||||
*/
|
*/
|
||||||
typedef struct FuncInfo FuncInfo;
|
typedef struct FuncInfo FuncInfo;
|
||||||
struct FuncInfo {
|
struct FuncInfo {
|
||||||
const char* Name; /* Function name */
|
const char* Name; /* Function name */
|
||||||
unsigned short Use; /* Register usage */
|
unsigned short Use; /* Register usage */
|
||||||
unsigned short Chg; /* Changed/destroyed registers */
|
unsigned short Chg; /* Changed/destroyed registers */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Note for the shift functions: Shifts are done modulo 32, so all shift
|
/* Note for the shift functions: Shifts are done modulo 32, so all shift
|
||||||
* routines are marked to use only the A register. The remainder is ignored
|
* routines are marked to use only the A register. The remainder is ignored
|
||||||
* anyway.
|
* anyway.
|
||||||
*/
|
*/
|
||||||
static const FuncInfo FuncInfoTable[] = {
|
static const FuncInfo FuncInfoTable[] = {
|
||||||
{ "addeq0sp", REG_AX, REG_AXY },
|
{ "addeq0sp", REG_AX, REG_AXY },
|
||||||
{ "addeqysp", REG_AXY, REG_AXY },
|
{ "addeqysp", REG_AXY, REG_AXY },
|
||||||
@ -228,8 +228,8 @@ static const FuncInfo FuncInfoTable[] = {
|
|||||||
{ "tosasrax", REG_A, REG_AXY | REG_TMP1 },
|
{ "tosasrax", REG_A, REG_AXY | REG_TMP1 },
|
||||||
{ "tosasreax", REG_A, REG_EAXY | REG_TMP1 },
|
{ "tosasreax", REG_A, REG_EAXY | REG_TMP1 },
|
||||||
{ "tosdiv0ax", REG_AX, REG_ALL },
|
{ "tosdiv0ax", REG_AX, REG_ALL },
|
||||||
{ "tosdiva0", REG_AY, REG_ALL },
|
{ "tosdiva0", REG_A, REG_ALL },
|
||||||
{ "tosdivax", REG_AXY, REG_ALL },
|
{ "tosdivax", REG_AX, REG_ALL },
|
||||||
{ "tosdiveax", REG_EAX, REG_ALL },
|
{ "tosdiveax", REG_EAX, REG_ALL },
|
||||||
{ "toseq00", REG_NONE, REG_AXY | REG_SREG },
|
{ "toseq00", REG_NONE, REG_AXY | REG_SREG },
|
||||||
{ "toseqa0", REG_A, REG_AXY | REG_SREG },
|
{ "toseqa0", REG_A, REG_AXY | REG_SREG },
|
||||||
@ -257,7 +257,7 @@ static const FuncInfo FuncInfoTable[] = {
|
|||||||
{ "tosmod0ax", REG_AX, REG_ALL },
|
{ "tosmod0ax", REG_AX, REG_ALL },
|
||||||
{ "tosmodeax", REG_EAX, REG_ALL },
|
{ "tosmodeax", REG_EAX, REG_ALL },
|
||||||
{ "tosmul0ax", REG_AX, REG_ALL },
|
{ "tosmul0ax", REG_AX, REG_ALL },
|
||||||
{ "tosmula0", REG_AX, REG_ALL },
|
{ "tosmula0", REG_A, REG_ALL },
|
||||||
{ "tosmulax", REG_AX, REG_ALL },
|
{ "tosmulax", REG_AX, REG_ALL },
|
||||||
{ "tosmuleax", REG_EAX, REG_ALL },
|
{ "tosmuleax", REG_EAX, REG_ALL },
|
||||||
{ "tosne00", REG_NONE, REG_AXY | REG_SREG },
|
{ "tosne00", REG_NONE, REG_AXY | REG_SREG },
|
||||||
@ -305,7 +305,7 @@ static const FuncInfo FuncInfoTable[] = {
|
|||||||
{ "tosumodax", REG_AX, REG_EAXY | REG_PTR1 }, /* also ptr4 */
|
{ "tosumodax", REG_AX, REG_EAXY | REG_PTR1 }, /* also ptr4 */
|
||||||
{ "tosumodeax", REG_EAX, REG_ALL & ~REG_SAVE },
|
{ "tosumodeax", REG_EAX, REG_ALL & ~REG_SAVE },
|
||||||
{ "tosumul0ax", REG_AX, REG_ALL },
|
{ "tosumul0ax", REG_AX, REG_ALL },
|
||||||
{ "tosumula0", REG_AX, REG_ALL },
|
{ "tosumula0", REG_A, REG_ALL },
|
||||||
{ "tosumulax", REG_AX, REG_ALL },
|
{ "tosumulax", REG_AX, REG_ALL },
|
||||||
{ "tosumuleax", REG_EAX, REG_ALL },
|
{ "tosumuleax", REG_EAX, REG_ALL },
|
||||||
{ "tosxor0ax", REG_AX, REG_EAX | REG_TMP1 },
|
{ "tosxor0ax", REG_AX, REG_EAX | REG_TMP1 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user