I am new in Keil C. Just write a test app to mix C & Assembly. I wonder I can't use "ax" vaiable in assembly. How could I modify this?
void test(void) {
uint8 ax= 0x00;
#pragma asm MOV DPTR,#ax #pragma endasm
return; }
Thanks in advance
http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm
I trust that the code you posted is merely for the purpose of illustration - there really isn't any point in actually doing what you've shown.