Why do we use R0 and R1 in indirect addressing mode of 8051? This question has been answered in one of the threads but i want to know how come 8051 can only select one bit for R0 or R1 and R2 to R7 is not possible. sorry if i sound a little stupid. i am a newbee in 8051
Are you debating why Intel designed the processor instruction set as they did, trying to cram in so much information as possible in a byte, or why the compiler generates code in a specific way?
The compiler uses only R0 & R1 because hardware is designed such that only R0 & R1 can be used.
Its our design and we dont like numbers 2-7, hence we designed only for R0 & R1. Do you have any problem with that?
Sorry buddy, but the obtaining of benefits with what was posted above is a bad idea. maybe I didn't say that I have with the language problem (very conceal myself whenever possible to see they were at the elementary sense), but (here I cuss) this too.
I and others here also started (I'm still here I don't really understand) what you must do with R0 and R1. but I fit into the core framework of local processing rules, and you, it seems they march it. I warn you - if you'll use C51 (or my friends), you are certainly reward (free translation).
View all questions in Keil forum