#1171 __gptrget not overload register B

closed-rejected
nobody
None
5
2013-05-25
2006-07-18
Anonymous
No

Function:

unsigned char pass_key(unsigned char dotyk_x, unsigned
char dotyk_y, unsigned char *wsk)
{
unsigned char zm_lk;
zm_lk = *wsk;
while (zm_lk!=0)
{
if (dotyk_x > *(wsk+1))
if (dotyk_x < *(wsk+2))
if (dotyk_y > *(wsk+3))
if (dotyk_y < *(wsk+4))
{
F_key = 1;
return(*(wsk+5));
}
zm_lk--;
wsk += 5;
}
return 0;
}
generating bad return because,
function __gptrget not overload register B

Discussion

  • Logged In: YES
    user_id=589052

    would it be correct to assume you are using a recent SDCC
    and target the 8051 in the small memory model?

     
  • Maarten Brock
    Maarten Brock
    2006-12-06

    Logged In: YES
    user_id=888171
    Originator: NO

    I have no idea what register overloading is.
    I see nothing wrong with the code.
    The report is incomplete.
    And the OP clearly has lost his interest.

     
  • Maarten Brock
    Maarten Brock
    2006-12-06

    • labels: 638148 -->
    • milestone: 100454 --> unreproducable
    • status: open --> closed-rejected