Hi All
In Keil C51 version 4
if (a<= 240) will get follow asm code
MOV A,R7 SETB C SUBB A,#0F0H
JNC ?C0001
In Keil C51 Version 5 will get follow asm code
MOV A,R7 SETB C SUBB A,#0F0H MOV A,#080H SUBB A,#080H JNC ?C0001
Why add those two line asm code??
MOV A,#080HSUBB A,#080H
Sorry , my poor english ^^"""
Thanks a lot
FYR
I don't know, signed / unsigned treatment of a char perhaps?
There is also the option to disable standard 'C' integer promotion.
The optimisation level may also be significant.