#934 Destroyed reg "A" before comparison

closed-fixed
hc08 port (43)
5
2013-05-25
2005-06-07
No

Hi!

Here follows some bad library code generated
SDCC Version: 2.5.0 Port: HC08
Regards,
Lacreinto

;_atoi.c:32: if (*s <= '9' && *s >= '0')
ldhx *_atoi_sloc0_1_0
lda ,x
lda #0x39 !!! Register A gets destroyed
psha
cmp 1,s
ais #1
bge 00134$

Discussion

  • Erik Petrich

    Erik Petrich - 2005-06-10
    • assigned_to: nobody --> epetrich
     
  • Erik Petrich

    Erik Petrich - 2005-06-19

    Logged In: YES
    user_id=635249

    Fixed in SDCC 2.5.1 #1044

     
  • Erik Petrich

    Erik Petrich - 2005-06-19
    • milestone: 100454 --> fixed
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks