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.
hi I am facing a problem in parameters retrieval. I call a function of assembly from C.I pass a struct pointer in the parameter.I am using the Small model. Parameter are stored at the fixed memory location which is ?functionname?BYTE how can i use this parameters in assembly. I want to initalize the DPTR with the function pointer passed in the parameter. if i use instruction mov DPL,R2 mov DPH,R1 then this is not working i also uses these instruction mov DPTR,?functioname?BYTE this generate a syntax error. Your kind help will be most appreciable. regards Farhan Arshad
I think you have simply used the wrong assembler syntax. This should give correct results: mov DPTR,#?functioname?BYTE