| ??? 08/22/08 16:35 Read: times |
#157669 - Using 2 Responding to: ???'s previous message |
I was not changing the register bank when this happened. I used register bank 2 for the isr and did not change the register bank (still using 2) when I called the function. I don't like calling functions from ISRs but that was the way the code architect set it up. The generated absolute address was for register bank 0 even though the PSW was set for register bank 2. It was as if the compiler forgot I was in register bank 2 when it created the instruction (a605 which is a mov @R0,5). |
| Topic | Author | Date |
| Keil C51 Compiler Bug | 01/01/70 00:00 | |
| version? | 01/01/70 00:00 | |
| Version | 01/01/70 00:00 | |
| This is what Keil does | 01/01/70 00:00 | |
| not if you follow thw rules | 01/01/70 00:00 | |
| And also call from elsewhere? | 01/01/70 00:00 | |
| Revision... | 01/01/70 00:00 | |
| Using 2 | 01/01/70 00:00 | |
| did you have using 2 in the function header ? | 01/01/70 00:00 | |
| Using 2 | 01/01/70 00:00 | |
| correct cde ---- | 01/01/70 00:00 | |
| Using 2 | 01/01/70 00:00 | |
| people like it working | 01/01/70 00:00 | |
| Eee PC? | 01/01/70 00:00 | |
| HiTech vs Keil | 01/01/70 00:00 | |
| yes | 01/01/70 00:00 | |
OCG C compiler for 8051 | 01/01/70 00:00 | |
| incorrect code in a different place? | 01/01/70 00:00 |



