This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

c code for movx

i have done most of my past code in assembly language programming for past school projects.
this is the first time i have written in c and i am not able to write this code for movx..that is sending the address to external data memory(P3 and P0 when ALE is higher) in dptr (DPL and DPH) and the data in port 0 ( when ALE is low)

can u please tell me the exact code in c for this

here:

movx @dptr,a

inc dptr

sjmp here:

0