mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
New function RegAXUsed
git-svn-id: svn://svn.cc65.org/cc65/trunk@1060 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1366b6cbea
commit
564fbbe448
@ -534,5 +534,11 @@ int RegYUsed (struct CodeSeg* S, unsigned Index)
|
||||
|
||||
|
||||
|
||||
int RegAXUsed (struct CodeSeg* S, unsigned Index)
|
||||
/* Check if the value in A or(!) the value in X are used. */
|
||||
{
|
||||
return (GetRegInfo (S, Index, REG_AX) & REG_AX) != 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -82,7 +82,7 @@ struct CodeSeg;
|
||||
#define REG_AY (REG_A | REG_Y)
|
||||
#define REG_XY (REG_X | REG_Y)
|
||||
#define REG_AXY (REG_AX | REG_Y)
|
||||
#define REG_EAX (REG_AX | REG_SREG)
|
||||
#define REG_EAX (REG_AX | REG_SREG)
|
||||
#define REG_EAXY (REG_EAX | REG_Y)
|
||||
#define REG_ZP 0xFFF8U
|
||||
#define REG_ALL 0xFFFFU
|
||||
@ -131,6 +131,9 @@ int RegXUsed (struct CodeSeg* S, unsigned Index);
|
||||
int RegYUsed (struct CodeSeg* S, unsigned Index);
|
||||
/* Check if the value in Y is used. */
|
||||
|
||||
int RegAXUsed (struct CodeSeg* S, unsigned Index);
|
||||
/* Check if the value in A or(!) the value in X are used. */
|
||||
|
||||
|
||||
|
||||
/* End of codeinfo.h */
|
||||
|
Loading…
Reference in New Issue
Block a user