We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I want to check if there is an equivalent instruction of the MOVX at the C language.
I tried doing in-line assembly with no luck.
Any assistance is appreciated
You asked, "... I intend to interface IDE HDD and it deals with 16-bits. How can I do that? because as far as I know xbyte is for 8-bit data."
Then you said, "AT89C51SND1C ... has a feature to interface the IDE after enabling this option it uses DAT16H register for transferring the higher byte."
Doesn't that answer your own question?
Doesn't the Atmel documentation show you how to use these things?
yes, but in the assembly language. I'm trying to find the equivalent of such instruction in the C language. Many Thanks
Don't Atmel and/or Keil provide a C51 header file?
What is your specific difficulty in 'C'? Have you looked in the C51 Manual?
http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm
http://www.keil.com/support/man/docs/c51/c51_le_sfrs.htm
http://www.keil.com/support/man/docs/c51/c51_le_absvarloc.htm