sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/d
s400/hc08 2.5.6 #4
221 (Jun 12 2006) (MINGW32)
PIC16Port
Shift Right of an signed int Variable
In the ASM Code a Register is shifted left to get the
sign but this regiser does not contain the High-Byte
of the signed int variable which should be shifed.
Important lines in attachted file:
L 66: C-Code of shift
L 342ff: ASM-Code
Joerg Weigold
Joerg.Weigold@gmx.de
Thanks for the help
C and ASM Code
Logged In: YES
user_id=1115835
Fixed in SDCC r4227.