Hi Everyone Maybe previous a question to application external memory has confused, let me repost sample question about stack of instructions. The assembler code is push register R0,R1 onto stack and pop register R0,R1from stack. So how to write a C51 program like this function or have any instructions? PUSH 0 ; register R0 PUSH 1 ; register R1 . . . . POP 1 ; register R0 POP 0 ; register R1
So how to write a C51 program like this function or have any instructions? You don't. For starters, a C program has not the slightest idea what might or might not be in R0 and R1, and thus there's absolutely no point in pushing them on the stack (which the C program also has essentially no control over). If you want to code like that, stop using C and do it in assembler. Assembler-type thinking doesn't extend that far into the field of C programming.