Compiling on 2.3.5(Oct20 2003,Mingw) for mcs51 on
win2000 the code:
sfr TMOD = 0x89;
void com_init (void)
TMOD |= 0x20;
("sdcc.exe bugtest_235.c") generates :
156 ;bugtest_235.c:7: TMOD |= 0x20;
157 ; genOr
0038 43 00 20 158 orl _TMOD,#0x20
but should be (if I compile on 2.3.1):
141 ; bugtest_231.c 7
142 ; genOr
0038 43 89 20 143 orl _TMOD,#0x20
which works. Please note the 00 <->89 for TMOD Addr.
I have seen (in other tests)that many register adresses
are wrongly linked;to numbers i could not follow.
Please let me know what I miss here (as after all testing
I am not sure if my head is still on)
Thanks a lot
Log in to post a comment.