Hi Everyone Have any C51 of instructs application like assembler code? PUSH DPL PUSH DPH . . . . POP DPH POP DPL
You have posted identifying ARM as the product. Are you asking whether the ARM has instructions that are functionally equivalent to the 8051's PUSH and POP instructions? If so, then yes it does.
Sorry! my product is C51 tools.
Hsu, When you are writing in C, you must give up the ability to use the registers directly as you can't be sure of their values since the compiler is using them. You can certainly code up your own "stack" functions in C with a push() and pop(), but using them to do anything with DPTR will not be useful.
I am using C51 to control external memory(ESPON's IC), then I will show data(a picture)via drive IC to diplay on Panel.So, I have to control two IC at the same time. Therefore, I have to keep drive IC data to keep off ESPON memory data have covered. ;------------- . . . MOVC A,@A+DPTR; INC DPTR . . . ;-------- PUSH DPL PUSH DPH MOV DPL,R1; MOV DPL,R2 CLR P3.4; CLR P3.1; CLR P3.0; CLR P1.0; MOVX @DPTR,A; SETB P3.4; POP DPH; POP DPL; RET ;---------
Therefore, I have to keep off ESPON memory data have covered.
View all questions in Keil forum