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 have write a function like below code
void dma_task_scheduler (uchar stream_type, uchar channel, uchar MsgOrPrior) small { uint SDATA size; uint SDATA tmp; uchar SDATA w_index; uchar SDATA r_index; uchar SDATA front; uchar SDATA rear; uchar SDATA locate; uchar SDATA s_index; uchar SDATA len_h = 4; uchar SDATA len_l = MsgOrPrior; }
and I see the list file is look like this
---- 339 RSEG ?DT?_dma_task_scheduler?MPG450 0000 340 ?_dma_task_scheduler?BYTE: 0000 341 stream_type?143: DS 1 0001 342 channel?144: DS 1 0002 343 MsgOrPrior?145: DS 1 0003 344 ORG 3 0003 345 size?146: DS 2 0005 346 w_index?148: DS 1 0006 347 r_index?149: DS 1 0007 348 rear?151: DS 1 0008 349 s_index?153: DS 1 0009 350 len_h?154: DS 1 000A 351 len_l?155: DS 1
What is "org 3" do?? why other function didn't have this line ?? how can I remove it if I didn;t want this ??
Thanks to any kindly help
best regard
SDATA isn't in the 8051. It does appear to be in C166 land, however.
Here is the A51 documentation on ORG: http://www.keil.com/support/man/docs/a51/a51_st_org.htm
In this case, the ORG is just likely a good organizational point, to drive home the point that the code following it is to be at a code memory offset of 3.