??? 02/22/05 17:48 Read: times |
#88173 - Nevertheless Responding to: ???'s previous message |
even if Keil did have "seamless" inline assembler it would not be safe to assume that you could just set ACC and CY in 'C', fiddle about a bit with inline assembler, then recover ACC and CY into 'C' variables: ACC = var_1; CY = var_2; #pragma ASM RLC A #pragma ENDASM var_3 = ACC; var_4 = CY;It will probably work in some cases but, if the compiler has to do any address calculations or whatever, it could well trash your ACC and/or CY values. The only way to be certain would be to check the generated assembler - if you have to keep doing that, you might just a well write it in assembler! |
Topic | Author | Date |
Rotating Carry (CY) through ACC in C51 | 01/01/70 00:00 | |
Why ? | 01/01/70 00:00 | |
It is a keyboard interface sub routine | 01/01/70 00:00 | |
A51 to C51 interfacing | 01/01/70 00:00 | |
inline | 01/01/70 00:00 | |
it does, but | 01/01/70 00:00 | |
Nevertheless | 01/01/70 00:00 | |
A Case in point | 01/01/70 00:00 | |
what? | 01/01/70 00:00 | |
Thank you. | 01/01/70 00:00 | |
Try | 01/01/70 00:00 | |
what? | 01/01/70 00:00 | |
shift first | 01/01/70 00:00 | |
Problem Solved | 01/01/70 00:00 | |
Wrong approach | 01/01/70 00:00 | |
using chainsaw to perform dental surgery | 01/01/70 00:00 | |
or... | 01/01/70 00:00 | |
ANSI C | 01/01/70 00:00 | |
microcontroller C portability is a myth | 01/01/70 00:00 | |
Portability No .. Commonality Maybe![]() | 01/01/70 00:00 |