#251 Function header efficiency

closed
None
5
2008-03-30
2008-03-18
No

The stack is adjusted at function entry. For this the addition is always done using

ld hl,-%d
add hl,sp
ld sp,hl

this is inefficient for small d, dec sp and push af could be used instead.

Philipp

Discussion

  • Philipp Klaus Krause

    • status: open --> closed
     
  • Philipp Klaus Krause

    Logged In: YES
    user_id=564030
    Originator: YES

    Implemented in revision #5127.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks