#297 provide option to not use iy

closed
z80 port (30)
5
2011-06-08
2010-09-23
No

There are some systems of broken design out there that reserve iy for use outside the program'S control (e.g. reserving it for use in interrupt handlers residing in a BIOS). To allow sdcc targetting those there should be an option to not use iy.

Philipp

Discussion

  • In revision #6053 the option --reserve-regs-iy has been added. However the generated code when using the new option can still be buggy or inefficient.

    Philipp

     
    • assigned_to: nobody --> spth
     
  • As of revision #6056 this feature seems to work quite well. However there seem to be a bunch of peephole bugs that are triggered by using this option.

    Philipp

     
    • status: open --> closed
     
  • --reserve-regs-iy seems to work now, at least in the optralloc branch.

    Philipp