From: cuz Date: Sun, 21 Dec 2003 10:44:39 +0000 (+0000) Subject: Assume numeric subroutines use anything and change anything. X-Git-Tag: V2.12.0~1007 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da019b064ad2cc6abb6d0d64c17490f9b82ececb;p=cc65 Assume numeric subroutines use anything and change anything. git-svn-id: svn://svn.cc65.org/cc65/trunk@2801 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeinfo.c b/src/cc65/codeinfo.c index 1a583ff02..8ac24b3e1 100644 --- a/src/cc65/codeinfo.c +++ b/src/cc65/codeinfo.c @@ -312,11 +312,12 @@ void GetFuncInfo (const char* Name, unsigned short* Use, unsigned short* Chg) } else if (IsDigit (Name[0]) || Name[0] == '$') { - /* A call to a numeric address. Assume that all CPU registers get - * used, but no memory contents are changed. + /* A call to a numeric address. Assume that anything gets used and + * destroyed. This is not a real problem, since numeric addresses + * are used mostly in inline assembly anyway. */ - *Use = REG_AXY; - *Chg = REG_AXY; + *Use = REG_ALL; + *Chg = REG_ALL; return; } else {