Motorola ColdFire MCF5282 User Manual Page 81

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 80
Chapter 3. Using the Monitor/Debug Firmware 3-39
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
TRAP #15 Functions
C example:
int board_char_present (void)
{
asm (“ move.l#0x0014,d0”); /* select the function */
asm (“ trap #15”); /* make the call */
}
3.5.4 EXIT_TO_dBUG
This function (function code 0x0000) transfers the control back to the dBUG, by terminating the
user code. The register context are preserved.
Assembly example:
move.l #$0000,d0 Select the function
trap #15 Make the call, exit to dBUG.
C example:
void board_exit_to_dbug (void)
{
asm (“ move.l#0x0000,d0”); /* select the function */
asm (“ trap #15”); /* exit and transfer to dBUG */
}
Page view 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 103 104

Comments to this Manuals

No comments