Hi John, You are asking a lot of pointed (and good!) questions for a beginer! Anyways you will get a lot of wonderful and appropriate answers for all your questions from the experts...ill just a few things you really dint ask! >.ref _c_int11; ISR used in C program >.ref _c_int00; entry address the .ref definitions here are similar to the C *extern* declaration...i.e you are saying here that you are *refering* to two symbols called C_int11 and C_int00 (possibly both the reference are for *branching to those interrupts at different points) which have been *defined* elsewhere(c_int11 shd be defined in your main C file and C_int00 definition is present in rts.lib) >.sect "vectors"; section for vectors Vectors is a table usually referring to your interrupt vector table used for *keeping* a look-up for all the interrupt addresess that you are using in your program and the rest are all filled with nops. Note that vectors is not a *section* per-se, it is just a table, a name for a table which the system expects for interrupt driven programs.This table must go into the lowest address of the system. >RESET_RST: mvkl .S2 _c_int00,B0 ;lower 16 bits->B0 > mvkh .S2 _c_int00,B0 ;upper 16 bits->B0 C6x is a 32-bit machine.You are right abt that.But mvk can move only 16-bits!
so you always use a pair of mvk's when you want to create pointers(because
c6x is a 32 bit machine!).Note down that you should not do mvkh followed by mvkl
for pointer creation.Or, on second thoughts,try and see, you shd get wrong
results! But, hey chassaing's book does explain all this!
Regards, -Bhooshan Post Classifieds on MSN classifieds. Buy and Sell on MSN Classifieds. |