Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This is weird - just plain won't run the code?
#8
boriel Wrote:
Darkstar Wrote:I have had this problem and as it turns out the compiler did an "push hl" in the start up code just after the beginning RAND USR address or ORG, do not know why but there was no reason for it to be there and that is all I know.
If you can reproduce this, please tell me the steps. This will allow me to fix it. Which version were you using?
Usually an extra push hl means a bug in the optimizer (not removing it).

It was a while ago so I do not remember the -O level and I have not even tried to reproduce it. It was the second (after DI) or third instruction, very close to the beginning. Always kept crashing on me even though I recompiled until I found that extra "push hl" instruction and I thought "stupid stupid stupid, what is that doing there?" When I deleted both the TAP file I think it was and the ASM file and then recompiled then finally I got rid of that pesky "push hl" instruction. I do not think I changed the -O level. I have not had this bug since and I do not know how to reproduce it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)