This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help for MCORE instruction set


Hello,erveryone.

Recently,I want to write a BOOTLOADER for Motorola MCORE MMC2107.My vector table local at 0x80000000,but my BOOTLOADER local at 0x8001C000.My bootloader is not run at 0x8001C000,when reset vector point to 0x8001C000.But i palce bootloader at 0x80003000 and reset vector point to 0x80003000, i run correctly.

Firstly,i don't know why.About one night,i debug my bootloader.At last,i change startup code
==========================================================
  bsr   init_user
  bsr   main
==========================================================
into following code
==========================================================
  jbsr   init_user
  jbsr   main
==========================================================
It run OK.(I learn someone else write codes like this and i copy them.)But i don't know instruction "JBSR".I only can find "BSR" and "JSR" in M210/M210S reference manual.I can not find "JBSR".Who can tell me what's "JBSR" doing ?Are there any other instructions which are not listed in reference manual?

Thanks a lot!

Chen Shuai 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]