Menu

#1152 arithmetic shift right of signed int

closed-fixed
5
2013-05-25
2006-06-16
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    C and ASM Code

     
  • Raphael Neider

    Raphael Neider - 2006-06-16

    Logged In: YES
    user_id=1115835

    Fixed in SDCC r4227.

     
  • Raphael Neider

    Raphael Neider - 2006-06-16
    • milestone: 100455 --> fixed
    • assigned_to: nobody --> tecodev
    • status: open --> closed-fixed
     

Log in to post a comment.