Menu ▾ ▴

#4277 support/regression/tests/bug-3674.c fails for mos65(c)02

open
nobody
mos6502 (10)
MOS6502
5
11 hours ago
11 hours ago
No

I just added support/regression/tests/bug-3674.c, which contains many assertions, one of which fails for mos65(c)02. To reproduce, change the lines

#if !defined (__SDCC_mos6502) && !defined (__SDCC_mos65c02) // BUG
  /* dereferenced pointer, array element */
  ASSERT (castArgs (0xa5, 0x5a, (unsigned char)*p, (unsigned char)a[0], 0x1234) == 0);
  ASSERT (castArgs (0x5a, 0xa5, (unsigned char)p[-1], (unsigned char)(*p), 0x1234) == 0);
#endif

Discussion


Log in to post a comment.