1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-06 18:54:30 +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:
cuz 2001-10-18 19:21:40 +00:00
parent 1366b6cbea
commit 564fbbe448
2 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -131,6 +131,9 @@ int RegXUsed (struct CodeSeg* S, unsigned Index);
int RegYUsed (struct CodeSeg* S, unsigned Index); int RegYUsed (struct CodeSeg* S, unsigned Index);
/* Check if the value in Y is used. */ /* 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 */ /* End of codeinfo.h */