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,all. I am assembler learner coming from china. I know neither how to build the cycled array with the asm language,nor how to build a data struct with the asm language just like in the c language I wonder if you would give me ,a assembler learner , some advice. Thanks a lot. merry christmas.
The best approach is to use C for your project. The arguments for and against are well documented elsewhere. However, you can use the compiler to 'teach' you how to do this by writing the appropriate code in C, and converting the module to assembly with the SRC directive. Add the line #pragma SRC(myfile.a51) To the first line of your C source module, and the compiler will generate 'myfile.a51', an assembly source file ready to be processed by the A51 assembler, instead of an object module. Dave
#pragma SRC(myfile.a51)
#pragma SRC